![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
selenium
test_soy
健谈,开朗,喜欢研究
展开
-
selecium ide全命令
selenium IDE命令全手册selenium IDE命令全手册概念三类命令命令形式patternstring-match patterns元素定位器Element Filters命令分类selenium ActionsSelenium AccessorsParameter construction and VariablesStored Var转载 2017-11-16 14:40:04 · 665 阅读 · 0 评论 -
Selenium中的webdriver定位元素失败的常见原因
自动化测试中经常会出现无法定位元素的情况,报selenium.common.exceptions.NoSuchElementException错误1.动态id定位不到元素for example: //WebElement xiexin_element = driver.findElement(By.id("_mail_component_82_82")); WebEle...转载 2018-07-16 11:20:15 · 3611 阅读 · 0 评论 -
Selenium在定位的class含有空格的复合类的解决办法整理
1.class属性唯一但是有空格,选择空格两边唯一的哪一个<div id="tempConfigTable" class="dtb-style-1 table-dragColumns" style="height: 371px; position: relative;"><th id="" tid="grid-row-2" class="tabth f转载 2018-07-04 16:23:41 · 5235 阅读 · 0 评论 -
Selenium下拉选择框select的处理
在使用Selenium做自动化测试的时候,难免会碰到下拉选择框,下面几种方式是比较常用的处理方式。 为了方便使用,我自己写了一个HTML的demo: 代码如下:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title转载 2018-07-13 14:51:29 · 15777 阅读 · 0 评论