unit testing - Click a button Appium C# -


i've created unit tests , i'm using appium run these tests. want able click button , typically can use findelementbyname property in case can't there 2 elements have same name.

below image of properties can see when use inspector.

enter image description here

powerpointsession.manage().timeouts().implicitlywait(timespan.fromseconds(10));         powerpointsession.findelement(by.xpath("//a[contains(text(), 'open') or contains(text(), 'open')]")).click(); 

i tried

powerpointsession.findelementbyname("open").click(); 

i ended doing work around , done

powerpointsession.keyboard.sendkeys(keys.enter); 

done trick


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -