ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Accessing User-Defined Properties of Web Objects

Accessing User-Defined Properties of Web Objects

原创 Linux操作系统 作者:ipqiaojj 时间:2009-03-14 10:47:14 0 删除 编辑

Accessing User-Defined Properties of Web Objects

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博客 ” ,链接:http://blog.itpub.net/16792402/viewspace-567252/,如需转载,请注明出处,否则将追究法律责任。

下一篇: Running DOS Commands
请登录后发表评论 登录
全部评论

注册时间:2009-02-22

  • 博文量
    140
  • 访问量
    73285