What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-26 22:20:18
how to find all link in web pages
All the link TagName should be "a". I locate the webelements starts with tagname "a". I also use driver.findElements instead of driver.findElement since the list of webelements will return. List <WebElement> list = driver.fi... Add solution -
Java 2022-02-16 04:35:20
hide element selenium
public void hideElement(String xpath) { WebElement element = driver.findElement(By.xpath(xpath)); ((JavascriptExecutor)driver).executeScript("arguments[0].style.visi... Add solution -
Other 2022-02-02 20:10:03
difference between find element and find elements
Differences between findElement and findElementS method? --> findElement(): -It does returns SINGLE web element. - Return type: WebElement - If it cannot find a web element, it throw - NoSuchElementException ... Add solution -
Java 2022-02-02 00:30:26
retrieving parent element from child aWebelement selenium java
WebElement myElement = driver.findElement(By.id("myDiv")); WebElement parent = (WebElement) ((JavascriptExecutor) driver).executeScript( "return arguments[0].parentNode;", myElement); Add solution -
Other 2022-02-01 01:30:23
all links in web page
All the link TagName should be "a". I locate the webelements starts with tagname "a". I also use driver.findElements instead of driver.findElement since the list of webelements will return. List <WebElement> list = driver.fi... Add solution
Best helpers
Ranking is empty