I have been struggling with a section of my script for some time now where I generate what appears to be a pop up with 2 options for moving on. Having unsuccessfully tried many different pop up handling methods I am now a little stuck. Looking at the html the 'pop up' is referred to as a vidPane. Does this ring any bells with any one?
#--Code to generate the pop up--# require 'watir' require 'watir/ie' Watir::Browser.default = 'ie' $browser = Watir::Browser.new $homepage = "https://www.figleaves.com/uk/home.asp" $browser.goto $homepage puts " Step 1: enter 'FE-5126' in the search text field" $browser.text_field(:name, "query").set "FE-5126" puts " Step 2: click the 'Go' button" $browser.button(:name, "go").click puts " Step 3: select '36D' from size drop down" $browser.select_list(:name, "selSizes").set("36D") puts " Step 4: select '1' from " $browser.select_list(:name, "selQty0").set("1") $browser.button(:class, "button_buynow").click #--end of code--# html of 'pop up'; <div id="vidPane" style="position: absolute; z-index: 2000; top: 280px; left: 240px; width: 398px; height: 134px; background-color: rgb (123, 117, 121);"> <div style="position: absolute; z-index: 2000; left: 377px; top: 6px;"> <input type="image" onclick="cShop()" src="http://images.figleaves.com/ uk/images/eng-gbr/navigation/basket_confirmation/15497_close.gif"/> </div> <div style="position: absolute; z-index: 2000; left: 30px; top: 14px;"> <img height="35" width="337" src="http://images.figleaves.com/uk/ images/eng-gbr/navigation/basket_confirmation/15497_title.gif" alt=""/ > </div> <div style="position: absolute; z-index: 2000; left: 114px; top: 62px;"> <input type="image" src="http://images.figleaves.com/uk/images/eng-gbr/ navigation/basket_confirmation/15497_button2.gif" onclick="cShop()"/> </div> <a style="text-decoration: none;" onclick="cCart()" href="#"> <div style="position: absolute; z-index: 2000; left: 123px; top: 111px; color: rgb(242, 242, 227); font-family: Verdana; font-size: 10px; font-weight: bold;"> OR VIEW YOUR BASKET <img height="10" width="10" src="http://images.figleaves.com/uk/images/ eng-gbr/navigation/basket_confirmation/15497_arrow.gif" style="position: absolute; top: 1px;" alt=""/> </div> </a> </div> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---