摘要: ####使用String对象的方法 // 1.indexOf //返回字串在字符串中首次出现的位置。如果没有返回 -1。 if(namesList[i].indexOf("河南") != -1){ //处理逻辑 } // 2.search //返回一个或多个匹配的字串,如果没有找到任何匹配的子串,则 阅读全文
posted @ 2020-11-18 17:55 轩辕吊雷 阅读(130) 评论(0) 推荐(0)
摘要: ChromeDriver chromeDriver = new ChromeDriver(chromeService, options, TimeSpan.FromSeconds(9000));; 阅读全文
posted @ 2020-11-18 12:48 轩辕吊雷 阅读(819) 评论(0) 推荐(0)
摘要: 解决方法:执行脚本之前,显示等待60s直到页面元素加载完成 WebDriverWait wait = new WebDriverWait(this.driver, TimeSpan.FromSeconds(60)); wait.Until(d => d.FindElement(By.CssSelec 阅读全文
posted @ 2020-11-18 03:59 轩辕吊雷 阅读(772) 评论(0) 推荐(0)