码迷,mamicode.com
首页 >  
搜索关键字:webelement    ( 168个结果
[python selenium] 操作方法整理
个人笔记,摘抄自虫师python selenum,仅供个人参考 1、安装: 2、基本使用 3、元素定位 4、 操作对象、WebElement 常用方法,小结 操作对象: · click 点击对象 · send_keys 在对象上模拟按键输入 · clear 清除对象的内容,如果可以的话 WebEle ...
分类:编程语言   时间:2018-02-08 20:18:14    阅读次数:264
selenium常用方法,简版介绍
WebElement 接口共计16个------------接口 代表一个HTML元素。通常,所有与页面交互有关的有趣操作都将通过此界面执行。 void clear() void click() WebElement findElement(By by) List findElements(By b... ...
分类:其他好文   时间:2018-02-08 13:43:45    阅读次数:272
使用`selenium-webdriver-webelement.send_keys`遇到的问题
使用selenium-webdriver-webelement.send_keys遇到的问题 读取一个网页输入框,从 pandas 读取的 DataFrame 中取出一串数字输入进去。code: for i in DF.iloc[:,11]: ele = browser.find_element_b ...
分类:Web程序   时间:2018-01-26 14:05:12    阅读次数:676
TestNG执行测试用例的顺序
import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebElement;import org.openqa.selenium.firefox.FirefoxDri... ...
分类:其他好文   时间:2018-01-20 22:47:16    阅读次数:221
Selenium上传图片
import org.openqa.selenium.By;import org.openqa.selenium.JavascriptExecutor;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebElement ...
分类:Web程序   时间:2018-01-20 20:35:27    阅读次数:267
爬虫-【selenium——webElement常用方法】
a)clear——清除元素的内容 b)send_keys——在元素上模拟按键输入 c)click——单击元素 d)submit——提交表单 e)size——返回元素的尺寸 f)text——获取元素的文本 g)get_attribute(name)——获取元素的属性值 h)is_display()—— ...
分类:Web程序   时间:2018-01-08 14:52:36    阅读次数:195
Selenium脚本之基本元素常用方法
页面基本元素:1.图片上传方法   private static void fileUpload(WebDriver driver, String s, String filepath) {        WebElement file = driver.findElement(By.name(s));    &nbs
分类:其他好文   时间:2017-12-23 19:06:03    阅读次数:91
selenium学习历程(二)
Selenium 定位元素方法 WebDriver driver= new chormedriver();创建谷歌浏览器对象 Driver.get(“https://www.baidu.com/”);打开网址 //findElement: WebElement a = driver.findElem ...
分类:其他好文   时间:2017-12-19 15:11:17    阅读次数:90
TypeError:object of type ‘WebElement’ has no len()
报错如上图,原因是因为参数和webelement对象名称重复了,如下。。。细心啊 ...
分类:Web程序   时间:2017-11-28 13:27:16    阅读次数:2033
利用 Python + Selenium 实现对页面的指定元素截图(可截长图元素)
对WebElement截图 WebDriver.Chrome自带的方法只能对当前窗口截屏,且不能指定特定元素。若是需要截取特定元素或是窗口超过了一屏,就只能另辟蹊径了。 WebDriver.PhantomJS自带的方法支持对整个网页截屏。 下面提供几种思路。 方式一 针对WebDriver.Chro ...
分类:编程语言   时间:2017-11-25 17:19:07    阅读次数:3491
168条   上一页 1 ... 4 5 6 7 8 ... 17 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!