AngularJs Protractor: Element in slide out menu not visible

前端 未结 2 1258
北荒
北荒 2021-01-06 18:40

I\'m back with more Protractor Q&A. So, I am coming across an issue when trying for find an element that is inside a slide out menu.

Snippet of html:

         


        
2条回答
  •  遥遥无期
    2021-01-06 19:07

    You can also use a promise to wait for the action to complete

    element(by.id('menu')).click().then(function(){
        element(by.id('link')).click();
    });
    

提交回复
热议问题