Unable to open browser and URL for ie, chrome and ff

9,383 views
Skip to first unread message

Hansie

unread,
Jul 19, 2012, 8:44:35 AM7/19/12
to robotframe...@googlegroups.com
Hi ,

I just installed robot framework on one of my test boxes and just gave the following command:

open browser   http://www.google.com ie

The problem is:

For ie and chrome, it is not opening the browser itself. Note: I already downloaded the IE web driver and chrome web driver included in the path
For firefox, it is opening the browser but not opening the specified url.

The test is just saying pass and not even throwing any error.

Please help!

Thanks!

Tatu Aalto

unread,
Jul 19, 2012, 9:48:21 AM7/19/12
to robotframe...@googlegroups.com
Ugh

The Open Browser keyword only opens the browser. If you want some
verification that is the correct page opened you could use the Title
Should Be keyword to verify that the browser did go to the correct page.

*** Test Cases ***
open google.com ff
Open Browser http://www.google.com/ ff
Title Should Be Google

If you test do not include Close All Browsers or Close Browser keywords
(specially in Test Teardown or in Suite Teardown), you should see
process created by the browsers after the tests has been run. The
Process Explorer [1] is quite handy in this and see the attachment what
you should see.

There could be some other errors and by default the chrome driver
produces log file chromedriver.log in the working directory. It could
provide some hints if error occurs. Attachment contains my log file when
I open the Google page.

-Tatu
[1] http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
> --
> You received this message because you are subscribed to the Google
> Groups "robotframework-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/robotframework-users/-/lSkHC7BLsG0J.
> To post to this group, send email to
> robotframe...@googlegroups.com.
> To unsubscribe from this group, send email to
> robotframework-u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/robotframework-users?hl=en.

processExplorer.png
chromedriver.log

Hansie

unread,
Jul 26, 2012, 8:25:53 AM7/26/12
to robotframe...@googlegroups.com
It is not even opening google,com as mentioned earlier. The URL that is mentioned in the open browser keyword has to be navigated but that is not happening. So, checking the title does not come in to picture.

I suspect a problem with selenium2library as none of the browsers (ie, ff, chrome) are working.

I did the following:

1. Removed selenium2library and installed the latest one selenium2.24
2. Removed selenium2library,installed python binding for selenium2 and reinstalled selenium2library

I am not sure what else can be done.

The interesting part is, RIDE is showing that the test case is passed. No errors are being thrown,but actually, it not navigating to the URL.  It is simply opening the browser.

Pasting my test case again

        OpenBrowser http://google.com ie

Can anyone please help. I am still stuck at this point.

Thanks!

Kevin O.

unread,
Jul 27, 2012, 10:37:14 AM7/27/12
to robotframe...@googlegroups.com
Have you tried using Selenium from Python directly? That would help narrow down the cause.

There is a simple example in the API docs:

wingk...@126.com

unread,
Jul 27, 2012, 9:22:07 PM7/27/12
to robotframe...@googlegroups.com
check the ie/chrome/ff support version, it can't be the newest.
  check the path , are you using windows ? 

Hansie

unread,
Aug 24, 2012, 3:28:51 AM8/24/12
to robotframe...@googlegroups.com
I tried the steps mentioned be Kevin O, used Selenium from Python directly but it is still not opening any browser. Please help!

Hansie

unread,
Aug 27, 2012, 12:44:07 AM8/27/12
to robotframe...@googlegroups.com
Hi Bharath V,

The same browser versions are working perfectly on other machines.

Gaurav Deore

unread,
Nov 28, 2012, 7:30:06 AM11/28/12
to robotframe...@googlegroups.com
Hi Hansie, Bharath V, Kevin,

 I am also facing same type of problem. As I have created simple test case(see it below) & ran it on Firefox 10.0, its open browser but doesn't shows the Google page however it works fine with ie 8. So can any one help on this?

test case -

*** Settings ***
Library           Selenium2Library

*** Test Cases ***

 Open Browser    https://google.com    ff
    Maximize Browser Window
    Title Should Be    Google
    Selenium2Library.Page Should Contain Image    hplogo
    Page Should Contain Element    gbqfba

It shows in log --

C:\Python27\Scripts>pybot --test TestCase2 TestGaurav.txt
==============================================================================
TestGaurav
==============================================================================
TestCase2                                                             | FAIL |
Title should have been 'Google' but was 'Problem loading page'
------------------------------------------------------------------------------
TestGaurav                                                            | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output:  C:\Python27\Scripts\output.xml
Log:     C:\Python27\Scripts\log.html
Report:  C:\Python27\Scripts\report.html

Thanks,
Gaurav

N.T.

unread,
Mar 19, 2015, 4:09:52 AM3/19/15
to robotframe...@googlegroups.com
Am also getting this error.

This is the error message:

Starting test: Suite.test 1
20150319 15:59:15.805 :  INFO : Opening browser 'firefox' to base url 'www.hybris.ecstage-au.asics.com'
20150319 16:00:21.864 :  FAIL : No browser is open
20150319 16:00:21.865 :  WARN : Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open
20150319 16:00:21.874 :  FAIL : 
WebDriverException: Message: Can't load the profile. Profile Dir: %s If you specified a log_file in the FirefoxBinary constructor, check it for details.

Ending test:   Suite.test 1

Tatu Aalto

unread,
Mar 19, 2015, 3:34:12 PM3/19/15
to n.to...@iuj.jp, robotframework-users

Ugh

Is your FF version 36? If yes, then downgrading to version 35 and installing selenium 2.45.0 should solve your problem.

-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-u...@googlegroups.com.

To post to this group, send email to robotframe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages