I think your attaching the javascript popup is it? Thanks, kiran
On May 15, 12:36 pm, lnl <lianglina_2...@sohu.com> wrote: > require 'watir' > require 'win32ole' > require 'test/unit' > require 'test/unit/ui/console/testrunner' > test_site = 'http://192.168.0.26:7001/ghg' > ie = Watir::IE.new > #$ie = IE.new > #ie2 = nil > puts "Step 1: go to the test site: " + test_site > ie.goto(test_site) > puts " Action: entered " + test_site + " in the address bar." > > puts "Step 2: enter '123' in the text field" > > ie.text_field(:name, "username").set("123") > ie.text_field(:name, "password").set("1") > ie.button(:name, "aa").click > if ie.contains_text("Welcome ") > puts "Test Passed. Found the test string: 'Welcome '. Actual > Results match Expected Results." > else > puts "Test Failed! Could not find: 'Welcome" > end > #ie2.link(:href,"http://192.168.0.26:7001/ghg/justif/ > formlist.jsp").click > > ie.button(:id, "add").click > ie.button(:id, "prjSave").click > ie2 = Watir::IE.attach(:title, "Windows Internet Explorer") > ie2.button(:id, "ok").click --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---