Can I use Selenium methods together with Intern/Leadfoot methods? -


i use selenium methods intern/leadfoot methods. how can it? have after promise returned, right? following code? there other ways it?

   ...    var webdriver = require('intern/dojo/node!selenium-webdriver');    ...     .findbyxpath('//button[@class="btn btn-success"]')       .click()       .end()     .sleep(1000)     .then(function (text) {       webdriver.switchto().alert().accept();     }); } 

these 2 libraries not compatible. each has own internal state updated commands executed, , changes made using 1 confuse other (assuming both able implicitly communicate same remote browser).

at least specific case in posted example, leadfoot have acceptalert method equivalent of web driver.switchto().alert().accept().


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -