find() not working after clicking link
Hi, I've been testing our asp.net application that's very dynamic. I'm using Find() in order to find the objects that I need. I do not store any TestObjects. So far I've had no problems finding the objects I need except for now.
What happens is, once I click on the Search Button on our website, the URL now changes and once that happens, the
find() function no longer works.
RootTestObject root = getRootTestObject();
TestObject to = root.find(atDescendant(".id", "objID"));
I've tried everything and nothing seems to work. I've put sleep() statements I've also used my WaitFor browswer function, no matter what I do, it never finds anything.
Anyone else have this problem?
Thanks in advance.
Re: find() not working after clicking link
If you are testing a web application, why not use the browser test object instead? this way you'd have more control and searching through the page would be more efficient.