Hi robocorp Teams
I am facing an issue while using open browser keyword
when i executes this, it throws an error like this
any reasons ?
Thanks and Regards
Nived N
Hi robocorp Teams
I am facing an issue while using open browser keyword
when i executes this, it throws an error like this
any reasons ?
Thanks and Regards
Nived N
Hi Nived,
Could you try with Open Available Browser instead?
*** Keywords ***
Open Browser for robertsspaceindustries
Open Available Browser https://robertsspaceindustries.com/
*** Tasks ***
Open Application
Open Browser for robertsspaceindustries
Hi jeevith
Sure thanks for your reply
But I am thinking there is some technical issue I think so
@Nived_Nambiar error comes from missing driver for Firefox, as it shown in the error log geckodriver executable needs to be in PATH.
The Open Browser keywords expects that user will manage webdrivers themselves (it comes from upstream SeleniumLibrary package).
We have implemented Open Available Browser keyword which will automatically manage webdrivers so that user does not need to. So I will recommend using this keyword
.
I would like to run many browsers Firefox, Chrome, Edge, etc. Is there a way to set the PATH?
Hi, @wnpansuwan! The Open Available Browser keyword allows you to define the preferred browser using the browser_selection
argument. See the keyword documentation for more information.
Hi @wnpansuwan,
Don’t forget that Firefox you can get just via conda-forge without even having it installed on the target machine.
You can test if it actually is in the Python PATH, if you open a cmd and type in chromedriver and hit Enter. If Starting ChromeDriver 2.15.322448 is appearing, the PATH is set appropriately and there is something else going wrong. Then try the following:
Download ChromeDriver
Then you have multiple options:
driver = webdriver.Chrome(executable_path='C:/path/to/chromedriver.exe')