Selenium-plugin

  • Plugin in AirtestIDE which used to record and edit automatic script for Web.

Installation and Setting

First, download and install AirtestIDE in your computer( Official Website ) and Chrome browser. Then set the Chrome local path in IDE’s Options.

../_images/6_selenium_options.png

Quick start

Example for recording script

Let’s see a example that recording the selenium script on IDE.

../_images/6_selenium_demo.gif

After setting the Chrome path. Touch the left button on the first row of selenium window to open the chrome broser with debug mode. Meanwhile the prompt will pop up in the edit box to automatically initialize the code, click yes to initialize the code. Then touch start_web to generate now web address. After this, click the record button (The right button on the first row) to start recording. After recording, click run button to run automatic script and the browser will show the process of script running. After running, click report button and the report will be showed on website.

Seleniium Window

../_images/6_selenium_windows.png

This two button used to start browser and cut out the UI element in inspect mode.

start_web: Start a website.

touch: Touch the UI element which was slected.

text: Input the text on the UI element which was slected.

assert_text: Assert exist text on the UI element which was slected.

switch: Switch to other tab. (Param represent the order in which the tabs are opened.)

snapshot: Cat out the current page.

back: Back to the last page.

forward: Forward to the next page.