No keyword with name 'Open Browser https://www.google.com' found.

7,158 views
Skip to first unread message

Prashant Patel

unread,
Feb 4, 2017, 5:28:04 PM2/4/17
to robotframework-users
I am unable to run a simple test and getting below error.
Error: No keyword with name 'Open Browser https://www.google.com' found.

The content of my file google_page.txt

*** Settings ***
Library Selenium2Library

*** Test Cases ***
Go to google page page
Open Browser https://www.google.com chrome


C:\Python27>pybot C:\Python27\google_page.txt
==============================================================================
Google Page
==============================================================================
Go to spiceworks page and logon                                       | FAIL |
No keyword with name 'Open Browser https://www.google.com' found.
------------------------------------------------------------------------------
Google Page                                                           | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output:  C:\Python27\output.xml
Log:     C:\Python27\log.html
Report:  C:\Python27\report.html

I have following software installed.
C:\Python27>pybot --version
Robot Framework 3.0.1 (Python 2.7.8 on win32)

C:\Python27>python
Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

C:\Python27>pip list
decorator (4.0.11)
docutils (0.13.1)
pip (9.0.1)
robotframework (3.0.1)
robotframework-selenium2library (1.8.0)
selenium (3.0.2)
setuptools (33.1.1)

Thank you in advance for your help.

Hélio Guilherme

unread,
Feb 4, 2017, 5:32:32 PM2/4/17
to robotframework-users
Please pay more attention to the error message:

Error: No keyword with name 'Open Browser https://www.google.com' found.

The correct name of the keyword is `Open Browser`, this means you did not use the minimal spacing between the keyword and URL.
Use 2 spaces (I use 4 spaces).

--
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.

Prashant Patel

unread,
Feb 4, 2017, 6:32:42 PM2/4/17
to robotframework-users
Thank you very much. Is there a GUI that I can indicate this kind of error. I am writing code in notepad and very hard to figure out the error like this. I am also new Selenium and Robot framework.
To post to this group, send email to robotframe...@googlegroups.com.

Hélio Guilherme

unread,
Feb 4, 2017, 6:58:16 PM2/4/17
to robotframework-users
My favorite editor is RIDE at https://github.com/robotframework/RIDE. See the installation instructions at Wiki (`pip install robotframework-ride`). In your case you will need to install wxPython 2.8.12.1 32bit unicode. Also recommend to install pygments to have syntax colorization on text editor.

You could use Notepad++, SublimeText, Brackets or Geany as simple IDEs. There is also PyCharm or Eclipse as advanced IDEs (there is also extension for Visual Studio Core).

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
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.

bagya ss

unread,
Nov 24, 2017, 10:07:59 AM11/24/17
to robotframework-users
Hi,

I am getting the same error in RIDE too. Can you find the root cause of this Error?


Used:

Python 2.7.10

Robotframework 3.0.2

Robotframework-selenium2library-1-8-0

Selenium 3.7.0

Setuptools – 28.6.1

Pip 8.1.2

Tatu Aalto

unread,
Nov 24, 2017, 10:15:38 AM11/24/17
to bagy...@gmail.com, robotframework-users
Ugh

Your error should be different, because you have a different syntax problem. Your problem is in the rows one and two, where you try to define variable. Check the correct syntax from here: http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Set%20Variable

If your error is same, could you show the correct test in the screen capture.

-Tatu
Send from my mobile


--

NIKHIL RAJGARHIA

unread,
Nov 27, 2017, 11:52:22 PM11/27/17
to robotframework-users
Possibly this is because your Selenium2Library is not correctly installed.

dm08

unread,
Nov 28, 2017, 12:09:17 AM11/28/17
to nikhilr...@gmail.com, ppat...@gmail.com, robotframework-users
Hi, 

The problem here that there is only one space in
 `Open Browser https://www.google.com chrome` 
use at least 2 or more to separate keyword 
and parameters

Thanks, 
Dmitriy




--
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.

bagya ss

unread,
Nov 29, 2017, 4:01:01 AM11/29/17
to robotframework-users
Hi,

It works now after trying with the correct syntax. I thought Set variable is not for URL's .

To post to this group, send email to robotframe...@googlegroups.com.

Geist Eng

unread,
Dec 4, 2017, 10:24:41 PM12/4/17
to robotframe...@googlegroups.com
One can also use vertical bars, which is the method I prefer for the visual it gives.  I do it slightly different than in the manual as the keyword name is not enclosed in bars:


Open Firefox Browser to Page
| | [Arguments] | ${url} |
| | Open Browser | ${url} | browser=${BROWSER} | ff_profile_dir=${BROWSER PROFILE} |



And it can be used to show logical groupings too:


Open Chrome Browser to Page
| | [Arguments] | ${url} |
| | ${chrome_options}= | Evaluate | sys.modules['selenium.webdriver'].ChromeOptions() | sys |
| | Call Method | ${chrome_options} | add_argument | disable-infobars          |
| | Call Method | ${chrome_options} | add_argument | test-type                 |
| | Call Method | ${chrome_options} | add_argument | disable-extensions        |
| | Call Method | ${chrome_options} | add_argument | ignore-certificate-errors |
| | Call Method | ${chrome_options} | add_argument | window-size=1080,1080     |
| | Run Keyword If | ${Use Chrome Headless} |
| | ... | Call Method | ${chrome_options} | add_argument | headless |
| | Create Webdriver | Chrome | chrome_options=${chrome_options} |
| | Go To | ${url} |



moja pailam

unread,
Dec 6, 2017, 4:15:03 PM12/6/17
to robotframework-users
Reply all
Reply to author
Forward
0 new messages