New answers tagged

0

Class and ID are auto-generating so I think that you should change xpath to contain (text(),'text of element') or anything that was fixed.


0

When you use xpath that is to locate nested elements you have to start your query from .. Like String query = ".//*[contains(@resource-id, 'delivered_indicator')]"; https://selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html#presenceOfNestedElementLocatedBy-org.openqa.selenium.By-org.openqa.selenium.By-


1

I had some problems connecting Appium with iOS devices using Appuim Desktop. My solution was to change Appium Desktop to Appium Studio. Appium Studio makes is easier to work with Apple devices.


1

I'm going to be perfectly honest and say in my 30 years of manual and automated testing I find automating manual test cases for mobile devices a waste of time. The time and $$ involved in creating and maintaining the test suites, considering their relatively short shelf life, is better spent buying a few of the most popular devices and writing comprehensive ...


0

It seems that your Select element is one level above the thing you are capturing, try using xpath of the View above your ImageView


1

Try something like this: WebElement outerElement = driver.findElement(By.xpath("OTER_ELEMENT_XPATH")); WebDriverWait waiter = new WebDriverWait(driver, 100); WebElement innerElement = waiter.until(ExpectedConditions.elementToBeClickable(outerElement.findElement(By.xpath("./INNER_ELEMENT_XPATH"))));


0

In modern applications to gain performance not all the content is loaded at once. Option I would suggest is. Can you scroll to the bottom of the page in the start and then try to find the elements? That way you can be sure that all the elements were loaded.


2

When querying Android apps with Xpath there is no id attribute. There is a resource-id attribute instead. Appium is doing work behind the scenes to still provide By.id as a locator despite this. By.xpath("//*[contains(@resource-id, 'read_indicator')]"); If you don't use contains here, you'll need to put in the full resource-id, which is very long. Your ...


Top 50 recent answers are included