GithubHelp home page GithubHelp logo

webdriverapi's Introduction

Webdriver Api

实例运行说明:

部分实例需要指定的html文件支持,请根据代码中指定的html文件名称,自己查找所需要的html代码,
并适当修改实例中的url链接地址!
本实例共分为两个部分

一.webdriver Api 基础部分

	1.访问指定网络地址
	2.浏览器页面的前进,后退,刷新
	3.浏览器窗口最大化,设置窗口的大小
	4.获取页面的title属性
	5.获取当前页面的url地址及页面的源码
	6.多窗口切换
	7.获取元素的属性
	8.获取元素的css属性值
	9.判断元素是否可见
	10.判断元素是否可操作
	11.获取元素的属性值
	12.模拟鼠标双击事件
	13.操作select下拉列表元素(5个实例)
	14.操作复选框
	15.字符串包含断言
	16.页面截图操作
	17.模拟鼠标拖拽操作
	18.模拟单个按键
	19.模拟组合按键
	20.模拟鼠标左键按下及释放
	21.模拟鼠标悬停在某个元素上
	22.判断元素是否存在
	23.通过title属性识别和操作新弹出窗口的浏览器窗口
	24.操作frame中的页面元素
	25.操作页面的cookie信息
	26.设置指定页面加载事件

二.webdriver Api 进阶部分

	1.用ini配置文件存储元素信息并读取
	2.封装用例失败截图
	3.操作富文本框
	4.操作页面滚动条
	5.操作ajax方式产生的悬浮框中,包含关键字的某个选项
	6.结束windows浏览器进程
	7.

webdriverapi's People

Contributors

13691579846 avatar

Stargazers

 avatar  avatar  avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.