Steps to install Pip and Selenium2Library

4,577 views
Skip to first unread message

techi...@gmail.com

unread,
Dec 31, 2014, 11:44:28 AM12/31/14
to robotframe...@googlegroups.com
Hello ,

Can you point me to the right links to install pip in windows 7 and linux 6.x

and also steps to install Selenium2Library in windows and linux and how to import Selenium2Library to use keywords

I already have python27 installed.


thanks

techi...@gmail.com

unread,
Dec 31, 2014, 12:27:32 PM12/31/14
to robotframe...@googlegroups.com
i tried to install robotframework-selenium2library  got errors could you help me .. 


C:\pip_script>python get-pip.py
Collecting pip
  Downloading pip-6.0.3-py2.py3-none-any.whl (1.3MB)
←[K    100% |################################| 1.3MB 4.1MB/s ta 0:00:01
←[?25hCollecting setuptools
  Downloading setuptools-10.1-py2.py3-none-any.whl (496kB)
←[K    100% |################################| 499kB 4.1MB/s ta 0:00:01
←[?25hInstalling collected packages: setuptools, pip


Successfully installed pip-6.0.3 setuptools-10.1

C:\pip_script>pip install robotframework-selenium2library

Unknown or unsupported command 'install'

Ed Manlove

unread,
Dec 31, 2014, 12:36:36 PM12/31/14
to robotframe...@googlegroups.com
The instruction for pip can be found at
https://pip.pypa.io/en/latest/installing.html. essentially these
instructions say to download get-pip.py and then run that python script.
So from windows it will be something like

C:\> python.exe get-pip.py

or if your python.exe is not on the path you will need to give the full
path, like

C:\> C:\Python27\python.exe get-pip.py

And for linux it should simple be

python get-pip.py

This should install pip. Note that if you are behind a proxy server you
might need to deal with that. Then once pip is installed to install any
package you would type something like

C:\> pip install robotframework

The above line will install robotframework. Generally to setup up my
machine for Robt Framework and Selenium2Library is do something like the
following

C:\> pip install robotframework
C:\> pip install selenium
C:\> pip install decorator
C:\> pip install docutils
C:\> pip install selenium2library

RIDE is a separate setupand those instructions can be found at
https://github.com/robotframework/RIDE/wiki/Installation-Instructions.
For Linux the same commands will install the Python Packages which make
up the Robot Framework/Selenium2Library app.

Ed

techi...@gmail.com

unread,
Dec 31, 2014, 12:38:18 PM12/31/14
to robotframe...@googlegroups.com








Sorry for the multiple posts, i was able to install  robotframework-selenium2library, where does these libraries copied? how does my test suite recognize the robotframework-selenium2library keywords? do i have to run test cases in any specific path.




C:\Python27>pip install robotframework-selenium2library
Collecting robotframework-selenium2library
  Downloading robotframework-selenium2library-1.6.0.tar.gz (220kB)
←[K    100% |################################| 221kB 2.0MB/s ta 0:00:01
←[?25hCollecting decorator>=3.3.2 (from robotframework-selenium2library)
  Downloading decorator-3.4.0.tar.gz
Collecting selenium>=2.32.0 (from robotframework-selenium2library)
  Downloading selenium-2.44.0.tar.gz (2.6MB)
←[K    100% |################################| 2.6MB 409kB/s ta 0:00:01
←[?25hCollecting robotframework>=2.6.0 (from robotframework-selenium2library)
  Downloading robotframework-2.8.6.tar.gz (378kB)
←[K    100% |################################| 380kB 2.0MB/s ta 0:00:01
←[?25hCollecting docutils>=0.8.1 (from robotframework-selenium2library)
  Downloading docutils-0.12.tar.gz (1.6MB)
←[K    100% |################################| 1.6MB 4.1MB/s ta 0:00:01
←[?25hInstalling collected packages: docutils, robotframework, selenium, decorator, robotframework-selenium2library
  Running setup.py install for docutils
  Running setup.py install for robotframework
  Running setup.py install for selenium
  Running setup.py install for decorator
  Running setup.py install for robotframework-selenium2library
Successfully installed decorator-3.4.0 docutils-0.12 robotframework-2.8.6 robotframework-selenium2library-1.6.0 selenium-2.44.0

techie 24by7

unread,
Dec 31, 2014, 12:43:08 PM12/31/14
to devP...@verizon.net, robotframework-users
Ed,

Thanks so much for your response. I already had Robot frame work installed, i want to use only robotframework-selenium2library, rest of them i already have in place . How can i do that?

Where does all these installed ? how to use use robotframework-selenium2library keywords my test suites? 






--
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/3EhPtOJheLE/unsubscribe.
To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Ed Manlove

unread,
Dec 31, 2014, 1:13:29 PM12/31/14
to robotframe...@googlegroups.com
On 12/31/2014 12:43 PM, techie 24by7 wrote:
Ed,

Thanks so much for your response. I already had Robot frame work installed, i want to use only robotframework-selenium2library, rest of them i already have in place . How can i do that?

Where does all these installed ? how to use use robotframework-selenium2library keywords my test suites? 



To use the Selenium2Library keywords you will need to "import" the Library generally using the Library Setting. See http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#using-library-setting. So your test script will have the following lines in it,

*** Settings ***
Library    Selenium2Library

[Note at some point later you may want or need to use a Robot Framework Library elsewhere and may use the import library keyword. I have not yet done this myself so for now I would skip the section talking about this.  Simply use the Library Setting.]

Generally you don't need to worry about paths. Most of the time you just need to give the name of the library. If you use a library that is not "installed" using pip then you should specify a direct or full path to the library. [A more in depth explanation about Python packages can be found at [1]]

Ed

[1] https://docs.python.org/2/install/




Tatu Aalto

unread,
Dec 31, 2014, 1:13:42 PM12/31/14
to techie 24by7, robotframework-users, devP...@verizon.net

Ugh

This is explained in the user guide [1].

And happy new year to all

-Tatu
Send from my mobile
[1] http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#taking-test-libraries-into-use

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