Selenium WebDriverJs commands

后端 未结 3 1008

I am running a combination of Node.js + Mocha + Selenium Webdriverjs for the first time. I setup everything according to their documentation here https://code.google.com/p/selen

3条回答
  •  盖世英雄少女心
    2021-02-20 18:39

    @op, its best you use a chained statement. I use the until and isElementPresent command, and they work for production ready (CI/CD) train processes. Tweaking your code thus should work

    var isDisplayed = function(){
            driver.isElementPresent(by.id('button id')).then(function(isDisplayed){
                expect(isDisplayed).to.be.true
            });
        }; 
    

提交回复
热议问题