So what makes the code execute now when a user interacts with the site? I think you'd be better off considering that and trying to emulate that action than trying to modify the page.
Otherwise, if you start modifying the page, you are simulating something that can't ever happen outside of someone downloading the page code, modifying it, and reloading it into the browser. a potentially valid case for security testing, but not something a normal user would ever do. On Jul 9, 8:16 am, Super Kevy <[email protected]> wrote: > Hey gang, > > I've found the stuff on excuting javascript via watir and the > executeScript method but the vars needed to trigger the function I > want has some funky dynamic data comming into it. The function used > to be available as an onlick of button that was removed. > > It there a way to add a "button" or "link" into that pages dom so i > can just refresh and click the "new" link to get script to execute? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
