Hi,
I started developing some tests for an iOS app, using Python as a programming language. I have some buttons (which for the moments doesn’t have ids) and I was wondering what is the best method to search for example, a button with a certain text and click it.
On Android I’m successfully using:
self.driver.find_element_by_android_uiautomator(“text(“Memory”)”).click()
On iOS I tried using:
self.driver.find_element_by_ios_uiautomation(“text(“ACCEPT”)”).click()
but I get the following error in PyCharm:
selenium.common.exceptions.InvalidSelectorException: Message: Locator Strategy ‘-ios uiautomation’ is not supported for this session
Any help, please?
Thanks!