Python + selenium automated testing of 9 ---- positioning aids Ranorex Selocity

This article is mainly written a nice Selenium positioning aids -Ranorex Selocity.

Elements are positioned plugin for Firefox browsers we are more familiar with and using Firebug and Firepath (Baidu search base or the use of introduced these plug-ins, before use is quite convenient), but Firefox after version 54, with a new core engine these plug-ins are not in support. Firebug also no longer maintained, the latest update to stay in 2017. The Firebug installed as a prerequisite Firepath used, it can not be used in the current Firefox browser.

Ranorex Selocity a chrome insert and Firepath similar, also selenium official recommended a plug-in. Easy to use, you can quickly get xpath and css positioning positioning of page elements via plug-ins, even linktext positioning.

A, Ranorex Selocity installation

Access chrome app store now must be over the wall, the official download link: https://www.crx4chrome.com/crx/113878/ ; in order to facilitate the use can be downloaded via network disk: link: https: //pan.baidu. com / s / 1qNemnrXvrXpqBNZSppUKCQ extraction code: hca4.

Start chrome browser, open chrome plugin admin page: chrome: // extensions /, open chrome developer mode, as shown below:

Pictures .png

Open storage Ranorex Selocity folder, drag Ranorex Selocity plugin admin page to chrome, automatic installation is complete, as shown below:

Pictures .png

Two, Ranorex Selocity use

Home to Baidu, for example, use Ranorex Selocity view the page elements. Below, an example in Baidu search box, the selected element, corresponding to the positioning Copy right direct mode, such as selecting Copy CSS. Copy and paste the contents of the can look to display the document as: .s_ipt

Pictures .png

Open developer mode chrome of the F12 key, click on the bottom right side of the tab Ranorex Selocity can view the response. CSS copy prior to pasting, clicking the arrow 2 in FIG. 1, 3 can be seen below in the CSS Baidu search box element, and the Xpath RXpath. While above information will highlight the element.

Pictures .png

Web page while the search box is also highlighted by yellow dashed out, as shown below:

Pictures .png

Using a simple method has been finished, there is a need can operate up.

Under identification Fanger Wei code, tuned for more information on applicable

 

Published 17 original articles · won praise 2 · Views 5268

Guess you like

Origin blog.csdn.net/tiekun888/article/details/105259032