http://watirwebdriver.com/browser-popups/
On Tue, Feb 25, 2014 at 2:11 PM, Joann Song <[email protected]> wrote: > I am running scenarios which requires filling in fields on a popup form > but it is not being displayed/opening up > during this step: > > When(/^I click the Add button$/)do > @browser.link(:id => "add-button").when_present.click > end > > The HTML code for the button is the following: > <div id="add-button-container"> > <a href="javascript:void(0);" id="add-button" > ng-click="showOverlay('new')" class="blue-button">+ Add</a> > </div> > > > For filling out fields I continue with: > @browser.text_field(:id, "etc")set "something" > > > Do I need to attach to the new window? If so, how? > It seems that the clicking step is not working. > > -- > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > [email protected] > http://groups.google.com/group/watir-general > [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
