您的位置:軟件測(cè)試 > 開(kāi)源軟件測(cè)試 > 開(kāi)源功能測(cè)試工具 > Selenium
輕松自動(dòng)化---selenium-webdriver(python) (十四)
作者:網(wǎng)絡(luò)轉(zhuǎn)載 發(fā)布時(shí)間:[ 2013/9/16 10:02:59 ] 推薦標(biāo)簽:

  獲得服務(wù)器數(shù)據(jù)的應(yīng)答
  [2.900][INFO]: sending Webriver response: 200 {
   "sessionId": "32b33aa585ccbbf7ba78535882852af3",
   "status": 0,
   "value": null
  }
  10:20:41.734 INFO - Done: /session/ac5b2c71-5b1a-469e-814c-fdd09a2061fc/url

  下面接著發(fā)送定位輸入框的信息
  10:20:41.734 INFO - Executing: [find element: By.name: q] at URL: /session/ac5b2
  c71-5b1a-469e-814c-fdd09a2061fc/element)
  [2.905][INFO]: received Webriver request: POST /session/32b33aa585ccbbf7ba785358
  82852af3/element {
   "using": "name",
   "value": "q"
  }
  [2.905][INFO]: waiting for pending navigations...
  [2.905][INFO]: done waiting for pending navigations
  [2.922][INFO]: waiting for pending navigations...
  [2.922][INFO]: done waiting for pending navigations

  得到服務(wù)器應(yīng)答
  [2.922][INFO]: sending Webriver response: 200 {
   "sessionId": "32b33aa585ccbbf7ba78535882852af3",
   "status": 0,
   "value": {
      "ELEMENT": "0.19427558477036655:1"
   }
  }
  10:20:41.765 INFO - Done: /session/ac5b2c71-5b1a-469e-814c-fdd09a2061fc/element
  10:20:41.765 INFO - Executing: [send keys: 0 org.openqa.selenium.support.events.
  EventFiringWebDriver$EventFiringWebElement@a8215ba9, [h, e, l, l, o]] at URL: /s
  ession/ac5b2c71-5b1a-469e-814c-fdd09a2061fc/element/0/value)

  向定位到的輸入框?qū)懭雋ello
  [2.936][INFO]: received Webriver request: POST /session/32b33aa585ccbbf7ba785358
  82852af3/element/0.19427558477036655:1/value {
   "id": "0.19427558477036655:1",
   "value": [ "h", "e", "l", "l", "o" ]
  }
  [2.936][INFO]: waiting for pending navigations...
  [2.936][INFO]: done waiting for pending navigations
  [3.002][INFO]: waiting for pending navigations...
  [3.002][INFO]: done waiting for pending navigations
  [3.002][INFO]: sending Webriver response: 200 {
   "sessionId": "32b33aa585ccbbf7ba78535882852af3",
   "status": 0,
   "value": null
  }
  10:20:41.843 INFO - Done: /session/ac5b2c71-5b1a-469e-814c-fdd09a2061fc/element/
  0/value

上一頁(yè)1234下一頁(yè)
軟件測(cè)試工具 | 聯(lián)系我們 | 投訴建議 | 誠(chéng)聘英才 | 申請(qǐng)使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權(quán)所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd