selenium :
It is a tool for Web application testing. Selenium tests run directly in the browser, just as real users in the same operation. Supported browsers include IE (7, 8, 9, 10, 11), Mozilla Firefox , Safari, Google Chrome, Opera and so on. The main features of this tool include: testing and browser compatibility - Test your application to see if the well had to work on different browsers and operating systems. Test system functions - create regression testing test software functionality and user requirements. Support automatically record test scripts and actions in different languages automatically generate .Net, Java, Perl and so on.
-
Google Chrome
-
Internet Explorer 7, 8, 9, 10, 11
-
Firefox
-
Safari
-
Opera
-
HtmlUnit
-
phantomjs
-
Android
-
iOS
Browser
|
Selenium IDE
|
Selenium Remote Control
|
Selenium Core
|
Selenium 2/Webdriver API
|
---|---|---|---|---|
Firefox 10
|
Record and playback tests
|
Start browser, run tests
|
Run tests
|
Run tests
|
Firefox 9
|
Record and playback tests
|
Start browser, run tests
|
Run tests
|
Run tests
|
Firefox 8
|
Record and playback tests
|
Start browser, run tests
|
Run tests
|
Run tests
|
Firefox 7
|
Record and playback tests
|
Start browser, run tests
|
Run tests
|
Run tests
|
Firefox 6
|
Record and playback tests
|
Start browser, run tests
|
Run tests
|
Run tests
|
Firefox 5
|
Record and playback tests
|
Start browser, run tests
|
Run tests
|
Run tests
|
Firefox 4
|
Record and playback tests
|
Start browser, run tests
|
Run tests
|
Run tests
|
Firefox 3.6
|
Record and playback tests
|
Start browser, run tests
|
Run tests
|
Run tests
|
Firefox 3
|
Record and playback tests
|
Start browser, run tests
|
Run tests
|
not supported
|
IE 9
|
not supported
|
Start browser, run tests
|
Run tests
|
Run tests
|
IE 8
|
not supported
|
Start browser, run tests
|
Run tests
|
Run tests
|
IE 7
|
not supported
|
Start browser, run tests
|
Run tests
|
Run tests
|
Safari 3
|
not supported
|
Start browser, run tests
|
Run tests
|
not supported
|
Safari 2
|
not supported
|
Start browser, run tests
|
Run tests
|
not supported
|
Opera 9
|
not supported
|
Start browser, run tests
|
Run tests
|
Run tests
|
Opera 8
|
not supported
|
Start browser, run tests
|
Run tests
|
Run tests
|
Chrome
|
not supported
|
Start browser, run tests***
|
Run tests***
|
Run tests***
|
Others
|
not supported
|
Partial support possible*
|
Run tests**
|
not supported
|
selenium-related operations
Installation: pip install selenium
Supported browsers:
Import module:
from selenium import webdriver
Browser plug-ins (Google): link: https: //pan.baidu.com/s/17xk-6GXeach_HZTWo-AUqg
extraction code: vdlj
Start your browser:
bro = webdriver.Chrome(executable_path = r"F:\chromedriver.exe")
Analog request Address:
bro.get("https://koudashijie.com/teachers/classes")
Find the input box, to get the front page ID
text_input = bro.find_element_by_id('kw')
Typing
text_input.send_keys ( "steam maker culture")
Analog submit button
login_btn = bro.find_element_by_id("su").click()
Get page
bro.page_source