Hi Pallavi,
Following is the snippet for pop-up which is working fine for me:
$ie.goto($test_site)
$ie.text_field(:id, "login_email").set("[email protected]")
$ie.button(:id, 'submit_btn').click_no_wait
sleep 10
txt1 = $ie.clickprompt()
#this clicks the ok button and returns
puts txt1
$worksheet.Range("D10").Value= txt1
expectedtext1=$worksheet.Range("C10").Value
if txt1.eql?(expectedtext1) then
$worksheet.Range("E10").Value="true"
$workbook.save
else
$worksheet.Range("E10").Value="false"
$workbook.save
end
Cheers
D G
On Mon, Aug 10, 2009 at 12:05 AM, Dylan <[email protected]> wrote:
>
> which version of 1.86? :) I know its confusing, but 1.86 - 27 does not
> work with click_no_wait, while 1.86 - 26 does. You can download it
> here: http://rubyforge.org/frs/download.php/29263/ruby186-26.exe
>
> -Dylan
>
> On Aug 9, 10:20 am, Pallavi Sharma <[email protected]> wrote:
> > I am using ruby 1.86 and watir 1.6.2
> >
> > Can you please send me your script, somehow it keeps failing for me and i
> am
> > not able to see the pop up.
> >
> > I would really appreciate a quick reply.
> >
> > Thanks for the quick reply..
> >
> > On Sun, Aug 9, 2009 at 5:11 PM, Smruti Ranjan Kar <
> >
> > [email protected]> wrote:
> > > Hi Pallavi,
> >
> > > That click_no_wait worked fine for me.
> > > Just check your Ruby version. (click_no_wait does not work with
> > > ruby186-27_rc2: known defect)
> >
> > > I am using Ruby186-26_Watir1.6.2
> >
> > > On Sun, Aug 9, 2009 at 1:28 PM, Pallavi Sharma <
> [email protected]>wrote:
> >
> > >> Hi
> >
> > >> Need some urgent help:
> >
> > >> Go to link:
> > >>https://www.kaplanprofessional.edu.au/smartforms/courseonline.asp
> >
> > >> 1. Click on New Student
> > >> 2. Fill in Mandatory details
> > >> 3. Click Next
> > >> 4. Chose Financial Planning
> > >> 5. Click Next
> > >> 6. Chose first option in both select lists
> > >> 7. Select radio button "Distance Eductaion"
> > >> 8. Click on Add Subject
> > >> 9. Click Next and a popup will appear.
> >
> > >> Now, when i use "click_no_wait" with the "NEXT" button it doesn't
> shows
> > >> the Pop UP
> >
> > >> When i use Click with the "NEXT" button it holds coz now the pop up
> > >> appears.
> >
> > >> Can anyone here please tell me how to proceed with the scenario.
> >
> > >> Thanks
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---