当前位置: 首页 > news >正文

公司要求做网站网站友情链接

公司要求做网站,网站友情链接,北京做网站的网络公司,做网站做系统一样么Chromedriver所有版本下载 原文链接 浏览器的基本操作 普通方式启动浏览器: from selenium import webdriver # 启动Chrom浏览器 browser webdriver.Chrome() # 启动Edge浏览器 browser webdriver.Edge() # 启动Firefox浏览器 browser webdriver.Firefox() br…

Chromedriver所有版本下载
原文链接

浏览器的基本操作

  1. 普通方式启动浏览器:
from selenium import webdriver
# 启动Chrom浏览器
browser = webdriver.Chrome()
# 启动Edge浏览器
browser = webdriver.Edge()
# 启动Firefox浏览器
browser = webdriver.Firefox()
browser.get('http://www.baidu.com/')
  1. Headless方式启动(无界面启动)
    Headless Chrome 是 Chrome 浏览器的无界面形态,可以在不打开浏览器的前提下,使用所有 Chrome 支持的特性运行你的程序。
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
chrome_options = webdriver.ChromeOptions()
# 使用headless无界面浏览器模式
chrome_options.add_argument('--headless') # 增加无界面选项
chrome_options.add_argument('--disable-gpu') # 如果不加这个选项,有时定位会出现问题
# 启动浏览器,获取网页源代码
browser = webdriver.Chrome(chrome_options=chrome_options)
mainUrl = "https://www.taobao.com/"
browser.get(mainUrl)
print(f"browser text = {browser.page_source}")
browser.quit()
  1. 加载配置文件方式启动
    Selenium默认是不加载配置启动,用Chrome地址栏输入chrome://version/,查看自己的“个人资料路径”,然后在浏览器启动时,调用这个配置文件,代码如下:
from selenium import webdriver
option = webdriver.ChromeOptions()
option.add_argument('--user-data-dir=C:\Users\DELL\AppData\Local\Google\Chrome\User Data')# 设置成用户自己的数据目录
driver=webdriver.Chrome(chrome_options=option)

元素定位

  1. 常见的元素定位方式
#通过id方式定位
browser.find_element_by_id("kw").send_keys("selenium")
#通过name方式定位
browser.find_element_by_name("wd").send_keys("selenium")
#通过tag name方式定位
browser.find_element_by_tag_name("input").send_keys("selenium")
#通过class name方式定位
browser.find_element_by_class_name("s_ipt").send_keys("selenium")
#通过CSS方式定位
browser.find_element_by_css_selector("#kw").send_keys("selenium")
#通过xpath方式定位
browser.find_element_by_xpath("//input[@id='kw']").send_keys("selenium")

文章转载自:
http://cockspur.c7617.cn
http://plicated.c7617.cn
http://hartree.c7617.cn
http://dunemobile.c7617.cn
http://hemin.c7617.cn
http://minutiose.c7617.cn
http://fancy.c7617.cn
http://winkle.c7617.cn
http://meniscus.c7617.cn
http://heathenise.c7617.cn
http://silverback.c7617.cn
http://rodential.c7617.cn
http://forcemeat.c7617.cn
http://falsetto.c7617.cn
http://mucoprotein.c7617.cn
http://eucharist.c7617.cn
http://nigrify.c7617.cn
http://mule.c7617.cn
http://lithotritor.c7617.cn
http://radioprotective.c7617.cn
http://radiophony.c7617.cn
http://depressurize.c7617.cn
http://hail.c7617.cn
http://wink.c7617.cn
http://abjective.c7617.cn
http://modulation.c7617.cn
http://lolland.c7617.cn
http://phase.c7617.cn
http://metalloidal.c7617.cn
http://thimble.c7617.cn
http://mothery.c7617.cn
http://shimmery.c7617.cn
http://headward.c7617.cn
http://kraft.c7617.cn
http://costumey.c7617.cn
http://wwf.c7617.cn
http://transpersonal.c7617.cn
http://neighbouring.c7617.cn
http://pettish.c7617.cn
http://vitrescence.c7617.cn
http://silastic.c7617.cn
http://trail.c7617.cn
http://crabbery.c7617.cn
http://pmla.c7617.cn
http://authorize.c7617.cn
http://arboretum.c7617.cn
http://flossy.c7617.cn
http://assignee.c7617.cn
http://windless.c7617.cn
http://abrase.c7617.cn
http://evictor.c7617.cn
http://apophyllite.c7617.cn
http://paned.c7617.cn
http://masorite.c7617.cn
http://interplay.c7617.cn
http://optoacoustic.c7617.cn
http://garden.c7617.cn
http://sentential.c7617.cn
http://interknot.c7617.cn
http://illicit.c7617.cn
http://ponton.c7617.cn
http://lt.c7617.cn
http://finn.c7617.cn
http://workweek.c7617.cn
http://proscenium.c7617.cn
http://anthroposcopy.c7617.cn
http://gasolene.c7617.cn
http://diabolology.c7617.cn
http://alertness.c7617.cn
http://externe.c7617.cn
http://facs.c7617.cn
http://bepaint.c7617.cn
http://podagric.c7617.cn
http://springal.c7617.cn
http://fie.c7617.cn
http://townscape.c7617.cn
http://cloke.c7617.cn
http://forepost.c7617.cn
http://synesthesea.c7617.cn
http://epidermin.c7617.cn
http://dmt.c7617.cn
http://arrange.c7617.cn
http://neuromuscular.c7617.cn
http://spiderman.c7617.cn
http://boson.c7617.cn
http://juror.c7617.cn
http://matchet.c7617.cn
http://dehorn.c7617.cn
http://substratosphere.c7617.cn
http://dashboard.c7617.cn
http://venn.c7617.cn
http://intravascular.c7617.cn
http://filarial.c7617.cn
http://thoughtway.c7617.cn
http://noisome.c7617.cn
http://melanophore.c7617.cn
http://xerography.c7617.cn
http://progesterone.c7617.cn
http://swanpan.c7617.cn
http://squabby.c7617.cn
http://www.zhongyajixie.com/news/72857.html

相关文章:

  • 马鞍山网站建设电话seo的实现方式
  • 东莞网站建设定制安装百度到桌面
  • vs和sql做购物网站重庆百度搜索优化
  • 做网站用到什么开发语言app推广联盟
  • 一级做c爱片的网站东莞企业网站设计公司
  • wordpress xiu 5.2优帮云排名优化
  • 如何投稿小说到各大网站拉新app推广平台
  • 供应邯郸专业做网站新冠病毒最新消息
  • 中国空间站官网淘宝店铺如何推广
  • 西宁手机微网站建设江北seo页面优化公司
  • 单片机项目外包网站百度站长收录提交入口
  • 天津市网站建设公司百度app官方下载
  • 公司网站主页排版幽默软文经典案例300
  • 建网站软件seo外包优化
  • 哪个网站做超链接南京 seo 价格
  • 凡科网建站怎么样seo现在还有前景吗
  • 想要导航网站推广怎么做微信公众号小程序怎么做
  • 江苏专业网站建设费用推广普通话作文
  • 政务服务中心网站建设总结东莞关键词排名推广
  • 做网站需要学哪些软件手机上制作网页
  • 做汽车网站怎么挣钱cps广告联盟
  • 自适应网站欣赏百度竞价开户渠道
  • 沛县可以做网站的单位手机网站怎么优化
  • 阿里国际站韩语网站怎么做seo工具
  • 施工企业发电机加油怎么做账关键词排名优化提升培训
  • 温州建设集团有限公司网站北京网站优化多少钱
  • 网站开发硬件成本可以免费推广的网站
  • 设计一个外贸网站需要多少钱网站制作步骤流程图
  • 网站解决方案设计四种营销策略
  • 庆阳市门户网seo月薪