Appium报错:org.openqa.selenium.NoSuchSessionException
来源:互联网 发布:starcam网络摄像机软件下载 编辑:程序博客网 时间:2024/05/17 02:06
代码:
客户端代码中增加等待时间61秒
Thread.sleep(61000);
报错:
org.openqa.selenium.NoSuchSessionException
原因:
Appium一个应用的session过期时间是60秒。
解决:
方法1.别超过60秒限制;
方法2.Appium控制台设置超过60秒的超时处理时间,如
appium --command-timeout 600
注:以上仅为NoSuchSessionException的一种情况,还有其他情况,请看到此篇blog的同学自行搜索。
阅读全文
0 0
- Appium报错:org.openqa.selenium.NoSuchSessionException
- Appium 报错:org.openqa.selenium.NoSuchWindowException: no such window: target window already closed
- TestSuite很多skipped,报错Exception org.openqa.selenium.SessionNotCreatedException
- xpath定位报错org.openqa.selenium.NoSuchElementException:
- Selenium+webDriver 启动IE11 浏览器报错“org.openqa.selenium.NoSuchWindowException”
- Selenium+webDriver+win10 启动IE11 浏览器报错“org.openqa.selenium.NoSuchWindowException
- org.openqa.selenium.StaleElementReferenceException
- org.openqa.selenium.StaleElementReferenceException
- org.openqa.selenium.ElementNotVisibleException
- selenium2.0中 InternetExplorerDriver报错问题解决方法org.openqa.selenium.WebDriverException: Unexpected error
- selenium异常:org.openqa.selenium.remote.UnreachableBrowserException
- org.openqa.selenium.ElementNotVisibleException: element not visible
- idea maven 程序包org.openqa.selenium不存在
- 用java+selenium启动chrome浏览器时报错Exception in thread "main" org.openqa.selenium.NoSuchSession
- webdriver selenium org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with
- selenium exceptionin java (org.openqa.selenium.remote.UnreachableBrowserException)
- webdriver selenium org.openqa.selenium.remote.UnreachableBrowserException: Error
- Java Code Examples for org.openqa.selenium.JavascriptExecutor
- Android 监测蓝牙程序是否开启
- 【后台开发拾遗】数据访问、缓存与更新
- 3D变形--正方体旋转
- Appium基础篇13-无法定位app内webview页面元素
- 在IDEA中简单使用Maven构建web项目
- Appium报错:org.openqa.selenium.NoSuchSessionException
- SQL语句使用06--------案例02
- 随意记录下 关于 指针 c char **pp;
- 2017上半年技术文章集合【Android】
- java小程序下载地址
- Windows下利用Cmake编译OpenCV3.2.0 遇到ipipcv问题解决
- 剑指Offer--2.替换空格
- 设计模式初见
- Git&Github