WebDriver 2.0:如果 IE (IE8) 的实例已经存在,则弹出窗口的会话过期错误 [英] WebDriver 2.0 : Session expire error for a popup window if an instance of IE (IE8) is already present

查看:67
本文介绍了WebDriver 2.0:如果 IE (IE8) 的实例已经存在,则弹出窗口的会话过期错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须自动化一个网络应用程序,在点击按钮后说弹出"一个新窗口被启动.

I have to automate a web application where after clicking a button say 'popup' a new window is launched.

手动执行这些步骤时,如果多个窗口/选项卡(例如 Google 、StackOverflow)已经打开,我不会遇到任何问题.

While performing the steps manually I face no issues if multiple windows/tabs(e.g. Google , StackOverflow) are already open.

但是,如果我通过自动化运行相同的步骤,则在单击弹出"按钮后会启动新窗口,并且我会收到会话已过期"警告框.

However if I run the same steps by automation,then after clicking the button 'popup' new window is launched and I get a 'session has expired' alert box.

请注意:如果我关闭了 IE 的所有实例,那么我的自动化代码就可以正常工作.我正在使用 Webdriver Java API.

Please Note : If I close all the instances of IE , then my automation code works fine. I am using Webdriver java API.

可能的原因是什么?

推荐答案

我今天遇到了同样的问题,对我有用的是在打开浏览器之前终止 IE 进程.尽管这已经很晚了,但我希望这对其他人有所帮助.

I was facing this same issue today, what worked for me was killing the IE processes before opening the browser. Even though this is super late I hope this helps anyone else.

这篇关于WebDriver 2.0:如果 IE (IE8) 的实例已经存在,则弹出窗口的会话过期错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆