{"id":600,"date":"2022-11-18T13:36:27","date_gmt":"2022-11-18T05:36:27","guid":{"rendered":"https:\/\/vmlogin.us\/help\/?p=600"},"modified":"2023-10-23T11:13:20","modified_gmt":"2023-10-23T03:13:20","slug":"vmlogin-browser-automation-test-tool-introduction","status":"publish","type":"post","link":"https:\/\/www.vmlogin.us\/help\/api\/automation-test-tool.html","title":{"rendered":"VMLogin Browser Automation Test Tool Introduction"},"content":{"rendered":"\n<p class=\"has-medium-font-size\"><strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.vmlogin.us\" data-type=\"URL\" data-id=\"https:\/\/www.vmlogin.us\" target=\"_blank\">VMLogin<\/a><\/strong> browser automation test tool can realize some automatic control operations of configuring the browsers for vmlogin user, such as: opening the specified page, looking for the specified position in the page to enter the text\/click, and executing user-defined JS script and other functions.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong><a href=\"https:\/\/www.youtube.com\/watch?v=AIF87KpVfe0\" data-type=\"URL\" data-id=\"https:\/\/www.youtube.com\/watch?v=AIF87KpVfe0\" target=\"_blank\" rel=\"noreferrer noopener\">Automate Browser in VMLogin Video Tutorial<\/a><\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Let's take a look at the main interface of the automation test tool.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"977\" height=\"915\" src=\"https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/01\/tutorial12-1.png\" alt=\"\" class=\"wp-image-2328\" srcset=\"https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/01\/tutorial12-1.png 977w, https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/01\/tutorial12-1-300x281.png 300w, https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/01\/tutorial12-1-768x719.png 768w\" sizes=\"auto, (max-width: 977px) 100vw, 977px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><br>VMLogin API token is the user's API token, which requires the user to log in to the Web background. This token value can be set in( <strong><a href=\"https:\/\/m.vmlogin.com\/member\/login?s=ODM4NTYzNDE1\" data-type=\"URL\" data-id=\"https:\/\/m.vmlogin.com\/member\/login?s=ODM4NTYzNDE1\" target=\"_blank\" rel=\"noreferrer noopener\">W<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/m.vmlogin.com\/member\/login?s=ODM4NTYzNDE1\" data-type=\"URL\" data-id=\"https:\/\/m.vmlogin.com\/member\/login?s=ODM4NTYzNDE1\" target=\"_blank\">eb background<\/a><\/strong> -&gt; account management -&gt; my account -&gt; API token).<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"510\" src=\"https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/01\/en-1-4.png\" alt=\"\" class=\"wp-image-2329\" srcset=\"https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/01\/en-1-4.png 824w, https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/01\/en-1-4-300x186.png 300w, https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/01\/en-1-4-768x475.png 768w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Click Generate Token to get a random token value, and then click submit to confirm the modification.<br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">The IP and port values in VMLogin automated test settings correspond to the corresponding values set on the VMLogin client.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"993\" height=\"691\" src=\"https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/01\/en-2-1-1.png\" alt=\"\" class=\"wp-image-2330\" srcset=\"https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/01\/en-2-1-1.png 993w, https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/01\/en-2-1-1-300x209.png 300w, https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/01\/en-2-1-1-768x534.png 768w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">VMlogin client -&gt; My Account -&gt; Browser automation settings -&gt; 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.<br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>The following explains is the definition of various actions:<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>1. Open web address\uff1a<\/strong>fill in the website url which you want to open (https:\/\/www.vmlogin.us\/).<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>2. Set window size\uff1a<\/strong>Content formats 800,600<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>3.<\/strong> <strong>Implicit waiting\uff1a<\/strong>The content time is milliseconds 1000 = 1sec<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>4. Forced waiting\uff1a<\/strong>The content time is milliseconds 1000 = 1sec<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>5. FindElementByID\uff1a<\/strong>fill in the id value of the html control<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>6.<\/strong> <strong>FindElementByXPath\uff1a<\/strong>This one is solve the problem that some HTML controls do not have id values, such as: \/\/input[@name=\"password\" and @type=\"password\"]<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>7. SendKey\uff1a<\/strong>Send text, support Chinese and English<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>8.<\/strong> <strong>Click\uff1a<\/strong>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.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>9. Screenshot\uff1a<\/strong>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.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>10. Switch To Frame\uff1a<\/strong>If there are multiple frames in a web page, you can use this command to switch which Frame to use.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>11.<\/strong> <strong>Execute Script\uff1a<\/strong>The content can be fill in with JaveScript script code, this execution does not wait for the script to execute and return.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>12.<\/strong> <strong>Execute Script By A Sync<\/strong>\uff1aThe content can be fill in with JaveScript script code, which is blocked waiting for the script to execute.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>13. PAGE_DOWN\uff1a<\/strong>you can set the number of value for page down.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>14.<\/strong> <strong>End\uff1a<\/strong>End process test.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>15. Refresh\uff1a<\/strong>Refresh the page.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>16. Find Element By Link Text\uff1a<\/strong>Use text links to find element clicks.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>17. get Attribute To Open\uff1a<\/strong>Get the value of the attribute corresponding to the specified name, and get the attribute to open.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>18. ExitBrowser\uff1a<\/strong>The browser will close automatically when the automated process is completed.<br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Tools interface -&gt; Demo example -&gt; click\uff0c then will generates a simple list of sample actions.<br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">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\uff08Please use in Windows installation\uff09\uff1a<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Download here: <a href=\"https:\/\/www.vmlogin.us\/AutoBrowserTool.zip?v1.1.1.6\" data-type=\"link\" data-id=\"https:\/\/www.vmlogin.us\/AutoBrowserTool.zip?v1.1.1.6\" target=\"_blank\" rel=\"noreferrer noopener\">AutobrowserTool<\/a><\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VMLogin browser automation test tool can realize some a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-600","post","type-post","status-publish","format-standard","hentry","category-api"],"_links":{"self":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/comments?post=600"}],"version-history":[{"count":15,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/600\/revisions"}],"predecessor-version":[{"id":3556,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/600\/revisions\/3556"}],"wp:attachment":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/media?parent=600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/categories?post=600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/tags?post=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}