Use robotframework + selenium2 on Mac [Step 1] install robotframework

Source: Internet
Author: User
Tags gz file

Recently I used Apple's Mac Pro book to feel the freshness of the Apple system. It really made me feel confused. After all, it was too long to use the Windows system. It was really awkward to use Mac pro at the beginning, after using it for a while, I found that the MAC system is good. Okay, just move to the subject.

1. Install Python

Python comes with Mac. You can use the python -- version command to view the Python version.

2. Install easy_install

Mac OS X 10.2

3. Install the robot framework

Run sudo easy_install robotframework

4. Install wxpython

Install wxpython2.8

Download wxpython2.8 and double-click it to install wxpython2.8. During installation, the installation package may be corrupted. In fact, it is because the Mac prohibits modification of some files. Solution: Open System preference settings, select security and privacy, and select the check box as shown in

After selecting, continue the installation until the installation is successful.

5. Install ride

  • Download robotframework-ride-1.1.tar.gz
  • Decompress tar xzvf robotframework-ride-1.1.tar.gz
  • Run sudo Python setup. py install
  • If an error occurs: importerror:/system/library/frameworks/python. framework/versions/2.6/extras/lib/Python/wx-2.8-mac-unicode/wx/_ core _. so: no appropriate 64-bit architecture (see "Man Python" for running in 32-Bit mode)

It indicates that python is 64-bit, and wxpython does not support 64-bit python. It must be forced to use 32-bit:

Execute defaults write com. Apple. versioner. Python prefer-32-bit-bool Yes

  • Run ride. py to open the ride interface. The ride interface is displayed, indicating that the installation is successful.

6. Install the robotframework-selenium2library plug-in

Download the robotframework-selenium2library-1.5.0.tar.gz file and decompress it.

Go to the decompressed folder and run the following command on the terminal:

Sudo Python setup. py install

Use robotframework + selenium2 on Mac [Step 1] install robotframework

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.