There is sth wrong with input on my Ubuntu. So the first blog would is written in 中文版 about what I am doing during this weekend. I study python for a while the about Algorith and the 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 a implementation on what 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 is provided in selenium, one of the most popular web Automation test. You'll know well on the its API if your track to its implementation. Of course you need to understand the code and have willness and time to learn.
All source code list as following:
You is free to access it 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
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/77/12/wKiom1ZiabqQyEZcAAEm0xsLfH8259.png "title=" 2015-12-05 12:35:44 screen. png "alt=" Wkiom1ziabqqyezcaaem0xslfh8259.png "/>
.650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/77/10/wKioL1ZiaDzxw8rVAAEJx0qwBok151.png "title=" Selenium.png "alt=" Wkiol1ziadzxw8rvaaejx0qwbok151.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/77/10/wKioL1ZiaxTge7o4AAGl0eS5ytM566.png "title=" Github.png "alt=" Wkiol1ziaxtge7o4aagl0es5ytm566.png "/>
This article is from "Tech" blog, please make sure to keep this source http://2274552.blog.51cto.com/2264552/1719823
WEB Automation test splinter and Selenium usage