BTW, do you have any waitFor* calls such as waitForPageLoad? On Fri, May 21, 2010 at 12:39 AM, Jian Fang <[email protected]>wrote:
> Well, one possibility is that the html page is not loaded fully in run > mode, but no problem > in debug mode. The diagnose(uid) command should at least give you some > hints. > > Thanks, > > Jian > > > On Fri, May 21, 2010 at 12:07 AM, khush <[email protected]>wrote: > >> thanks for answer Jian. >> >> i will do as per ur saying. >> >> But my main question is why it runs when i debug? >> only thing comes into my mind is speed. >> Wat u say? >> >> thanks. >> >> On May 20, 8:04 pm, Jian Fang <[email protected]> wrote: >> > enableCssSelector() is equal to useCssSelector(true). >> enableCssSelector() >> > and disableCssSelector() are defined in DslContext, while >> > useCssSelector(boolean isTrue) is defined in tellurium test cases. You >> don't >> > really need to call enableCssSelector since >> > 0.7.0 uses CSS selector as the default selector. >> > >> > For your problem, you can comment out >> > >> > useTelluriumApi(true); >> > >> > to switch back to Selenium APIs to see if it works. Or you can try to >> use >> > new Engine by >> > call >> > >> > useTelluriumEngine(true); >> > >> > For the failed UI element, you can call >> > >> > diagnose(uid); >> > >> > to check what was wrong. >> > >> > Let us know if this helps. >> > >> > Thanks, >> > >> > Jian >> > >> > On Thu, May 20, 2010 at 3:20 AM, khush <[email protected]> >> wrote: >> > > Hi, >> > >> > > Just some more for information. >> > > I am using the following methods : >> > >> > > @BeforeClass >> > > public static void initUi() { >> > > changeLog = new ChangeHistoryModule(); >> > > changeLog.defineUi(); >> > > changeLog.enableCssSelector(); //TODO what is this? >> > > useCssSelector(true); >> > > //useTrace(true); >> > > //Engine state offline update >> > > useTelluriumApi(true); >> > > useCache(false); >> > > connectSeleniumServer(); >> > > // useEngineLog(true); >> > > } >> > >> > > Also, what i am noticing that while running if i dnt get this err >> > > which i reported then some other element is start giving the same err. >> > > Its quite disturbing. >> > > Elements at randomly are giving the errs that they are not being >> > > found. I am stuck at this. >> > > What may be the reason? anyone else has got this problem ? >> > >> > > Thanks. >> > >> > > On May 20, 12:03 pm, khush <[email protected]> wrote: >> > > > Hi, >> > >> > > > I am upgrading from 6 to 7 version of tellurium. >> > > > One of my web test is failing with the following err log: >> > >> > > > com.thoughtworks.selenium.SeleniumException: ERROR: Element >> > >> > > >> uimcal={"rid":"addeinvoiceaddressform.einvoiceaddress","locator":"jquery=form[method=post] >> > > > [name=routingForm] input[type=text][name=routingForm:routingId]"} >> not >> > > > found >> > > > at >> > >> > > >> com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java: >> > > > 97) >> > > > at >> > >> > > >> com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java: >> > > > 91) >> > > > at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown >> Source) >> > > > at >> > >> > > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: >> > > > 25) >> > > > at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite >> > > > >> $PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java: >> > > > 229) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java: >> > > > 52) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java: >> > > > 129) >> > > > at >> > >> > > >> org.telluriumsource.component.connector.CustomSelenium.getBundleResponse(CustomSelenium.groovy: >> > > > 257) >> > > > at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown >> Source) >> > > > at >> > >> > > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: >> > > > 25) >> > > > at >> > > > >> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java: >> > > > 88) >> > > > at >> groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) >> > > > at >> > > groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058) >> > > > at >> groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886) >> > > > at >> > > > >> groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java: >> > > > 149) >> > > > at groovy.lang.MetaObjectProtocol$invokeMethod.call(Unknown >> > > Source) >> > > > at >> > >> > > >> org.telluriumsource.component.dispatch.Dispatcher.methodMissing(Dispatcher.groovy: >> > > > 56) >> > > > at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown >> Source) >> > > > at >> > >> > > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: >> > > > 25) >> > > > at >> > > > >> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java: >> > > > 88) >> > > > at >> > > groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java: >> > > > 813) >> > > > at >> > > > >> groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java: >> > > > 1107) >> > > > at >> > > groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1060) >> > > > at >> groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java: >> > > > 39) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java: >> > > > 129) >> > > > at >> > >> > > >> org.telluriumsource.component.bundle.BundleProcessor.passBundledCommand(BundleProcessor.groovy: >> > > > 322) >> > > > at org.telluriumsource.component.bundle.BundleProcessor >> > > > $passBundledCommand.callCurrent(Unknown Source) >> > > > at >> > >> > > >> org.telluriumsource.component.bundle.BundleProcessor.process(BundleProcessor.groovy: >> > > > 414) >> > > > at org.telluriumsource.component.bundle.BundleProcessor >> > > > $process.callCurrent(Unknown Source) >> > > > at >> > >> > > >> org.telluriumsource.component.bundle.BundleProcessor.methodMissing(BundleProcessor.groovy: >> > > > 427) >> > > > at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown >> Source) >> > > > at >> > >> > > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: >> > > > 25) >> > > > at >> > > > >> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java: >> > > > 88) >> > > > at >> > > groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java: >> > > > 813) >> > > > at >> > > > >> groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java: >> > > > 1107) >> > > > at >> > > groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1060) >> > > > at >> groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java: >> > > > 39) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java: >> > > > 133) >> > > > at >> > >> > > >> org.telluriumsource.component.event.EventHandler.simulateKeyType(EventHandler.groovy: >> > > > 290) >> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> Method) >> > > > at >> > >> > > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: >> > > > 39) >> > > > at >> > >> > > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: >> > > > 25) >> > > > at >> > > > >> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java: >> > > > 88) >> > > > at >> groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java: >> > > > 361) >> > > > at >> groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java: >> > > > 66) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java: >> > > > 159) >> > > > at org.telluriumsource.component.event.EventHandler >> > > > $_keyType_closure12.doCall(EventHandler.groovy:235) >> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> Method) >> > > > at >> > >> > > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: >> > > > 39) >> > > > at >> > >> > > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: >> > > > 25) >> > > > at >> > > > >> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java: >> > > > 88) >> > > > at >> groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java: >> > > > 272) >> > > > at >> groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java: >> > > > 66) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java: >> > > > 151) >> > > > at org.telluriumsource.component.event.EventHandler >> > > > $_keyType_closure12.doCall(EventHandler.groovy) >> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> Method) >> > > > at >> > >> > > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: >> > > > 39) >> > > > at >> > >> > > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: >> > > > 25) >> > > > at >> > > > >> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java: >> > > > 88) >> > > > at >> groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java: >> > > > 272) >> > > > at >> groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java: >> > > > 39) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java: >> > > > 40) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java: >> > > > 54) >> > > > at >> > >> > > >> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java: >> > > > 121) >> > > > at org.telluriumsource.component.event.EventHandler >> > > > $_processEvents_closure1.doCall(EventHandler.groovy:85) >> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> Method) >> > > > at >> > >> > > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: >> > > > 39) >> > > > at >> > >> > ... >> > >> > 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.
