Simple protractor test for isElementPresent failing with unsupported locator strategy

后端 未结 4 2044
深忆病人
深忆病人 2021-02-09 22:30

My test:

it(\'should allow login\', function() {
  browser.get(\'index.html\');

  $(\'#username\').sendKeys(\'administrator\');
  $(\'#password\').sendKeys(\'pa         


        
4条回答
  •  执笔经年
    2021-02-09 23:29

    This should work :

    var logout = $('#logout');
    expect(logout.isPresent()).to.eventually.be.true;
    

提交回复
热议问题