01 2016 档案
摘要:__author__ = 'Administrator'# coding: utf-8from selenium import webdriverimport timeimport osimport pdbfrom selenium import seleniumfrom selenium impo...
阅读全文
摘要:python webdriver自动化测试初步印象以下示例演示启动firefox,浏览google.com,搜索Cheese,等待搜索结果,然后打印出搜索结果页的标题 from selenium import webdriver from selenium.common.except...
阅读全文
摘要:本节知识点:多层框架或窗口的定位:switch_to_frame()switch_to_window()智能等待:implicitly_wait()对于一个现代的web应用,经常会出现框架(frame)或窗口(window)的应用,这也就给我们的定位带来了一个难题。有时候我们定位一个元素,定位器没有...
阅读全文