Protractor clear() not working

前端 未结 5 717
心在旅途
心在旅途 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:27

    Clear().then(..) doesn't work for me.

    So this is my work around:

    queryInput.sendKeys(protrator.Key.chord(protrator.Key.CONTROL, 'a'));
    queryInput.sendKeys('nexus')
    

提交回复
热议问题