官术网_书友最值得收藏!

Locator prioritization

Prioritization lets you prioritize locators while recording scripts. In general, this feature helps the user by giving high priority to generate scripts with respect to the user's preferred locators. For example, by changing the csslocator order from the fifth to the first position, the further elements generated on the Selenium IDE's target will be in CSS, that is, the locatorType will be set to CSS by default.

An example of this is CSS = argument.

Launch the Selenium IDE, choose Options... from the Options menu, and switch to the Locator Builders tab. The left-hand pane will be mounted with a list of available locator builders, such as, ui, id, link, name, css, dom:name, xpath:link, xpath:img, xpath:attributes, xpath:idRelative, xpath:href, dom:index, and xpath:position. The list of available locator builders is shown in the following screenshot:

Locator prioritization

Drag and drop locator builders on the left-hand side to change their order. Finally, click on the OK button, and restart the Selenium IDE for the changes to take effect. To reset the default settings of the Selenium IDE, click on the Reset option found in the bottom-left corner of the Selenium IDE options window pane.

主站蜘蛛池模板: 恩施市| 故城县| 迭部县| 黑龙江省| 宜川县| 林西县| 兴安盟| 辽阳市| 沈丘县| 遂昌县| 敦煌市| 东兴市| 松溪县| 兰考县| 高碑店市| 犍为县| 上蔡县| 淮北市| 犍为县| 龙门县| 扎赉特旗| 徐州市| 张家口市| 安泽县| 麻城市| 深水埗区| 乡宁县| 衡南县| 达孜县| 克拉玛依市| 嘉鱼县| 新绛县| 东乡县| 汶川县| 塘沽区| 崇州市| 石柱| 安图县| 马关县| 尚义县| 临湘市|