create driver in python and call in robot framework

810 views
Skip to first unread message

damodha...@gmail.com

unread,
Jun 28, 2021, 12:30:07 AM6/28/21
to robotframework-users
Hi all,

Can anyone help me to create driver instance in python and proceed with robot framework.

I have created browser instance in python but in robot getting issue "No browser is open"


Thanks

Dave Amies

unread,
Jun 28, 2021, 2:52:33 AM6/28/21
to robotframework-users
Robot Framework doesn't talk to web browsers directly, it uses a library, so I'll guess you are using SeleniumLibrary? not BrowserLibrary? please don't leave people guessing in future mention which libraries you are using and you'll get better answers.

If you are using SeleniumLibrary you need to install the web driver for your browser, I have found the easiest way is to install webdrivermanager and use that to manage your web drivers:

1) pip install webdrivermanager

Then for each browser you want to use:
webdrivermanager <browser>

e.g.
webdrivermanager chrome
webdrivermanager firefox
webdrivermanager edge

Hope that helps,

Dave.

Vikas Kumar

unread,
Jun 29, 2021, 6:36:58 AM6/29/21
to dami...@gmail.com, robotframework-users
This can be a useful resource. 

While doing the Selenium automation common challenge is that we have to run whole test after fix from script failover.

 

I am sharing a good video to overcome the same and automate the test step by step instead.

 

https://www.youtube.com/watch?v=Rrkj4tdXngY&list=PL6flErFppaj0fxRsQW_nbh_YF_OoJn7N5&index=12

 

How To Execute Selenium Scripts On Already Opened Browser


--
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/acf6dd4c-ca74-4e5a-abe7-969d0453aff5n%40googlegroups.com.

Tina Antony

unread,
Sep 1, 2022, 7:44:58 PM9/1/22
to robotframework-users
Hello, 

Please help to understand more on webdrivermanager. I have installed webdrivermanager (installed version - 0.10.0) and I called the library in the Test Suite but the library is not supported for opening the browsers. 

Library    webdrivermanager   
webdrivermanager   chrome

Thanks,
Tina

Dave Amies

unread,
Sep 1, 2022, 8:33:05 PM9/1/22
to tinaa...@gmail.com, robotframework-users
Hi Tina,

No it's not a library you include in your test case, you just run the "webdrivermanager chrome" command before you run your test and it will install the selenium driver for the version of chrome you have. you might need to run it again if chrome auto-updates to a newer version.

Dave.

--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/Mw7MCF94zgA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/c638923f-c928-47df-bf12-44ddbf7b90bcn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages