Overview:
PAMIE (Python automation Module for I. E.) is a library, which enables Python to interact with Internet Explorer. PAMIE automates the browser by manipulating the Document Object Model (DOM) via the COM interface. PAMIE is used to create web tests written in Python using Microsoft Internet Explorer.
There are two flavors of PAMIE.
- PAMIE 2.0 which works with up to python 2.7+
- PAMIE 3.0 which works with up to python 3.x
Installation:
Installing PAMIE for Python 3.x:
- Down PAMIE3.zip
- Unzip the file into a temporary directory
- Click setup.exe
- Click Next
- Enter a location or use the suggested file path (C:\Python34\Lib\site-packages) - Note: Verify this is the path for Python 3.x and the installer may try to install into an older python directory if one exists.
- Click Next ( Confirmation )
- Click Next
Pamie Install is not complete
Manual Installation PAMIE for Python 3.x:
- Down PAMIE3.zip
- Unzip the file into a temporary directory
- Copy PAM30.py to %PYTHON_HOME%\Lib\site-packages (ex:C:\Python34\Lib\site-packages\PAM30.py)
- Copy winGuiAuto.py to %PYTHON_HOME%\Lib\site-packages (ex:C:\Python34\Lib\site-packages\ winGuiAuto.py)
Manual Installation PAMIE for Python 2.x:
- Download cPAMIE2.0.zip
- Unzip the file into a temporary directory
- Copy cPAMIE.py to %PYTHON_HOME%\Lib\site-packages (ex:C:\Python27\Lib\site-packages\cPAMIE.py)
- Copy winGuiAuto.py to %PYTHON_HOME%\Lib\site-packages (ex:C:\Python27\Lib\site-packages\ winGuiAuto.py)
- Copy cReport.py to %PYTHON_HOME%\Lib\site-packages (ex:C:\Python27\Lib\site-packages\cReport.py
- Copy cModalPopUp.py to %PYTHON_HOME%\Lib\site-packages (ex:C:\Python27\Lib\site-packages\cModalPopUp.py
You can write PAMIE tests using either with you favorite text editor or IDE such as PythonWin, Eclipse with Pydev, PyScripter, or WingIDE. See examples in the Writing Test Cases page