栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

UI自动化测试中比较少见的异常记录

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

UI自动化测试中比较少见的异常记录

​@TOC

浏览器无响应/超时/界面点击无效

timeout: Timed out receiving message from renderer: 300.000
org.openqa.selenium.TimeoutException: timeout: Timed out receiving message from renderer

from unknown error: cannot determine loading status
from tab crashed
(Session info: chrome=100.0.4896.60)
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘CODE007’, ip: ‘192.168.10.241’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_211’
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 100.0.4896.60, chrome: {chromedriverVersion: 100.0.4896.60 (6a5d10861ce8…, userDataDir: C:UsersFrancizAppDataLo…}, goog:chromeOptions: {debuggerAddress: localhost:50203}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: 91d67a9aaf02d69b760e522550034e2d

上面是出现错误时的代码片段,如果你的情况与我类似,那么可能是你的UI自动化测试中执行某个用例时遇到了xxx bug 导致你的浏览器卡死/无效操作.

元素点击拦截异常

org.openqa.selenium.ElementClickInterceptedException:
element click intercepted: Element … is not clickable at point (491, 324). Other element would receive the click:

…

这种情况一般是浏览器界面在操作时 鼠标正在转圈圈(卡顿了),一般在操作这个元素之前加一点等待时间即可解决.

​

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/961980.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号