How to set the custom path of firefox for WebDriver based Selenium in robotframework

2,423 views
Skip to first unread message

Jagadeesan Murugesan

unread,
Mar 12, 2013, 10:35:56 AM3/12/13
to robotframe...@googlegroups.com
Hi ,

 I am using "Selenium2Library"  in robot framework . I installed two version of firefox in my machine . I would like to use the specific custom path of firefox for executing the automation .Please help me out to sort out this issue as earlier as possible .



Warm Regards,
Jagadeesan.M

Markus Bernhardt

unread,
Mar 12, 2013, 11:36:01 AM3/12/13
to jagadee...@gmail.com, robotframe...@googlegroups.com
Hi,

you have to setup a separately running Selenium Server for that.

Something like:

%JAVA_HOME%\bin\java.exe -cp %CLASSPATH% %* org.openqa.grid.selenium.GridLauncher -role node -port 5555 -browser browserName=firefox,version=16,maxInstances=5,platform=WINDOWS,firefox_binary=Q:\dev\browser\firefox16\firefox.exe,seleniumProtocol=WebDriver

At the Open Browser keyword you then specify  the remote parameter:

    Open Browser    ${Url}    firefox    default    http://localhost:5555/wd/hub

Hope that helps.


Markus


--
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 post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jagadeesan Murugesan

unread,
Mar 14, 2013, 7:55:37 AM3/14/13
to robotframe...@googlegroups.com

Hi ,

I would like to define the firefox path in open Browser keyword itself . Can it be possible to define  like this 

Open Browser ${LOGIN URL} ${BROWSER} None http://wp-qa-190.lss.emc.com:5553/wd/hub desired_capabilities=browserName:firefox,firefox_binary:"C:\Firefox15\firefox.exe"

Please help me to sort out this issue.


Warm Regards,
Jagadeesan.M

Luiz Fernando Estivalet

unread,
Feb 21, 2018, 9:04:13 AM2/21/18
to robotframework-users
Hi, have you solved this issue? I'm facing the same problem right now

Tatu Aalto

unread,
Feb 21, 2018, 2:19:35 PM2/21/18
to luiz.es...@trt4.jus.br, robotframework-users
Ugh

Starting from SeleniumLibrary 3.1.0 it's possible to pass desired capabilities also for local browser. According the Selenium documentation, one can configure the Firefox binary by using desired capabilities: https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities#firefox-specific

-Tatu
Send from my mobile

--
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-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages