Hi
Now i put same ids but same proble is coming:
ui.Container(uid: "ctl00_NavigationPlaceholder_RadPanelbar1_p0",
clocator: [tag: "a", class: "link selected expanded", href: "../
SupplierPortal/SupplierPortal/Welcome.aspx"])
{
Div(uid: "Administration", clocator: [tag: "span",
text: "Administration", direct: "true", class: "text"])
}
public void saveComp ( )
{
click
"ctl00_NavigationPlaceholder_RadPanelbar1_p0.Administration"
Regards
Shivani
On Jul 14, 10:41 am, Hari <[email protected]> wrote:
> Hi,
>
> You don't have the uid" *ctl00_NavigationPlaceholder_RadPanelbar1_p0"*
>
> *You having ly*
>
> *ui.Container(uid: "Ctl00_NavigationPlaceholder_RadPanelbar1_p02*",clocator:
> [tag: "a", title:"Administration"
> ,href:"/vmw080/SupplierPortal/SupplierPortal/Welcome.aspx"])
>
> {
>
> Div(uid: "Administration", clocator: [tag:"span", text: "Administration",
> direct: "true", class: "text"])
>
> }
>
> click"*ctl00_NavigationPlaceholder_RadPanelbar1_p0*.Administration"
> *Solution:
> *
>
> click"*Ctl00_NavigationPlaceholder_RadPanelbar1_p02*.Administration"
> Regards,
> Hari
> On 14 July 2011 10:48, QA_new <[email protected]> wrote:
>
> > Hi Hari
>
> > I replaced textbox with div but still it doesnt help .
>
> > Actually firstly i created a script for login page which was working
> > fine. and for other script i called login script first then call new
> > script. Now when m executing the script till login page its working
> > fine and after that on link which i ahve to clicked is nt working..Id
> > for that link is found..
>
> > same problem is coming after using Div.
>
> > public void defineUI()
> > {
> > ui.Container(uid: "ctl00_NavigationPlaceholder_RadPanelbar1_p0",
> > clocator: [tag: "a", class: "link focused",
> > id:"ctl00_NavigationPlaceholder_RadPanelbar1_p0"])
> > {
> > Div(uid: "Administration", clocator: [tag: "span",
> > text: "Administration", direct: "true", class: "text"])
> > }
>
> > ui.Container(uid:
> > "Ctl00_NavigationPlaceholder_RadPanelbar1_p0_p2", clocator: [tag: "a",
> > class: "link focused", id:
> > "ctl00_NavigationPlaceholder_RadPanelbar1_p0_p2"])
> > {
> > TextBox(uid: "CompanyProfile", clocator: [tag: "span",
> > text: "Company Profile", direct: "true", class: "text"])
> > }
>
> > Regards
> > Shivani
>
> > On Jul 14, 9:57 am, Hari <[email protected]> wrote:
> > > Hi,
> > > Insteadof using Textbox use Div command, It ll be working fine.
>
> > > *Failure Code*
>
> > > ui.Container(uid:
> > "Ctl00_NavigationPlaceholder_RadPanelbar1_p02",clocator:
> > > [tag: "a", title:"Administration"
> > > ,href:"/vmw080/SupplierPortal/SupplierPortal/Welcome.aspx"])
>
> > > {
>
> > > *TextBox*(uid: "Administration", clocator: [tag:"span", text:
> > > "Administration", direct: "true", class: "text"])
>
> > > }
>
> > > *Solution:*
>
> > > ui.Container(uid:
> > "Ctl00_NavigationPlaceholder_RadPanelbar1_p02",clocator:
> > > [tag: "a", title:"Administration"
> > > ,href:"/vmw080/SupplierPortal/SupplierPortal/Welcome.aspx"])
>
> > > {
>
> > > *Div*(uid: "Administration", clocator: [tag:"span", text:
> > "Administration",
> > > direct: "true", class: "text"])
>
> > > }
>
> > > Regrards,
> > > Hari
>
> > > On 13 July 2011 16:20, QA_new <[email protected]> wrote:
>
> > > > Hi
>
> > > > I am beginner in Tellurium. I have created a test script for a page
> > > > where i have to save the data but before that i have to click on menu
> > > > link. on executing the script m facing an error
>
> > > > org.telluriumsource.exception.UiObjectNotFoundException: Cannot find
> > > > UI Object ctl00_NavigationPlaceholder_RadPanelbar1_p0.Administration
> > > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > > Method)
> > > > at
>
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
> > > > 39)
> > > > at
>
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
> > > > 27)
> > > > at
> > java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> > > > at
>
> > org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:
> > > > 77)
> > > > at org.codehaus.groovy.runtime.callsite.ConstructorSite
> > > > $ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:
> > > > 107)
> > > > at
>
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:
> > > > 52)
> > > > at
>
> > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:
> > > > 192)
> > > > at
>
> > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:
> > > > 200)
> > > > at
>
> > org.telluriumsource.dsl.BaseDslContext.walkToWithException(BaseDslContext.groovy:
> > > > 155)
> > > > at org.telluriumsource.dsl.BaseDslContext
> > > > $walkToWithException.callCurrent(Unknown Source)
> > > > at
>
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:
> > > > 44)
> > > > at org.telluriumsource.dsl.BaseDslContext
> > > > $walkToWithException.callCurrent(Unknown Source)
> > > > at
> > > > org.telluriumsource.dsl.BaseDslContext.click(BaseDslContext.groovy:
> > > > 166)
> > > > at
> > org.telluriumsource.dsl.BaseDslContext$click.callCurrent(Unknown
> > > > Source)
> > > > at
>
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:
> > > > 44)
> > > > at
>
> > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:
> > > > 143)
> > > > at
>
> > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:
> > > > 151)
> > > > at
>
> > com.basware.sp.web.SPCompanyProfileModule.saveComp(SPCompanyProfileModule.groovy:
> > > > 96)
> > > > at
>
> > com.basware.sp.web.SPCompanyProfileTest.saveComp(SPCompanyProfileTest.java:
> > > > 33)
> > > > 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.junit.runners.model.FrameworkMethod
> > > > $1.runReflectiveCall(FrameworkMethod.java:44)
> > > > at
>
> > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
> > > > 15)
> > > > at
>
> > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:
> > > > 41)
> > > > at
>
> > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:
> > > > 20)
> > > > at
>
> > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
> > > > 28)
> > > > at
>
> > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:
> > > > 31)
> > > > at
>
> > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
> > > > 73)
> > > > at
>
> > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
> > > > 46)
> > > > at
> > org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
> > > > at
> > org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
> > > > at
> > org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
> > > > at
>
> > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
> > > > 28)
> > > > at
>
> > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:
> > > > 31)
> > > > at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
> > > > at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
> > > > at
>
> > com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:
> > > > 94)
> > > > at
>
> > com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:
> > > > 196)
> > > > at
> > > > com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:
> > > > 65)
> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > at
>
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > > > 39)
> > > > at
> > com.intellij.rt.execution.application.AppMain.main(AppMain.java:
> > > > 115)
>
> > > > can anyone help me out for this error.
>
> > > > Regards
> > > > Shivani
>
> > > > --
> > > > 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.
>
> > --
> > 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.
--
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.