In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Resource recommendations:
Video resources: series of videos related to software testing
Community Resources: automated Test Communication Group
Brief introduction of element positioning selector
For most Selenese commands, you need to provide a target parameter, which is designed to uniquely locate the contents of the specified element in the web application, which we call "locator". Locator can be expressed in a variety of forms. This section details the information of various types of locator.
Locator expression structure: locatorType=location, in some special cases, locatorType can be ignored.
Let's start with the various element positioning selectors.
Identifier locator
When the type of positioning expression used is not recognized, this strategy is used for element positioning by default. Under the current positioning policy, Selenium IDE will first use the id of the page element for matching. Note that it is the first element in the dom that matches location. If the match fails, the name attribute value of the page element will be used for matching, and the first element that uses the location as the name attribute value will also be matched.
Html example:
The following locator will return the page element of the corresponding line number:
Identifier=loginForm (3)
Identifier=password (5)
Identifier=continue (6)
Continue (6)
Note: because the identifier positioning type is the default, "identifier=" in the positioning expression can be ignored.
Id/name locator
In addition to the above implicit use of identifier locators, we can use a more explicit locator: the id / name positioning selector.
Example: id=loginForm / name=username
Link locator
If you need to locate the hyperlink element of the page, you can use the link locator. The link element positioning uses the text node of the a tag in dom as the positioning expression. The example is as follows:
Are you sure you want to dothis?
Continue
Cancel
Link=Continue (4)
Link=Cancel (5)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.