Hi,
I'm making my first steps with SmartGWT + Selenium IDE.
After configuring Selenium IDE (user-extensions.js + user-extensions-ide.js) I tried the simplest example I could find - an IButton with an explicit ID.
I click it and the Selenium IDE records the script successfully, but on playback I'm getting an "Unexpected Exception" in the IDE:
Selenium IDE log (debug level):
Versions and stuff:
The example was compiled with SmartGWT 2.4 + GWT 2.2. The IDE extensions come from the SmartGWT 2.4. Working on FireFox 3.6.17, tried inside and outside of dev-mode.
Sample code:
Googling brought almost no hits for this exception, so I must be missing something basic...
Any ideas?
Thanks,
Neuman
I'm making my first steps with SmartGWT + Selenium IDE.
After configuring Selenium IDE (user-extensions.js + user-extensions-ide.js) I tried the simplest example I could find - an IButton with an explicit ID.
I click it and the Selenium IDE records the script successfully, but on playback I'm getting an "Unexpected Exception" in the IDE:
Selenium IDE log (debug level):
Code:
# [info] Located in doScClick : scLocator=//IButton[ID="hello_button"]/
# [debug] modifyWindow seleniumMarker1307892023226:selenium1307892025429
# [debug] _getFrameElement: frameElement=null
# [debug] modifySeparateTestWindowToDetectPageLoads: already polling this window: selenium1307892025429
# [debug] modifyWindow seleniumMarker1307892023226:1
# [debug] _getFrameElement: frameElement=[object XPCNativeWrapper [object HTMLIFrameElement]]
# [debug] frameElement.name=
# [debug] modifySeparateTestWindowToDetectPageLoads: already polling this window: selenium1307892025454
# [debug] modifyWindow seleniumMarker1307892023226:1
# [debug] _getFrameElement: frameElement=[object XPCNativeWrapper [object HTMLIFrameElement]]
# [debug] frameElement.name=
# [debug] modifySeparateTestWindowToDetectPageLoads: already polling this window: selenium1307892025473
# [debug] getCurrentWindow newPageLoaded = false
# [debug] Locate Element with SC Locator=//IButton[ID="hello_button"]/, inDocument=[object XPCNativeWrapper [object HTMLDocument]], inWindow=http://127.0.0.1:8888/Sandbox.html
# [error] Unexpected Exception: message -> autWindow.isc is undefined, fileName -> chrome://selenium-ide/content/tools.js -> file:///C:/dev/smartgwt-2.4/selenium/user-extensions.js, lineNumber -> 17, stack -> ()@chrome://selenium-ide/content/tools.js -> file:///C:/dev/smartgwt-2.4/selenium/user-extensions.js:17 ("//IButton[ID=\"hello_button\"]/",[object XPCNativeWrapper],[object XPCNativeWrapper])@chrome://selenium-ide/content/tools.js -> file:///C:/dev/smartgwt-2.4/selenium/user-extensions.js:60 ("sclocator","//IButton[ID=\"hello_button\"]/",[object XPCNativeWrapper],[object XPCNativeWrapper])@chrome://selenium-ide/content/selenium-core/scripts/selenium-browserbot.js:1269 ("sclocator","//IButton[ID=\"hello_button\"]/",[object XPCNativeWrapper],[object XPCNativeWrapper])@chrome://selenium-ide/content/selenium-core/scripts/selenium-browserbot.js:1401 ([object Object],[object XPCNativeWrapper])@chrome://selenium-ide/content/selenium-core/scripts/selenium-browserbot.js:1428 ("scLocator=//IButton[ID=\"hello_button\"]/")@chrome://selenium-ide/content/selenium-core/scripts/selenium-browserbot.js:1440 ("scLocator=//IButton[ID=\"hello_button\"]/","")@chrome://selenium-ide/content/tools.js -> file:///C:/dev/smartgwt-2.4/selenium/user-extensions.js:100 ("scLocator=//IButton[ID=\"hello_button\"]/","")@chrome://selenium-ide/content/selenium-core/scripts/htmlutils.js:60 ([object Object],[object Object])@chrome://selenium-ide/content/selenium-core/scripts/selenium-commandhandlers.js:310 ()@chrome://selenium-ide/content/selenium-core/scripts/selenium-executionloop.js:112 (0)@chrome://selenium-ide/content/selenium-core/scripts/selenium-executionloop.js:78 (0)@chrome://selenium-ide/content/selenium-core/scripts/htmlutils.js:60 , name -> TypeError
The example was compiled with SmartGWT 2.4 + GWT 2.2. The IDE extensions come from the SmartGWT 2.4. Working on FireFox 3.6.17, tried inside and outside of dev-mode.
Sample code:
Code:
public void onModuleLoad() {
IButton button = new IButton("Hello World");
button.setID("hello_button");
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
SC.say("Hello World from SmartGWT");
}
});
button.draw();
}
Any ideas?
Thanks,
Neuman
Comment