admc / wd

A node.js client for webdriver/selenium 2.
Other
1.53k stars 402 forks source link

WaitForElement -functions do not apply timeout on element lookup #626

Open jluukka-ge opened 3 years ago

jluukka-ge commented 3 years ago

The timeout- and pollFreq- parameters apply only for the assert function after the element has been found from the DOM. Due to this, the driver will loop indefinitely until the element is found. This will cause trouble when the intention is to check that an element does not exist on the DOM or when an element never appear on the DOM.

Is there a way to override httpOpts or otherwise set the timeout for individual jsonWire calls? Is there another method for checking the non-existence of matching elements on the DOM?