admc / wd

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

waitForElementByXPath/id/name does not poll as per the poll frequency provided. #603

Open rajatpuneak opened 5 years ago

rajatpuneak commented 5 years ago

Hi @admc,

Using WD for mobile automation with Appium, Latest WD and Appium Version on MacOsX, NodeJs v10.4.0,

The wait for does not poll every 1 sec as using in the following code snippet, After the previous command immediately the following gets executed and later directly after 270000ms i.e, 4min 30sec

Does the pollfreq actually work for Appium ?

return driver.waitForElementByXPath('//*[@text="Restore completed"]', asserter.isDisplayed, 270000, 1000).isDisplayed().then(function (err, resp) { if (err) { console.log(' err :', err); return err; } });