• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 基于 SELENIUM 的自動化測試架構(13)

    發表于:2017-04-11來源:gitbook作者:凌俁Linty?點擊數: 標簽:selenium
    id:元素標簽的 id css selector:元素標簽的 selector xpath:元素標簽的 XPath link text:元素標簽的完整文字 name:元素標簽的 name class name:元素標簽的 class nam
    • id:元素標簽的 id
    • css selector:元素標簽的 selector
    • xpath:元素標簽的 XPath
    • link text:元素標簽的完整文字
    • name:元素標簽的 name
    • class name:元素標簽的 class name
    • tag name:元素標簽的 tag name
    • partial link text:元素標簽的部分文字
  • findElements(by, selector):查找一組具有同一屬性的頁面元素,方式同上。
  • deleteAllCookies():清理 Cookies
  • executeJs(js):執行 JavaScript
  • quit(): 退出瀏覽器
  • getTitle():當前瀏覽器的標題屬性
  • getCurrentUrl():獲取當前瀏覽器的 URL
  • WebElement 類

    • click():點擊改元素
    • clear():清除當前的文本
    • sendKeys(text):給當前的元素輸入文字
    • getAttribute(attribute):獲取當前元素的某一種屬性
    • getText():獲取當前元素的文字屬性
    • isDisplayed():獲取當前元素的 Displayed 屬性
    • 原文轉自:http://gitbook.cn/books/58e54b57cfcd6fa52dcef1d2/index.html

    ...
    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>