Selenium Webdriver : Element not found in the cache - perhaps the page has changed since it
来源:互联网 发布:simpleadapter源码 编辑:程序博客网 时间:2024/06/07 15:40
Selenium Webdriver with Java: Element not found in the cache - perhaps the page has changed since it was looked up
可以写这样的方法,先找到这个元素,再点击
public void clickAnElementByLinkText(String linkText) { wait.until(ExpectedConditions.presenceOfElementLocated(By.linkText(linkText))); driver.findElement(By.linkText(linkText)).click();}
然后调用clickAnElementByLinkText("文字");
可参考
http://stackoverflow.com/questions/17972359/selenium-webdriver-with-java-element-not-found-in-the-cache-perhaps-the-page
0 0
- Selenium Webdriver : Element not found in the cache - perhaps the page has changed since it
- 解决webdriver(Element not found in the cache - perhaps the page has changed since it was looked up )
- selenium之 坑(StaleElementReferenceException: Message: Element not found in the cache...)
- 第二十三节: selenium之 坑(StaleElementReferenceException: Message: Element not found in the cache...)
- 修改/proc/sys/kernel/core_uses_pid出现WARNING: The file has been changed since reading it!!!
- Selenium element is not attached to the page document
- Note: This element has no attached Javadoc and the Javadoc could not be found in the attached source
- Note:This element has no attached source and the javadoc could not be found in the attached javadoc
- 【Android】提示Note: This element has no attached source and the Javadoc could not be found in the attac
- Additional information: The model backing the 'StuInfoDBContext' context has changed since the datab
- Note: This element has no attached source and Javadoc could not be found in the attached Javadoc解决办法
- 关于DOM element with id in Element cache is not the same as element in the Dom解决方法
- Page not found The requested page could not be found.
- EF Code First(提示The model backing the '***' context has changed since the database was created.)
- MVC中“The model backing the '***Context' context has changed since the database was created. ”的问题处理
- it has a DefiningQuery and no InsertFunction element exists in the ModificationFunctionMapping element to support the current op
- note: the mangling of 'va_list' has changed in GCC
- it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping>
- C#读写文件中文乱码
- HttpURLConnection Get和Post发送数据
- 内存泄露从入门到精通三部曲之基础知识篇
- Linux小白入门日志
- DUBBO的com.alibaba.dubbo.rpc.RpcException解决方法
- Selenium Webdriver : Element not found in the cache - perhaps the page has changed since it
- iOS中关于自定义Tabbar
- 一个网页菜单的CSS代码分析
- 工厂三兄弟之工厂方法模式
- 自定义ImageView系列 - 区域截图(下)
- 【算法分析】随机数的生成:均匀分布、正态、泊松 、瑞利
- obs多开方法
- Android开机无法自启动service
- maven + springmvc + mybatis + ehcache 搭建