New answers tagged java
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(&...
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 ...
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 ...
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(...
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 ...
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"));
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 ...
Top 50 recent answers are included
Related Tags
java × 1458selenium-webdriver × 1206
automated-testing × 492
testng × 164
selenium2 × 92
cucumber × 81
xpath × 71
browser-automation × 64
appium × 58
test-automation-framework × 50
junit × 50
page-objects × 49
javascript × 48
eclipse × 39
chromedriver × 35
jmeter × 34
maven × 24
android × 21
python × 19
test-design × 19
test-strategy × 18
selenium3 × 18
firefoxdriver × 18
assert × 18
rest-assured × 18