XLogin browser automation test tool can realize some automatic control operations of configure the browsers for XLogin user, such as: opening the specified page, looking for the specified position in the page to enter text/click, and executing user-defined JS script and other functions.
Let's take a look at the main interface of the automation test tool:
XLogin API token is the user's API token, which requiresthe user to login to the Web background. This token value can be set in( web background -> account management -> my account -> API token).
Click Generate Token to get a random token value, and then click submit to confirm the modification.
The IP and port values in XLogin automated test settings correspond to the corresponding values set on the XLogin client.
Xlogin client -> My Account -> Browser automation settings -> you need to enable the browser automation settings and save it. so that the port is opened, which also allows the automated test tool to control which profile browser is started.
The following explains is the definition of various actions:
Open web address: Fill in the website url which you want to open (https://xlogin.us/).
Set window size: Content formats 800,600
Implicit waiting: The content time is milliseconds 1000 = 1sec
Forced waiting: The content time is milliseconds 1000 = 1sec
FindElementByID: Fill in the id value of the html control
FindElementByXPath: This one is solve the problem that some HTML controls do not have id values, such as: //input[@name="password" and @type="password"]
SendKey: Send text, support Chinese and English
Click: If you have used FindElementByID / FindElementByXPath to find controls before, then you can empty contect action and confirm, and also can fill in id values of html control.
Screenshot: Save the current page display as a BMP file. The content can be the full path of the saved BMP file, and if the content is empty, it will be saved in a folder under the installation directory.
SwitchToFrame: If there are multiple frames in a web page, you can use this command to switch which Frame to use.
ExecuteScript: The content can be fill in with JaveScript script code, this execution does not wait for the script to execute and return.
ExecuteScriptByASync: The content can be fill in with JaveScript script code, which is blocked waiting for the script to execute.
Page_down: You can set the number of value for page down.
End: End process test.
Refresh: Refresh the page.
FindElementByLinkText: Use text links to find element clicks.
GetAttributeToOpen: Get the value of the attribute corresponding to the specified name, and get the attribute to open.
ExitBrowser: The browser will close automatically when the automated process is completed.
Tools interface -> Demo example -> click， then will generates a simple list of sample actions.
How to write the action script that you want, and also need the user to start from the simple, understand the principle and then add the action, to complete some more complex requirements. Download Url (Please use in Windows installation):