New answers tagged

0 votes
Accepted

How to get all existing li-hidden-elements under ul tag using Selenium while loading JS?

Needed to add Scroll down the page, as in the following attached example below: // Scroll down the page for (int i = 0; i < 10; i++) { ((JavascriptExecutor) driver).executeScript(&...
invzbl3's user avatar
  • 123
0 votes

import org.apache.commons.io.FileUtils

It is difficult to discern what you are asking, it appears like you are trying to reply to another thread however instead this is an entirely new post. However, after some digging I found this may ...
Cameron Fairburn's user avatar
0 votes

Unable to locate an element when "show user agent shadow DOM" is enabled

The JavaScript code you provided is almost accurate; however, some modification is needed to effectively capture an element within the Shadow DOM. Firstly, obtain the JavaScript path of the intended ...
Michael James's user avatar
0 votes
Accepted

How to unfreeze debug while getting hidden-li elements of DOM into the list using Selenium WebDriver?

Solved this problem after adding the following construction with FluentWait: FluentWait<ChromeDriver> fluentWait = new FluentWait<>(driver) .withTimeout(Duration.ofSeconds(...
invzbl3's user avatar
  • 123
0 votes

Java maven - IllegalArgumentException: Input must be set

Check your cocumber test runner class. In 'glue' option you should show where you keep: steps hooks I bet that you have some helper class where you have hooks like @Before and @After. Im sure you ...
Adrian's user avatar
  • 1
0 votes
Accepted

How to extract list of arrivals correctly using Selenium?

Final working solution should be as below: List<WebElement> liElements = driver.findElements(By. className("like_products_item"));
invzbl3's user avatar
  • 123
0 votes

selenium java modifications to the dom, how to reload the page to display modifications

Addressing challenges in automation scripts is a common aspect of software testing, In addressing issues where modifications to the DOM are not immediately reflected after using Selenium in Java. This ...
Vishal's user avatar
  • 1,254

Top 50 recent answers are included