1+x题库第四题
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85
题在这里
http://cytao.top/PDF/1+x题库第四题.pdf
from selenium import webdriver
driver=webdriver.Chrome()
driver.maximize_window()
driver.get("http://192.168.3.156:8080/suthr/logon")
driver.implicitly_wait(30)
driver.find_element_by_css_selector("#username").send_keys("hrteacher")
driver.find_element_by_xpath("//*[@id='password']").send_keys("123456")
driver.find_element_by_class_name("btn").click()
driver.find_element_by_link_text("门户首页").click()
new=driver.find_element_by_xpath("/html/body/div[3]/div[1]/div/div/div/div[2]/div[2]/div/a")
driver.execute_script("arguments[0].removeAttribute('target')",new)
new.click()
driver.get_screenshot_as_file("C:/Users/Litao/Desktop/5.png")

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85
0
Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in
/www/wwwroot/cytao.top/build/var/Widget/Archive.php on line
1617
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in
/www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line
84
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in
/www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line
85
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in
/www/wwwroot/cytao.top/build/var/Typecho/Request.php on line
310
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in
/www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line
84
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in
/www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line
85
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in
/www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line
65
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in
/www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line
65
评论 (0)