Robot Framework - Why is my browser automatically closing after execution ?

735 views
Skip to first unread message

Ritchie CR7

unread,
Sep 10, 2023, 2:56:37 PM9/10/23
to robotframework-users
Hi All,

Chrome or Edge closes automatically after execution of Robot Framework Script via the "SeleniumLibrary".

Has anybody been able to fix this ?

Note: This is not about the RPA.browser.selenium library
Browser_Closes_Auto.png

Lauren

unread,
Oct 17, 2023, 3:43:14 PM10/17/23
to robotframework-users
By Default it closes automatically - to force it open you have to use this command in the Settings:

Library             RPA.Browser.Selenium    auto_close=${FALSE}

Laxminarayan Mahapatra

unread,
Oct 19, 2023, 7:23:46 AM10/19/23
to laur...@gmail.com, robotframework-users
Hi lauren,

Here is the solution  can you please try.
Open Browser   ${URL}     ${Browser}     options= add_experimental_option("detach",True)  

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/63cf9556-9118-4baa-b581-2eef6dca7a07n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages