Protractor Check if Element Does Not Exist

后端 未结 6 2016
长情又很酷
长情又很酷 2021-02-05 02:56

I have a setting in my angular based website that turns a dropdown on and off. If it is off, then it does not show on the main page.

With Protractor, I need to check to

6条回答
  •  北海茫月
    2021-02-05 03:13

    I got it working by doing this:

    expect(element(by.css('css')).isPresent()).toBeFalsy();
    

提交回复
热议问题