0
我有代碼場景,下面黃瓜步驟如何再次關閉瀏覽器(driver.quit/driver.close),並啓動瀏覽器在相同的測試情況下,黃瓜
Scenario: Relaunched close browser
Given user launches the application
When user logs in with credentials
And user verifies logout button
And user closes the browser
And user opens browser and launches again
Then user should be taken to login page
我們@before
鉤寫入了初始化瀏覽器並啓動應用程序 ,但是當我在測試案例中關閉瀏覽器時,驅動程序丟失。無論如何,我可以打電話給@before
鉤子關閉瀏覽器?