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

如何建立微信网站建一个网站大概需要多少钱

如何建立微信网站,建一个网站大概需要多少钱,wordpress 在线教育 模板,菠菜网站搭建怎么做1.Selenium库依赖安装 Selenium WebDriver是Selenium项目的一部分,用于模拟用户在Web应用程序中的交互操作。它支持多种浏览器,如Chrome、Firefox、IE等,且与各种编程语言(如Java、Python、C#等)兼容,具有…

1.Selenium库依赖安装

Selenium WebDriver是Selenium项目的一部分,用于模拟用户在Web应用程序中的交互操作。它支持多种浏览器,如Chrome、Firefox、IE等,且与各种编程语言(如Java、Python、C#等)兼容,具有广泛的适应性。

Selenium WebDriver的核心原理通过向浏览器发送命令和脚本,模拟真实用户的操作行为,从而实现对Web应用程序的自动化测试

2.准备材料

        最新版本chromedriver 下载地址:
https://googlechromelabs.github.io/chrome-for-testing/#stable

        这里有自动测试用到的chrome版本以及驱动。

Chrome for Testing availability 

         最新的Chrome版本和驱动:

下载后Chorme的目录如下图:

 ChromeDriver如下:

3.示例代码

         ChromeDriver

                        string chromiumFolderLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\chromium";chromeOptions = new ChromeOptions{UnhandledPromptBehavior = UnhandledPromptBehavior.Accept,};// check if in incog mode, if it is, then we launch incog modeif (this.incogMode){chromeOptions.AddArgument("--incognito");}// enable headless modeif (this.headless){Logger.Info("Started a headless session");chromeOptions.AddArgument("--headless=new");}chromeOptions.AddArgument("--start-maximized");chromeOptions.AddArgument("no-sandbox");chromeOptions.AddArgument("--log-level=3");chromeOptions.AddArgument("--silent");chromeOptions.AddUserProfilePreference("download.prompt_for_download", false);chromeOptions.AddUserProfilePreference("download.default_directory", pathToNewFolder);chromeOptions.AddUserProfilePreference("disable-popup-blocking", true);chromeOptions.AddUserProfilePreference("plugins.always_open_pdf_externally", true);chromeOptions.BinaryLocation = $"{chromiumFolderLocation}\\chrome.exe";// we want to find all the files under the location of chromium\Extensions and add them in.if (Directory.Exists(chromiumFolderLocation + "\\Extensions")){foreach (string extension in Directory.GetFiles(chromiumFolderLocation + "\\Extensions")){chromeOptions.AddExtension(extension);}}var pp =  Environment.OSVersion.Platform; service = ChromeDriverService.CreateDefaultService(this.seleniumDriverLocation);service.SuppressInitialDiagnosticInformation = true;this.WebDriver = new ChromeDriver(service,chromeOptions);

备注

        1.调试过程中遇到的一个常数Environment.OSVersion.Platform值是“Win32NT”,开发环境操作系统是win10_64位的。

        2.Headerless Browser(无头的浏览器)是浏览器的无界面状态,可以在不打开浏览器GUI的情况下,使用浏览器支持的性能。

http://www.hkea.cn/news/955583/

相关文章:

  • 甘特图模板关于网站建设微信营销模式
  • 网站建设的swot分析长尾关键词挖掘精灵
  • 发布自己的做家教的网站网店运营推广登录入口
  • b s网站系统如何做性能测试百度推广运营怎么做
  • 洛阳seo外包公司费用seo的中文意思
  • 政府网站建设遵循的原则seo网站内容优化
  • java做网站具体步骤邵阳seo优化
  • 自己做的网站如何放进服务器今天今日头条新闻
  • 男装网站的网站建设背景惠州seo按天计费
  • 如何快速提高网站排名互联网项目推广
  • icp备案网站名称更改成都网站设计
  • 企业网站建设需求分析seo排名资源
  • python基础教程雪峰东莞搜索seo网站关键词优化
  • b2b网站开发供应商小程序开发教程全集免费
  • 用自己的手机做网站外链网站是什么
  • 市场调研公司介绍网站推广优化公司
  • 玉溪人民政府网站建设现状新网站seo
  • 湖南餐饮网站建设2023北京封控了
  • 重庆网站设计人员外贸网站搭建推广
  • 局域网内的网站建设西安网站建设公司排名
  • 普通网站报价多少中南建设集团有限公司
  • 蚌埠做网站哪家好全网营销国际系统
  • 沈阳市网站制作谷歌香港google搜索引擎入口
  • 做美食网站的背景高端网站建设制作
  • 文件什么上传到wordpress泉州seo技术
  • 网站地址地图怎么做网页制作的软件有哪些
  • 如何用万网建设网站口碑营销策划方案
  • 做网站的基础架构东莞seo建站公司
  • 嘉兴做网站的哪家好龙岗网站制作
  • 论坛做网站好吗百度官方网页