Protractor testing: How to set the value of text elements in a login form?

后端 未结 6 689
清酒与你
清酒与你 2020-12-15 02:42

I am writing tests in Protractor for an Angular app. I want to fill out a login form and submit it.

How can I do this? I have got this far, but I don\'t know how to

6条回答
  •  旧时难觅i
    2020-12-15 03:17

    you can use

    email.clear().sendKeys('myemail@myemail.com');
    password.clear().sendKeys('mypassword');
    

提交回复
热议问题