【问题标题】:Selenium selectWindow does not find window opened with openWindowSelenium selectWindow 找不到用 openWindow 打开的窗口
【发布时间】:2012-04-21 07:10:25
【问题描述】:

在 FireFox 11 上的 Selenium IDE 中,我使用

openWindow | ${myURL} | receiverWindow
selectWindow | receiverWindow

我明白了

[info] Executing: |selectWindow | receiverWindow | |
[debug] Command found, going to execute selectWindow
[debug] getWindowByName(receiverWindow)
[debug] getWindowNameByTitle(receiverWindow)
[error] Could not find window with title receiverWindow 

使用 FireBug,我查看了成功打开的窗口的 DOM,发现了一个顶级条目:seleniumWindowName | "接收窗口"

因此,看起来 selenium 似乎以某种方式存储了 WindowID,但似乎看起来不同于存储位置。

我也试过 选择窗口 | “receiverWindow”(带引号)但没有成功。

我在这里没有得到什么?

【问题讨论】:

  • 它还能以其他方式工作吗?可以试试 Firefox 10 吗? Firefox 11 存在一些问题,因为 Selenium 尚未与它完全兼容。
  • 现在尝试 FF9,因为我找不到 FF10 for Mac 下载。但那里是一样的。 (抱歉回复晚了,邮件漏掉了)

标签: selenium selenium-ide


【解决方案1】:

如果使用openWindowAndWait命令而不是openWindow命令,后续的selectWindow步骤是否成功?

您可能还需要指定 ${receiverWindow} 以在 selectWindow 步骤中引用变量。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-24
    • 2023-04-01
    相关资源
    最近更新 更多