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