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
I suggest you to use browser.driver.sleep(500); before your click operation.
browser.driver.sleep(500);
See this.
browser.driver.sleep(500); element(by.css('your button')).click(); browser.driver.sleep(500);