Difference between driver.quit(), driver.close(), driver.closeApp()
1,085 views
Skip to first unread message
Stephan Epping
unread,
Jul 16, 2014, 5:03:43 AM7/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appium-...@googlegroups.com
Hello,
can anyone explain me the difference between these three commands (java client)?
Or a good source where to look for an explanation (code, docs).
I would also love to document the explanation, but i m not sure where (appium docs/ java_client docs)?
thanks.
sina
unread,
Jul 16, 2014, 6:06:08 AM7/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appium-...@googlegroups.com
driver.quit() use to shut down the webdriver instance. you totally get out from webdriver, means if you have to use webdriver again in code then you have to initiate it again. it called at last after all test execute.
driver.close() use to just close the browser session or page currently which is having the focus. it does not kill the webdriver.
Actually these two method differs a lot when we uses multiple browsers.
and closeApp() it may be used to close the app but im not much sure, since I didn't use it..
Stephan Epping
unread,
Jul 16, 2014, 6:09:18 AM7/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appium-...@googlegroups.com
Hey sina,
thanks in my case with iOS, the simulator is closed with any of these commands.
Therefore i am not sure about the benefits of one or another method.