欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

selenium資料

系統(tǒng) 1655 0

來源

http://release.seleniumhq.org/selenium-remote-control/0.9.2/doc/dotnet/Selenium.ISelenium.MouseMoveAt.html#locators

?

Element Locators

Element Locators tell Selenium which HTML element a command refers to. The format of a locator is:

locatorType = argument

We support the following strategies for locating elements:

  • identifier = id : Select the element with the specified @id attribute. If no match is found, select the first element whose @name attribute is? id . (This is normally the default; see below.)
  • id = id : Select the element with the specified @id attribute.
  • name = name : Select the first element with the specified @name attribute.
    • username
    • name=username

    The name may optionally be followed by one or more? element-filters , separated from the name by whitespace. If the? filterType ?is not specified,? value ?is assumed.

    • name=flavour value=chocolate
  • dom = javascriptExpression : Find an element by evaluating the specified string. This allows you to traverse the HTML Document Object Model using JavaScript. Note that you must not return a value in this string; simply make it the last expression in the block.
    • dom=document.forms['myForm'].myDropdown
    • dom=document.images[56]
    • dom=function foo() { return document.links[1]; }; foo();
  • xpath = xpathExpression : Locate an element using an XPath expression.
    • xpath=//img[@alt='The image alt text']
    • xpath=//table[@id='table1']//tr[4]/td[2]
    • xpath=//a[contains(@href,'#id1')]
    • xpath=//a[contains(@href,'#id1')]/@class
    • xpath=(//table[@class='stylee'])//th[text()='theHeaderText']/../td
    • xpath=//input[@name='name2' and @value='yes']
    • xpath=//*[text()="right"]
  • link = textPattern : Select the link (anchor) element which contains text matching the specified? pattern .
    • link=The link text
  • css = cssSelectorSyntax : Select the element using css selectors. Please refer to? CSS2 selectors ,? CSS3 selectors ?for more information. You can also check the TestCssLocators test in the selenium test suite for an example of usage, which is included in the downloaded selenium core package.
    • css=a[href="#id3"]
    • css=span#firstChild + span

    Currently the css selector locator supports all css1, css2 and css3 selectors except namespace in css3, some pseudo classes(:nth-of-type, :nth-last-of-type, :first-of-type, :last-of-type, :only-of-type, :visited, :hover, :active, :focus, :indeterminate) and pseudo elements(::first-line, ::first-letter, ::selection, ::before, ::after).

Without an explicit locator prefix, Selenium uses the following default strategies:

  • dom , for locators starting with "document."
  • xpath , for locators starting with "http://"
  • identifier , otherwise

Element Filters

Element filters can be used with a locator to refine a list of candidate elements. They are currently used only in the 'name' element-locator.

Filters look much like locators, ie.

filterType = argument

Supported element-filters are:

value= valuePattern

Matches elements based on their values. This is particularly useful for refining a list of similarly-named toggle-buttons.

index= index

Selects a single element based on its position in the list (offset from zero).

String-match Patterns

Various Pattern syntaxes are available for matching string values:

  • glob: pattern : Match a string against a "glob" (aka "wildmat") pattern. "Glob" is a kind of limited regular-expression syntax typically used in command-line shells. In a glob pattern, "*" represents any sequence of characters, and "?" represents any single character. Glob patterns match against the entire string.
  • regexp: regexp : Match a string using a regular-expression. The full power of JavaScript regular-expressions is available.
  • exact: string : Match a string exactly, verbatim, without any of that fancy wildcard stuff.

If no pattern prefix is specified, Selenium assumes that it's a "glob" pattern.

selenium資料


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 日本高清视频www夜色资源网 | 国产成人自拍一区 | 欧美精品黄页在线观看大全 | 久萆app污版下载网站 | 国内精品小视频福利网址 | 亚洲高清成人欧美动作片 | 久久免费在线视频 | 99精品视频在线观看re | 2021最新国产精品一区 | 日韩一二区 | 久久99精品国产麻豆婷婷洗澡 | 欧美日韩精品一区二区三区 | 色房四播 | 青青在线香蕉精品视频免费看 | 天天做天天爱天天操 | 香蕉久久一区二区不卡无毒影院 | 成年女人免费v片 | 午夜影皖 | 一级毛片免费播放 | 男女下面一进一出无遮挡着 | 成人免费视频网 | 91中文字幕在线 | 亚洲国产中文字幕在线观看 | 日韩高清第一页 | 亚洲一区二区三区视频 | 亚洲一视频 | 2017av伦理片 | 国产精品成人亚洲一区二区 | 伊人伊人伊人 | 超级成人97碰碰碰免费 | 中文字幕精品一区二区三区精品 | 免费黄色av | 欧美日韩国产在线 | 精品无人区一区二区三 | 欧美久久综合 | 色婷婷激情 | 精品免费国产一区二区三区四区介绍 | 欧洲视频在线观看 | 黄色视屏免费观看 | 欧美精品一级 | 在线视频 中文字幕 |