热门IT资讯网

Web automation test splinter and selenium usage

发表于:2024-11-24 作者:热门IT资讯网编辑
编辑最后更新 2024年11月24日,There is sth wrong with input on my ubuntu. So the first blog would be written in english about what

There is sth wrong with input on my ubuntu. So the first blog would be written in english about what i am doing during this weekend. i study python for a while about algorith and network and now find some small project for practice. One of pratice is to log on website automatically. Splinter is an interesting item which would cover web communication and testing. Following link is an implementation on how to log on 12306 to buy ticket presented by youerning. http://youerning.blog.51cto.com/10513771/1719159

I follow its steps and find these API are provided in selenium, one of most popular web automation test. You will know well about its API if you track to its implementation. Of course you need to understand the code and has willness and time to learn.

All source code list as following:

You are free to access its github for more info.splinter

splinter: usr/local/lib/python2.7/dist-packages/splinter

selenium: usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote

.

0