Skip to content
Advertisement

Tag: selenium

Selenium: Scroll till end of the page

Selenium: I am new to WebDriverJS. I have tried this approach in Java. but I am facing problem in webdriverjs while iterating the loop. In my code I have hardcoded for loop to iterate until 50 times and I want to quit/break the loop when the scroll height is reached to end. In this approach, I want to remove hardcode

How to change selenium user agent in selenium-webdriver nodejs land?

I’m in javascript + mocha + node land. I have tried setting userAgent and ‘user-agent’ as keys on capabilities: There is this answer which says to use a firefox profile, but that’s not exposed. There is no driver.FirefoxProfile nor one exposed globally nor webdriver.FirefoxProfile nor driver.profiles etc. I have tried Googling and looking the source and the documentation but there

Advertisement