zoukankan      html  css  js  c++  java
  • 第二十七节 selenium行为链

    from selenium import webdriver
    from selenium.webdriver.chrome.options import Options
    
    
    browers_path = r'C:UsersAdministratorAppDataLocal360ChromeChromeApplication360chrome.exe'
    chrome_option = Options()
    chrome_option.binary_location = browers_path
    browers_driver = webdriver.Chrome(options=chrome_option)
    
    from selenium.webdriver.common.action_chains import ActionChains
    browers_driver.get("http://www.baidu.com")
    inputag = browers_driver.find_element_by_id('kw')
    submitag = browers_driver.find_element_by_id('su')
    
    actions = ActionChains(browers_driver)
    actions.move_to_element(inputag)
    actions.send_keys_to_element(inputag,'python')
    actions.move_to_element(submitag)
    actions.click(submitag)
    actions.perform()
  • 相关阅读:
    密码学浅析
    FireWall Mark + LVS
    tcp/ip首部
    iptables(二)网络防火墙
    BIND服务
    LVS(一)
    QQ、微信消息轰炸
    LVS四种模型(二)
    安装和克隆
    压缩和打包
  • 原文地址:https://www.cnblogs.com/kogmaw/p/12507116.html
Copyright © 2011-2022 走看看