As with the other bug that you're reporting as not fixed (the one where we actually posted a movie of the feature working to clear up any possible ambiguity), we're not seeing a problem. Make sure you have updated all resources **including selenium-extensions.js** and cleared browser caches, and retry your test.
Announcement
Collapse
No announcement yet.
X
-
hi, for the one where you actually posted a movie of the feature working to clear up any possible ambiguity, try this test case.
click the Username field, enter kevin
click Email field, enter kevin
click the button on the right side
you will get the following commands, which are not in correct order.
Code:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://selenium-ide.openqa.org/profiles/test-case"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="selenium.base" href="" /> <title>New Test</title> </head> <body> <table cellpadding="1" cellspacing="1" border="1"> <thead> <tr><td rowspan="1" colspan="3">New Test</td></tr> </thead><tbody> <tr> <td>open</td> <td>/isomorphic/system/reference/SmartClient_Explorer.html#formLayoutTitles</td> <td></td> </tr> <tr> <td>type</td> <td>scLocator=//DynamicForm[ID="exampleForm"]/item[name=username||title=Username||value=kevin||index=0||Class=TextItem]/element</td> <td>kevin</td> </tr> <tr> <td>click</td> <td>scLocator=//FeatureExplorer[ID="featureExplorer"]/exampleViewer/exampleViewPane[Class=ExampleViewPane||index=0||length=1||classIndex=0||classLength=1]/viewContainer/child[Class=Button||index=1||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||title=Swap%20titles||scRole=button]/</td> <td></td> </tr> <tr> <td>type</td> <td>scLocator=//DynamicForm[ID="exampleForm"]/item[name=email||title=Email||value=kevin||index=1||Class=TextItem]/element</td> <td>kevin</td> </tr> </tbody></table> </body> </html>
Code:[error] Unexpected Exception: message -> rect is not defined, fileName -> http://localhost:8080/isomorphic/system/modules/ISC_Core.js?isc_version=SC_SNAPSHOT-2010-06-09.js, lineNumber -> 3800, stack -> ("//TreeGrid[ID=\"employeeTree\"]/body/row[EmployeeId=4||Name=Charles%20Madigen||0]/col[fieldName=Name||0]",[object HTMLTableCellElement])@http://localhost:8080/isomorphic/system/modules/ISC_Core.js?isc_version=SC_SNAPSHOT-2010-06-09.js:3800 isc_c_Class_invokeSuper(null,"getAutoTestLocatorCoords")@http://localhost:8080/isomorphic/system/modules/ISC_Core.js?isc_version=SC_SNAPSHOT-2010-06-09.js:298 isc_c_Class_Super("getAutoTestLocatorCoords",[object Object])@http://localhost:8080/isomorphic/system/modules/ISC_Core.js?isc_version=SC_SNAPSHOT-2010-06-09.js:290 ("//TreeGrid[ID=\"employeeTree\"]/body/row[EmployeeId=4||Name=Charles%20Madigen||0]/col[fieldName=Name||0]",[object HTMLTableCellElement])@http://localhost:8080/isomorphic/system/modules/ISC_Core.js?isc_version=SC_SNAPSHOT-2010-06-09.js:3869 isc_c_AutoTest_getPageCoords("//TreeGrid[ID=\"employeeTree\"]/body/row[EmployeeId=4||Name=Charles%20Madigen||0]/col[fieldName=Name||0]")@http://localhost:8080/isomorphic/system/modules/ISC_Core.js?isc_version=SC_SNAPSHOT-2010-06-09.js:3720 , name -> ReferenceError
Code:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://selenium-ide.openqa.org/profiles/test-case"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="selenium.base" href="" /> <title>New Test</title> </head> <body> <table cellpadding="1" cellspacing="1" border="1"> <thead> <tr><td rowspan="1" colspan="3">New Test</td></tr> </thead><tbody> <tr> <td>open</td> <td>/isomorphic/system/reference/SmartClient_Explorer.html#_Trees_Sorting</td> <td></td> </tr> <tr> <td>click</td> <td>scLocator=//TreeGrid[ID="employeeTree"]/body/row[EmployeeId=4||Name=Charles%20Madigen||0]/col[fieldName=Name||0]</td> <td></td> </tr> </tbody></table> </body> </html>
Also, i cleaned the cache in my browser.
Comment
-
Hi Kevin,
The tree issue should now be resolved. The issue will show up in the next nightly build. If you want a workaround in the meantime, you could temporarily add this code to your live app after loading SmartClient:
Code:isc.Canvas.addProperties({ getAutoTestLocatorCoords:function (_67, _50) { if (_67 == null || _50 == null) { return null; } var _51 = isc.Element.getElementRect(_50); var _52 = _51[0], _53 = _51[2]; _52 += Math.floor(_53 / 2); var _54 = _51[1], _55 = _51[3]; _54 += Math.floor(_55 / 2); return [_52, _54]; } });
Comment
-
hi, guys. I tried the 18th build with firefox and the problem is solved. Thanks you very much.
But when i tried with IE, I received the error "rect is not defined" when I clicked a button,Can you please take a look about it? Or you want me to create a new thread for it?
following is the log
Code:15:15:57.734 INFO - Command request: click[scLocator=//Button[ID="page$$Button1" ]/, ] on session 68d45aa631114cea80bae172cb112514 15:15:57.922 INFO - Got result: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: 'rect' is undefined on session 68d45aa631114cea80bae172c b112514
Thanks
Comment
-
Try executing isc.Canvas.getInstanceProperty("getAutoTestLocatorCoords").toString() in your Developer Console in IE and in Firefox. In Firefox, where it's working, you will see that there's no variable "rect" at all. In IE, if you see a local variable "rect", you have stale code somewhere, even if it's not the browser cache.
Comment
-
hi guys, with the latest build, the rect error is gone.
but during playback in IE, when selenium click a non-root tree node which can be expanded or collapsed, we receive the following error:
Code:Caused by: com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: Unspecified error. at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97) at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91) at com.thoughtworks.selenium.DefaultSelenium.click(DefaultSelenium.java:167) at com.conceptwave.doc.test.CwfSeleniumWrapper.click(CwfSeleniumWrapper.java:252)
thanks
Comment
Comment