English 中文(简体)
“结果”在环经网Selenium 缺乏空白时的错误
原标题:"result is null" error when working around _blank deficiency in Selenium IDE

Using a workaround to be able to check the contents of a new tab, I get unexpected results. If I play the test case, the following line fails:

storeEval | javascript{"selenium.browserbot.getCurrentWindow().open(  ,  my_window )"} | my_window

附有以下错误信息:

[error] Threw an exception: result is null

The following alternative statements show the exact same symptoms:

getEval | window.open("", "my_window")
getEval | selenium.browserbot.openWindow("", "my_window")

现在,如果我翻一番,那么doesn t就失败了,但它打开了一个新的窗口,我认为最初的解决办法的确是用的(下一个步骤是点击 即<>/em>窗户的链接)。 此时,我可以点击母窗,人工操作下一步骤,以启动链接,人工改用儿童窗口(selectWindow 本人_window)。 它说,它可能发现这一窗口,并手工操作以下步骤,以检查新窗口的内容。

我如何从这里着手适当测试automatic?

Update: There is a built-in action for opening windows, but it also fails. Maybe this verbatim log output can shed some light on what s going on:

[info] Executing: |store | license_window | windowName |
...
[info] Executing: |openWindow | | ${windowName} |
[error] Unexpected Exception: fileName -> chrome://selenium-ide/content/recorder.js, lineNumber -> 74

记录员的有关线:

66: window.open = function(url, windowName, windowFeatures, replaceFlag) {
...
74:            if (result.wrappedJSObject) {
75:                result = result.wrappedJSObject;
76:            }
最佳回答

你的浏览器似乎允许你网站的浏览。 选择和选择; 内容与特; 封闭式登机窗口的例外情况,并增加你的网站地址。

问题回答

暂无回答




相关问题
Javascript communication with Selenium (RC)

My Application has a lot of calculation being done in JavaScript according to how and when the user acts on the application. The project prints out valuable information (through console calls) as to ...

Running automated Web browser tests under Hudson

I m running Hudson for my automated builds and love it. I d now like to create automated Web browser tests using either WaTiN (preferred) or Selenium. As my Hudson runs as a Windows service (under ...

Using a Java library with Scala reserved words

I m using an external library written in Java (Selenium). One of the function calls has the signature type(String, String), and I keep getting compiler errors when trying to call it from Scala, that ...

Heightened privilege selenium browsers on Windows 7 (x64)

I make use of *firefox and *iexplore etc. within my selenium tests to get around the issue of self-signed SSL certificates on my local machine. Unfortunately, now that I ve moved from XP over to 7, ...

Selenium not working with Firefox 3.x on linux

I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my ...

Selenium IDE: Incrementing values by 1 and 71

Currently I m incrementing a value called wert by 1 with the following code: getEval storedVars[ wert ]=${wert}+1; The value wert is something like 80401299. I want to add 1 to the value, if it ...