New answers tagged

0 votes

Scrollbar value returns false even though it is present

The problem in your piece of code would be because you are trying to get the scrollbar for the parent element of the element for which you want to check the scrollbar. Parent element: <div class=&...
user avatar
1 vote
Accepted

Element is not clicked even after explicit wait

In the HTML bit that you have shared in the question, there is no <li> element (//li[@role='option']). Hence this line threw error for me: WebElement defaultValue = driver.findElements(By.xpath(&...
user avatar
0 votes
Accepted

Verifying scrollbar is present script fails

With the HTML code you shared, I tried the below and it worked out. I got the desired result. I also added in additional elements to increase the content and enable scrollbar and got the right result ...
user avatar

Top 50 recent answers are included