Load Selenium2library failed---robotframework environment setup (ride not start?) )

Source: Internet
Author: User

On the road of Robotframework upgrade encountered some problems, recorded to facilitate the search for problems later

The list of previously installed versions of my computer is as follows:

python-2.7.5

robotframework-2.8.1

robotframework-ride-1.1

robotframework-seleniumlibrary-2.9.1

Wxpython2.8-win32-unicode-2.8.12.1-py27

Now Seleniumlibrary has been upgraded to robotframework-selenium2library-1.6.0 this version, and the previous seleniumlibrary keyword also has some differences, so uninstall the earlier version, ready to upgrade, the upgrade file version is as follows: (by 2.7.8 installed when Python was installed, no longer reinstalled)

a problem has been encountered after executing various EXE files: Unable to start ride. Then looked up all kinds of information, found that the original ride need a support package, is wxpython. And I downloaded the 3.0.2.0 Incompatible version

So uninstall 3.0.2.0 This version, install Wxpython2.8-win32-unicode-2.8.12.1-py27.exe. After the installation is complete, ride can finally start, load selenium2library but show red

The first consideration is not the environment variable problem, so check the environment variable, verify the version, as follows:

Restart ride and then load Selenium2library, still show red .....

Open the C:\Python27\Lib\site-packages folder after the discovery of file problems, so download the master file on the official website, that is, the source code (: https://github.com/rtomac/ robotframework-selenium2library/#readme)

Download the Setuptools again. Setuptools is an enhanced software tool that installs third-party toolkits: http://pypi.python.org/packages/2.7/s/setuptools/ Setuptools-0.6c11.win32-py2.7.exe#md5=57e1e64f6b7c7f1d2eddfc9746bbaf20

Enter the formal installation steps:

1. Install the setuptools.

2. Go to directory: C:\Python27\Scripts, then enter command: Easy_install pip, wait for installation to complete (Python package management tool)

3. Go to the Robotframework-selenium2library-master folder (just download the source file, unzip to get this folder), Enter the command: Python setup.py install wait for the installation to complete, enter the ride, found Selenium2library can be loaded successfully, press F5, can display selenium2library keywords, installation is complete!

By the way, a shortcut to a command line entry folder:

1. Open the folder you want to enter

2. Enter CMD in the Address bar:

3. Enter. Finally do not have to knock so many filenames, not afraid of mistakes!

Load Selenium2library failed---robotframework environment setup (ride not start?) )

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.