New answers tagged

1

Please consider the following advice: preceding: css selector currently does not support traverse backwards, it may be supported in the future. following: Element E1 following some sibling E2, css = E2+E1 Element E1 following sibling E2 with one element in between, css = E2+ * + E1 Some element immediately following E, css = E + *


0

I will suggest to use xpath only if you don't have id classname tagname Use contains in xpath: For Android: driver.findElement(By.xpath("//label[contains(@id,'dv-textbox-label-SubList')]"); For iOS: iosDriver.findElement(By.xpath("//UIAStaticText[contains(@name,'MOBDishwasher')]"));


0

Two reasons for occurrence of Stale element An element that is found on a web page referenced as a WebElement in WebDriver then the DOM changes (probably due to JavaScript functions) that WebElement goes stale. The element has been deleted entirely. When you try to interact with the staled WebElement[any above case], the StaleElementException is thrown. ...



Top 50 recent answers are included