Protractor clear() not working

前端 未结 5 680
心在旅途
心在旅途 2021-01-03 21:39

I have two tests:

  it(\'should filter the phone list as user types into the search box\', function() {

    var results = ptor.findElements(protractor.By.re         


        
5条回答
  •  攒了一身酷
    2021-01-03 22:46

    Using PageObject pattern and async/await, I have such code that works:

    async clearForm() {
        await this.nameInput.clear();
        await this.descriptionInput.clear();
    }
    

提交回复
热议问题