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.
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
Post a Comment