New answers tagged javascript
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=&...
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(&...
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 ...
Top 50 recent answers are included
Related Tags
javascript × 301selenium-webdriver × 191
automated-testing × 104
protractor × 74
java × 47
browser-automation × 20
jasmine × 17
selenium2 × 12
cucumber × 10
angular × 9
cypress × 9
nodejs × 9
mocha × 9
page-objects × 8
postman × 8
python × 6
appium × 6
unit-tests × 6
api-testing × 6
selenium-ide × 6
end-to-end × 6
typescript × 6
webdriver.io × 6
test-automation-framework × 5
uiautomation × 5