When I use @CacheLookup, I get Element is obsolete message.
This happens when I do the following:
clickLinkA -> takes user to pageA
clickLinkB -> takes user to pageB
clickLinkA -> Element is Obsolete error occurs.
What can I do to take advantage of @CacheLookup in situation like
this? It seems i have to find element again. I am wondering if another
way other than having to include the FindBy in the page object method
since currently it is defined in @FindBy annotation.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
LinkA and LinkB are links on side panel. When you click on LinkA it
opens Page A on center panel. When you click on LinkB it opens Page B
on center panel. The side panel links are always there. Page A and
Page B
are opened on same page.
Test works without @CacheLookup. Will @CacheLookup break my test if I
have to move page to page?
There might be workflows where I am in same page and need to access
webelements in that page repeatedly. In those cases, I d like to take
advantage of @CacheLookup.
On Feb 19, 4:30 am, "Eran M." <eran....@gmail.com> wrote:
> Hi,
>
> From your work-flow description, it is unclear how you perform the 3rd step
> - has page B been opened in a new window?
> "Element is obsolete" indicates that page A has been re-loaded or somehow
> modified.
> Does your test work reliably without the @CacheLookup annotation? What was
> the motivation behind adding the @CacheLookup annotation in the first place?
>
> Eran
>
> On 18 February 2010 22:32, sqa tester <thesqates...@gmail.com> wrote:
>
> > I have implemented use of PageFactory and AjaxElementLocatorFactory.
>
> > When I use @CacheLookup, I get Element is obsolete message.
>
> > This happens when I do the following:
>
> > clickLinkA -> takes user to pageA
> > clickLinkB -> takes user to pageB
> > clickLinkA -> Element is Obsolete error occurs.
>
> > What can I do to take advantage of @CacheLookup in situation like
> > this? It seems i have to find element again. I am wondering if another
> > way other than having to include the FindBy in the page object method
> > since currently it is defined in @FindBy annotation.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "webdriver" group.
> > To post to this group, send email to webd...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > webdriver+...@googlegroups.com<webdriver%2Bunsu...@googlegroups.com>
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.