Hi I tried using the selectMainWindow() command but that did not seem to refresh the DOM
Thanks Regards Hari On Tue, Sep 22, 2009 at 3:55 PM, dominicm <[email protected]>wrote: > > I've had similar problems with iframes that add new elements. What > worked for me was to re-select the frame. > > On Sep 20, 5:03 am, Harihara Vinayakaram <[email protected]> wrote: > > Hi Jian > > Refresh -- reffreshes the page. This is in turn calls document.onLoad > etc > > and so the bheavior changes. > > > > I was looking at things like wiatForElementPresent etc . But these do > not > > seem to work for the document.write > > > > Let me probe further > > > > On Sat, Sep 19, 2009 at 11:54 PM, Jian Fang <[email protected] > >wrote: > > > > > > > > > Seems document.write is used to overwrite the original content of a > page, > > > > >http://javascript.about.com/library/blwrite.htm > > > > > Yes, Selenium does provide a refresh method, which is included in > > > DslContext. > > > > > refresh: Simulates the user clicking the "Refresh" button on their > > > browser. > > > > > On Sat, Sep 19, 2009 at 7:08 AM, Harihara Vinayakaram < > [email protected]>wrote: > > > > >> Hi > > >> I have a page which on pressing the button does some document.write > . > > >> I have a test case that clicks the button and then checks for the > element > > >> being present . > > > > >> This currently fails since the DOM does not contain the elements. > Is > > >> there a refresh or something like that which updates / fetches the DOM > again > > >> ? > > > > >> Regards > > >> Hari- Hide quoted text - > > > > - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
