How to stop automatically closing browser when writing protractor test cases

后端 未结 9 1765
面向向阳花
面向向阳花 2021-02-07 12:43

I am new to writing test cases using protractor for non angular application. I wrote a sample test case.Here the browser closes automatically after running test case.How can I p

9条回答
  •  梦谈多话
    2021-02-07 13:20

    I suggest you to use browser.driver.sleep(500); before your click operation.

    See this.

    browser.driver.sleep(500);
    
    element(by.css('your button')).click();
    browser.driver.sleep(500);
    

提交回复
热议问题