You can use the attribute/<property name> notation to access native properties of Web objects and use these properties to identify such objects with programmatic descriptions.
For example, suppose a Web page has the same company logo image in two places on the page:
<IMG src="logo.gif" LogoID="122">
<IMG src="logo.gif" LogoID="123">
You could identify the image that you want to click using a programmatic description by including the user-defined property LogoID in the description as follows:
Browser("Mercury Tours").Page("Find Flights").Image("src:=logo.gif","attribute/LogoID:=123").Click 68, 12
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16792402/viewspace-567252/ ,如需转载,请注明出处,否则将追究法律责任。