Hi Khush, Have you tried to escape the id such as the following?
ui.UrlLink(uid: "U3", clocator: [id: "substituterForm\:enterRunA3"]) I haven't tried that personally. But you can try and see if it works. Thanks, Jian On Tue, May 25, 2010 at 1:35 AM, khush <[email protected]> wrote: > Hi Jian, > > It works when i tried like : > > UrlLink(uid: "searchimglnk1", clocator: [tag: "a", id: "*RunA2", href: > "#"], respond: ["click"]) > > but for problem diagnosis i will attache a mock test which will > reflect the id problem very soon. > > Thanks, > Khush. > > On May 21, 9:49 pm, Jian Fang <[email protected]> wrote: > > Hi Khush, > > > > I searched the web and seems there was an issue for jQuery to handle ":" > in > > IE, > > > > http://dev.jquery.com/ticket/155 > > > > Not sure if this issue has been closed or not. Are you testing with IE? > > > > If that is the case, my suggestion for you is to use partial matching, > for > > example, > > > > id: "*enterRunA2" > > > > or > > > > id: "\$enterRunA2" > > > > Thanks, > > > > Jian > > > > On Fri, May 21, 2010 at 1:38 AM, khush <[email protected]> > wrote: > > > Hello Jian, > > > > > If i use id then it get the following err: > > > > > com.thoughtworks.selenium.SeleniumException: ERROR: Command execution > > > failure. Please search the Tellurium User Group at > > >http://groups.google.com/group/tellurium-usersfor error details from > > > the log window. The error message is: Syntax error, unrecognized > > > expression: Syntax error, unrecognized expression: enterRunA2 > > > JavaScript Error Stack: > > > {anonymous}(null)@http://localhost:4444/selenium-server/core/scripts/ > > > utils.js:589 > > > > > printStackTrace()@http://localhost:4444/selenium-server/core/scripts/ > > > utils.js:574 > > > > > {anonymous}("Command execution failure. Please search the Tellurium > > > User Group athttp://groups.google.com/group/tellurium-usersfor error > > > details from the log window. The error message is: Syntax error, > > > unrecognized expression: Syntax error, unrecognized expression: > > > enterRunA2")@http://localhost:4444/selenium-server/core/scripts/ > > > selenium-remoterunner.js:276< > http://localhost:4444/selenium-server/core/scripts/%0Aselenium-remote...> > > > > > {anonymous}("Syntax error, unrecognized expression: Syntax error, > > > unrecognized expression: enterRunA2")@http://localhost:4444/selenium- > > > server/core/scripts/selenium-executionloop.js:127 > > > > > {anonymous}(-10)@http://localhost:4444/selenium-server/core/scripts/ > > > selenium-executionloop.js:81< > http://localhost:4444/selenium-server/core/scripts/%0Aselenium-execut...> > > > > > {anonymous}(-10)@http://localhost:4444/selenium-server/core/scripts/ > > > htmlutils.js:60{anonymous}(null)@ > http://localhost:4444/selenium-server/ > > > core/scripts/utils.js:589,printStackTrace()@http://localhost:4444/ > > > selenium-server/core/scripts/utils.js:574,{anonymous}(< > http://localhost:4444/selenium-server/%0Acore/scripts/utils.js:589,pr...> > > > "Command > > > execution failure. Please search the Tellurium User Group at > > >http://groups.google.com/group/tellurium-usersfor error details from > > > the log window. The error message is: Syntax error, unrecognized > > > expression: Syntax error, unrecognized expression: enterRunA2")@http:// > > > localhost:4444/selenium-server/core/scripts/selenium-remoterunner.js: > > > 276,{anonymous}("Syntax error, unrecognized expression: Syntax error, > > > unrecognized expression: enterRunA2")@http://localhost:4444/selenium- > > > server/core/scripts/selenium-executionloop.js:127,{anonymous} > > > (-10)@http://localhost:4444/selenium-server/core/scripts/selenium- > > > executionloop.js:81,{anonymous}(-10)@http://localhost:4444/selenium-< > http://localhost:4444/selenium-server/core/scripts/selenium-%0Aexecut...> > > > server/core/scripts/htmlutils.js:60 > > > > > but when i remove id then this err goes away. > > > > > I am using these params : > > > > > //useTelluriumApi(true); > > > useCache(false); > > > connectSeleniumServer(); > > > useEngineLog(true); > > > > > Thanks. > > > > > On May 21, 10:02 am, Jian Fang <[email protected]> wrote: > > > > What do you mean new Tellurium does not allow the IDs? > > > > > > Based on your html, I defined the following UI module > > > > > > ui.UrlLink(uid: "U3", clocator: [id: > "substituterForm:enterRunA3"]) > > > > ui.UrlLink(uid: "U2", clocator: [id: > "substituterForm:enterRunA2"]) > > > > ui.UrlLink(uid: "U1", clocator: [id: > "substituterForm:enterRunA1"]) > > > > > > and the tests work fine. > > > > > > The code is available at > > > > > > > http://code.google.com/p/aost/source/browse/trunk/core/src/test/groov... > > > > > > BTW, for dynamic IDs, you can use partial Ids, for instance, > > > "*enterRunA3". > > > > > > Thanks, > > > > > > Jian > > > > > > On Fri, May 21, 2010 at 12:10 AM, khush <[email protected] > > > > > wrote: > > > > > Hi All, > > > > > > > I am getting one problem with tellurium 7. On my web page i am > having > > > > > three images having onclick event associated with them and their > > > > > source code is like as follows : > > > > > For image 1 : > > > > > <table class="formGrid"><tbody><tr><td><a href="#" onclick="return > > > > > oamSubmitForm('substituterForm','substituterForm:enterRunA3');" > > > > > id="substituterForm:enterRunA3"><img > src="/btweb/ui_pics/search.gif"></ > > > > > a></td> > > > > > </tr></tbody></table> > > > > > > > For image 2 : > > > > > <table class="formGrid"><tbody><tr><td><a href="#" onclick="return > > > > > oamSubmitForm('substituterForm','substituterForm:enterRunA2');" > > > > > id="substituterForm:enterRunA2"><img > src="/btweb/ui_pics/search.gif"></ > > > > > a></td> > > > > > </tr></tbody></table> > > > > > > > For image 3 : > > > > > <table class="formGrid"><tbody><tr><td><a href="#" onclick="return > > > > > oamSubmitForm('substituterForm','substituterForm:enterRunA1');" > > > > > id="substituterForm:enterRunA1"><img > src="/btweb/ui_pics/search.gif"></ > > > > > a></td> > > > > > </tr></tbody></table> > > > > > > > Now we can see that the <a> tag is having only id attribute and id > > > > > attribute is having special character colon (: ) which is not > allowed > > > > > in new tellurium. > > > > > My first question is how can i define them in UI so that all the > > > > > images can be differentiated from each other. > > > > > > > Now if i delete the id element and then try to call these images > > > > > like : > > > > > > > then i get the following err : > > > > > com.thoughtworks.selenium.SeleniumException: ERROR: Command > execution > > > > > failure. Please search the Tellurium User Group at > > > > >http://groups.google.com/group/tellurium-usersforerror details from > > > > > the log window. The error message is: element.dispatchEvent is not > a > > > > > function > > > > > JavaScript Error Stack: > > > > > {anonymous}(null)@ > http://localhost:4444/selenium-server/core/scripts/ > > > > > utils.js:589 > > > > > > > printStackTrace()@ > http://localhost:4444/selenium-server/core/scripts/ > > > > > utils.js:574 > > > > > > > {anonymous}("Command execution failure. Please search the Tellurium > > > > > User Group athttp:// > groups.google.com/group/tellurium-usersforerror > > > > > details from the log window. The error message is: > > > > > element.dispatchEvent is not a function")@http://localhost:4444/ > > > > > selenium-server/core/scripts/selenium-remoterunner.js:276< > > >http://localhost:4444/%0Aselenium-server/core/scripts/selenium-remote.. > .> > > > > > > > {anonymous}([object Error])@ > > >http://localhost:4444/selenium-server/core/ > > > > > scripts/selenium-executionloop.js:127< > > >http://localhost:4444/selenium-server/core/%0Ascripts/selenium-execut.. > .> > > > > > > > {anonymous}(6)@http://localhost:4444/selenium-server/core/scripts/ > > > > > selenium-executionloop.js:81< > > >http://localhost:4444/selenium-server/core/scripts/%0Aselenium-execut.. > .> > > > > > > > {anonymous}(6)@http://localhost:4444/selenium-server/core/scripts/ > > > > > htmlutils.js:60{anonymous}(null)@ > > >http://localhost:4444/selenium-server/ > > > > > core/scripts/utils.js:589,printStackTrace()@http://localhost:4444/ > > > > > selenium-server/core/scripts/utils.js:574,{anonymous}(< > > >http://localhost:4444/selenium-server/%0Acore/scripts/utils.js:589,pr.. > .> > > > > > "Command > > > > > execution failure. Please search the Tellurium User Group at > > > > >http://groups.google.com/group/tellurium-usersforerror details from > > > > > the log window. The error message is: element.dispatchEvent is not > a > > > > > function")@ > > >http://localhost:4444/selenium-server/core/scripts/selenium- > > > > > remoterunner.js:276,{anonymous}([object< > > > > http://localhost:4444/selenium-server/core/scripts/selenium-%0Aremote...[object > > > >Error])@ > > > > >http://localhost:4444/ > > > > > > selenium-server/core/scripts/selenium-executionloop.js:127,{anonymous}< > > >http://localhost:4444/%0Aselenium-server/core/scripts/selenium-execut.. > .> > > > > > (6)@http://localhost:4444/selenium-server/core/scripts/selenium- > > > > > executionloop.js:81,{anonymous}(6)@http://localhost:4444/selenium- > > > > > server/core/scripts/htmlutils.js:60< > > >http://localhost:4444/selenium-server/core/scripts/selenium-%0Aexecut.. > .> > > > > > at > > > > > > com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java: > > > > > 97) > > > > > at com > > > > > > > It may be because i am having similar elements so click event > becomes > > > > > confused. > > > > > Anybody has any idea? > > > > > > > Thanks and Rgds, > > > > > Khush. > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "tellurium-users" group. > > > > > To post to this group, send email to > [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<tellurium-users%[email protected]> > <tellurium-users%[email protected]<tellurium-users%[email protected]> > > > > > <tellurium-users%[email protected]<tellurium-users%[email protected]> > <tellurium-users%[email protected]<tellurium-users%[email protected]> > > > > > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/tellurium-users?hl=en. > > > > > > -- > > > > You received this message because you are subscribed to the Google > Groups > > > "tellurium-users" group. > > > > To post to this group, send email to > [email protected]. > > > > To unsubscribe from this group, send email to > > > [email protected]<tellurium-users%[email protected]> > <tellurium-users%[email protected]<tellurium-users%[email protected]> > > > > > . > > > > For more options, visit this group athttp:// > > > groups.google.com/group/tellurium-users?hl=en. > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "tellurium-users" group. > > > To post to this group, send > > > > ... > > > > read more ยป > > -- > You received this message because you are subscribed to the Google Groups > "tellurium-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<tellurium-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/tellurium-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en.
