[wtr-general] Re: FireWatir and FileDownload
Right now if you are using FireWatir on Windows you can use AutoIT to interact with the windows dialog. Its trial error I don't have much idea about how to go about it (AutoIT). Thanks, Angrez On Wed, Oct 7, 2009 at 6:38 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hi All How can i do File Download operation using FireWatir, the solution with watir doesn't work.Any help on this please. Thanks Pallavi. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Close All browsers and Firewatir
Hi Is it possible to close all firefox instances open with FireWatir?? Please let me know Thanks Pallavi. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: How to veify text using FireWatir
Nope This doesnot work.. although browser.html?include text this one works in FireWatir. On Wed, Sep 9, 2009 at 7:37 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Sep 9, 2009 at 4:03 PM, Pallavi Sharma write2pall...@gmail.com wrote: .text?include is not working with Firewatir This does not work? browser.text.include? text Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()
Hi Bill, The select element is not present as per the error message. So after troubleshooting what i understood is when i clicked on login button, the next page is opening up in a new window rather than opening in the same window, so my script is not verifying the elements in the newly opened window which has the SELECT element. To go to that page I too have to handle that in my watir script that if i click on LOGIN button the my watir script should go to the next of the login functionality which has select element. i have written the script like this to go to the 'next to login' page which is opening in a new window with url contains .(here i have not mentioned the sessionid after /Managejurisdictions.do/sessionid_.) ie.goto(http://mysite/EJusticeWeb_trunk/ManageJurisdictions.do;) but it fails becos the 'next to login' page has url with some dynamic sessionid included so that page is breakingi don't know how to redirect to that 'next to login' page by wrinting watir script. Please help me. thanks, venky On Thu, Oct 8, 2009 at 2:54 PM, Bill Agee billa...@gmail.com wrote: Is the error still happening when locating the select list? It seems to work for me with the HTML you pasted - maybe something else is amiss. ie.select_list(:name , jurisdiction).select(Development) What happens when you run this? ie.select_list(:name , jurisdiction).exists? On Wed, Oct 7, 2009 at 10:42 PM, venkat greet.ven...@gmail.com wrote: I can't figure it out, could you please help me. Following is the html for Select list item. select id=jurisdiction name=jurisdiction tabindex= option value=345 Calhoun County, MI /option option value=346 selected=true Development /option option value=344 Midland County Test, MI /option option value=351 Montgomery County, TX /option /select and this is the html for SELECT BUTTON tr td valign=top align=leftinput name=btn1 type=button class=Button75 onclick=gotoAction(); onmouseover=this.className='Button75 Button75_over' onmouseout=this.className='Button75' value=Select //td /tr THANKS On Tue, Oct 6, 2009 at 10:39 PM, Bill Agee billa...@gmail.com wrote: The exception from Watir indicates the problem is this line: ie.select_list( :name , jurisdiction).select(Development) As the error says, there's no select list found with the name jurisdiction. The HTML for that element should show the way to fix the problem - if you can't figure it out just post the HTML for that one element. Thanks Bill On Tue, Oct 6, 2009 at 2:53 AM, venkat greet.ven...@gmail.com wrote: Hi, Thanks for responding back, actually my application is running fine. Exactly Error shown is the following: ruby y.rb C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/element.rb:56:in `assert_exists': Unable to locate element, using :name, jurisdiction (Watir::Exception::UnknownObjectException) from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:62:in `select_item_in_select_list' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:46:in `select' from y.rb:23 Exit code: 1 My watir script y.rb is the following: require 'rubygems' require watir require 'test/unit' require 'win32ole' require 'watir/contrib/ie-new-process' test_site = http://xyz/home.do; ie = Watir::IE.new_process ie.set_fast_speed ie.goto test_site ie.text_field(:name, 'userName').set('darin') ie.text_field(:name, 'password').set('Tester123') ie.button(:value, 'Log in').click sleep (20) ie.goto('http://xyz/ManageJurisdictions.do') sleep (20) ie.select_list( :name , jurisdiction).select(Development) sleep (20) ie.button(:value, 'btn1').click sleep (20) ie.link(:text,LogOut).click ie.close() I want to perform 3 actions in the page. Select item from the drop down list box -- development Click on SELECT button Click on Logout (FYI: Logout has the following properties: Name - Value Href - xyz. OnClick - logOutFunction() OnClick - gotoActionUrl('Login.do?dispatchto=logout') Please help me thanks, venky On Mon, Oct 5, 2009 at 6:04 PM, Anna Gabutero a...@lavabit.com wrote: On Mon, Oct 05, 2009 at 05:46:10PM +0530, venkat wrote: Hi, I got the following error and my script fails to identify the list item, can't click the Select button and Logout too fails. Can anyone please help me. HTTP Status 500 - This is a problem with the application you're testing, not a problem with Watir. Read this for more information:
[wtr-general] Re: To fetch the style.DISPLAY property of an object
In continuation to the previous mail vals is the array that I receive as properties. For eg:- if property is class vals[0] = class and if property is style.Display, vals [0]=style and vals[1]=DISPLAY etc. On Oct 8, 3:07 pm, Isabel joybe...@gmail.com wrote: Hi all, I could successfully fetch the style.DISPLAY property of an object in Watir using:- .attribute_value(vals[0]) But when I use the same piece of code with Firefox, it returns me an error:- undefined method `vals' for :String where am I going wrong??? Thanks in advance.. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: To fetch the style.DISPLAY property of an object
Betsy The error is with Attribute_value function. Betsy for Watir, when we do attribute_value(‘STYLE’) it returns an object for which you can use a . and the other attributes likes color, width and the value will come out Where as for FireFox, when you do attribute_value(‘STYLE’) it returns a string, not an object and you cannot use a “.” There, so we need to parse that string and fetch out the value of the attribute we are looking for. Let me know if this helps Thanks Pallavi. On Thu, Oct 8, 2009 at 6:02 PM, Betsy joybe...@gmail.com wrote: In continuation to the previous mail vals is the array that I receive as properties. For eg:- if property is class vals[0] = class and if property is style.Display, vals [0]=style and vals[1]=DISPLAY etc. On Oct 8, 3:07 pm, Isabel joybe...@gmail.com wrote: Hi all, I could successfully fetch the style.DISPLAY property of an object in Watir using:- .attribute_value(vals[0]) But when I use the same piece of code with Firefox, it returns me an error:- undefined method `vals' for :String where am I going wrong??? Thanks in advance.. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: How to ensure Firewatir always opens with the jssh
If you are opening it via Firewatir it will always open with JSSh enabled. Else you can use the following command: [Firefox Installation Directory]\firefox.exe -jssh - Angrez On Thu, Oct 8, 2009 at 12:29 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hi Can anyone here tell me how can i ensure that whenever i open a new instance of Firewatir jssh is enabled?? Thanks Pallavi --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Html Elements Supported by Watir
Thanks so much for all you do Zeljko! I look forward to each Watir podcast and it's reassuring to know that the information on the wiki is being maintained so well! Three cheers for Z*! -Tiffany On Oct 7, 11:18 pm, Bret Pettichord bpettich...@gmail.com wrote: On Oct 7, 5:57 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Oct 6, 2009 at 4:41 AM, Bret Pettichord bpettich...@gmail.com wrote: I suggest that the two pages be folded together. Will do. I think my replies were out of order with your emails. At this point I think that all the important information on the one page is already duplicated on the other. Namely the page with the Class, element, method list. If we don't need to document the class names, then you can just drop the second page. I'm also wondering if we need to do more work to organize and update the pages that we already have. I update what I see is out of date. Again, my original comment was made before I realized how much work you've been doing recently to reorganize these pages. I had not been reading this list for some time, and responded in the order that I read through it. Also I'm not sure about all the comments that people add to the pages. Is anybody watching them? When I update the page, I take a look at the comments. Sometimes comment is about something that should be fixed. But usually the comments just sit there. Sometimes I do not even understand them, or they seem not related to the page. I think we should treat comments just like the other information on the page. If they seem irrelevant or confusing, they should be deleted. If they make suggestions which have been addressed, they should be deleted. I do this sometimes myself. BTW, I have a comment for others. I really think that Zeljko should be thanked for all the work he does to keep the wiki up to date. Could you please join me in thanking him? Bret --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()
Ah, so after you browse to the main test page, a new window is opened that contains the content you need to access? In that case you are entering the world of popups and attaching. :) See more info here: http://wiki.openqa.org/display/WTR/Pop+Ups In short, you can use Watir::Browser.attach (or Watir::IE.attach if you are only using IE) to attach to the new window and interact with it. Thanks Bill On Thu, Oct 8, 2009 at 4:26 AM, venkat greet.ven...@gmail.com wrote: Hi Bill, The select element is not present as per the error message. So after troubleshooting what i understood is when i clicked on login button, the next page is opening up in a new window rather than opening in the same window, so my script is not verifying the elements in the newly opened window which has the SELECT element. To go to that page I too have to handle that in my watir script that if i click on LOGIN button the my watir script should go to the next of the login functionality which has select element. i have written the script like this to go to the 'next to login' page which is opening in a new window with url contains .(here i have not mentioned the sessionid after /Managejurisdictions.do/sessionid_.) ie.goto(http://mysite/EJusticeWeb_trunk/ManageJurisdictions.do;) but it fails becos the 'next to login' page has url with some dynamic sessionid included so that page is breakingi don't know how to redirect to that 'next to login' page by wrinting watir script. Please help me. thanks, venky On Thu, Oct 8, 2009 at 2:54 PM, Bill Agee billa...@gmail.com wrote: Is the error still happening when locating the select list? It seems to work for me with the HTML you pasted - maybe something else is amiss. ie.select_list(:name , jurisdiction).select(Development) What happens when you run this? ie.select_list(:name , jurisdiction).exists? On Wed, Oct 7, 2009 at 10:42 PM, venkat greet.ven...@gmail.com wrote: I can't figure it out, could you please help me. Following is the html for Select list item. select id=jurisdiction name=jurisdiction tabindex= option value=345 Calhoun County, MI /option option value=346 selected=true Development /option option value=344 Midland County Test, MI /option option value=351 Montgomery County, TX /option /select and this is the html for SELECT BUTTON tr td valign=top align=leftinput name=btn1 type=button class=Button75 onclick=gotoAction(); onmouseover=this.className='Button75 Button75_over' onmouseout=this.className='Button75' value=Select //td /tr THANKS On Tue, Oct 6, 2009 at 10:39 PM, Bill Agee billa...@gmail.comwrote: The exception from Watir indicates the problem is this line: ie.select_list( :name , jurisdiction).select(Development) As the error says, there's no select list found with the name jurisdiction. The HTML for that element should show the way to fix the problem - if you can't figure it out just post the HTML for that one element. Thanks Bill On Tue, Oct 6, 2009 at 2:53 AM, venkat greet.ven...@gmail.com wrote: Hi, Thanks for responding back, actually my application is running fine. Exactly Error shown is the following: ruby y.rb C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/element.rb:56:in `assert_exists': Unable to locate element, using :name, jurisdiction (Watir::Exception::UnknownObjectException) from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:62:in `select_item_in_select_list' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:46:in `select' from y.rb:23 Exit code: 1 My watir script y.rb is the following: require 'rubygems' require watir require 'test/unit' require 'win32ole' require 'watir/contrib/ie-new-process' test_site = http://xyz/home.do; ie = Watir::IE.new_process ie.set_fast_speed ie.goto test_site ie.text_field(:name, 'userName').set('darin') ie.text_field(:name, 'password').set('Tester123') ie.button(:value, 'Log in').click sleep (20) ie.goto('http://xyz/ManageJurisdictions.do') sleep (20) ie.select_list( :name , jurisdiction).select(Development) sleep (20) ie.button(:value, 'btn1').click sleep (20) ie.link(:text,LogOut).click ie.close() I want to perform 3 actions in the page. Select item from the drop down list box -- development Click on SELECT button Click on Logout (FYI: Logout has the following properties: Name - Value Href - xyz. OnClick - logOutFunction() OnClick - gotoActionUrl('Login.do?dispatchto=logout') Please help me
[wtr-general] Re: Html Elements Supported by Watir
+1, Zeljko has been a long standing active member of the Watir community, taking care of the wiki, making podcasts and answering countless emails. Big thanks to him for all that he's done. :) -c On Thu, Oct 8, 2009 at 10:10 AM, tcfodor tcfo...@comcast.net wrote: Thanks so much for all you do Zeljko! I look forward to each Watir podcast and it's reassuring to know that the information on the wiki is being maintained so well! Three cheers for Z*! -Tiffany On Oct 7, 11:18 pm, Bret Pettichord bpettich...@gmail.com wrote: On Oct 7, 5:57 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Oct 6, 2009 at 4:41 AM, Bret Pettichord bpettich...@gmail.com wrote: I suggest that the two pages be folded together. Will do. I think my replies were out of order with your emails. At this point I think that all the important information on the one page is already duplicated on the other. Namely the page with the Class, element, method list. If we don't need to document the class names, then you can just drop the second page. I'm also wondering if we need to do more work to organize and update the pages that we already have. I update what I see is out of date. Again, my original comment was made before I realized how much work you've been doing recently to reorganize these pages. I had not been reading this list for some time, and responded in the order that I read through it. Also I'm not sure about all the comments that people add to the pages. Is anybody watching them? When I update the page, I take a look at the comments. Sometimes comment is about something that should be fixed. But usually the comments just sit there. Sometimes I do not even understand them, or they seem not related to the page. I think we should treat comments just like the other information on the page. If they seem irrelevant or confusing, they should be deleted. If they make suggestions which have been addressed, they should be deleted. I do this sometimes myself. BTW, I have a comment for others. I really think that Zeljko should be thanked for all the work he does to keep the wiki up to date. Could you please join me in thanking him? Bret --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: watir:buttons returns only 1st button
Weird. Looks like it's returning the text (i.e. 1st button) instead of the value (first button). I'm not sure why you are getting unexpected results, but here are a couple of things that might help: * button tag isn't the same as input type=button tag * your code below should work if all the buttons are input type=button, like this: input type=button id=1 value=1 button input type=button id=2 value=2 button input type=button id=3 value=3 button Hope that helps. orde On Oct 7, 6:11 am, kat katfor...@gmail.com wrote: Watir:Buttons is supposed to return all buttons on a page. With the next tested page html titlesome title/title body br button id=1 value=first button1st button/button some text button id=2 value=second button2nd button/button input type=button id=6 value=6th button /body /html using this script: require 'watir' test_site = 'http://localhost/test.html' ie = Watir::IE.new ie.goto(test_site) ie.buttons.each do |a_button| puts a_button.value end I get only 1st button in output. Do I do something wrong or this is a bug? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Close All browsers and Firewatir
According to this page, there's no close_all method for firewatir: http://wiki.openqa.org/display/WTR/Firewatir+Compatibility Could be out of date, though... On Oct 7, 11:28 pm, Pallavi Sharma write2pall...@gmail.com wrote: Hi Is it possible to close all firefox instances open with FireWatir?? Please let me know Thanks Pallavi. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Iterating through an unordered list
Hello everyone, Is it possible to iterate each line item (li) text in an unordered list (ul)? Thanks, George --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Iterating through an unordered list
something like this(?): browser.lis.each do |x| puts x.text end Hope that helps. On Oct 8, 2:09 pm, George george.sand...@gmail.com wrote: Hello everyone, Is it possible to iterate each line item (li) text in an unordered list (ul)? Thanks, George --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Iterating through an unordered list
Hey there, Yep, that did it! I didn't see the method 'lis' listed when I did this: @browser.div(:id, ctl00_cphMain_validationSummary).ul(:class, VAMValSummaryErrors).methods.sort Oh well, glad it was available for me to use. Thanks a lot! On Oct 8, 2:59 pm, orde ohil...@gmail.com wrote: something like this(?): browser.lis.each do |x| puts x.text end Hope that helps. On Oct 8, 2:09 pm, George george.sand...@gmail.com wrote: Hello everyone, Is it possible to iterate each line item (li) text in an unordered list (ul)? Thanks, George --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Capturing Java Script Errors
Hi I was hoping someone could point me in the right direction to get some help capturing java script errors. We have a rather large number of tests that are executed during our regression run, and there can be a significant amount of page reloads etc that sometimes cause java script errors. In the past we have simply turned java scripts off from popping up so our tests continue without stopping, and relied on manual testing to pick the errors up. Any help would be appreciated --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Does anyone have examples of using rspec with safariwatir
Where can we get the video? On Oct 8, 1:08 pm, Bret Pettichord bpettich...@gmail.com wrote: Dave Hoover made a video of usingsafariwatirwith cucumber. On Oct 7, 3:36 pm, QAguy qablogm...@gmail.com wrote: Or can point out a wiki that would have information on it. My searches via google have not bared much fruit. Thanks in advance. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Cannot use the index in SafariWatir
That's great. It works fine. Thanks Željko. On Oct 4, 9:23 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Sat, Oct 3, 2009 at 4:37 AM, yuping zhong littlezhong...@gmail.com wrote: Doesn't work. My mistake. 1 should not be quoted. Try this: sf.button(:value=Enter,:index=1).click sf.button(:index=1).click - Željko --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()
Hi Bill and all, Many many thanks, i have tried meanwhile I recieve this reply, it works fine now. Thanks very much for sparing your time. venky On Thu, Oct 8, 2009 at 10:21 PM, Bill Agee billa...@gmail.com wrote: Ah, so after you browse to the main test page, a new window is opened that contains the content you need to access? In that case you are entering the world of popups and attaching. :) See more info here: http://wiki.openqa.org/display/WTR/Pop+Ups In short, you can use Watir::Browser.attach (or Watir::IE.attach if you are only using IE) to attach to the new window and interact with it. Thanks Bill On Thu, Oct 8, 2009 at 4:26 AM, venkat greet.ven...@gmail.com wrote: Hi Bill, The select element is not present as per the error message. So after troubleshooting what i understood is when i clicked on login button, the next page is opening up in a new window rather than opening in the same window, so my script is not verifying the elements in the newly opened window which has the SELECT element. To go to that page I too have to handle that in my watir script that if i click on LOGIN button the my watir script should go to the next of the login functionality which has select element. i have written the script like this to go to the 'next to login' page which is opening in a new window with url contains .(here i have not mentioned the sessionid after /Managejurisdictions.do/sessionid_.) ie.goto(http://mysite/EJusticeWeb_trunk/ManageJurisdictions.do;) but it fails becos the 'next to login' page has url with some dynamic sessionid included so that page is breakingi don't know how to redirect to that 'next to login' page by wrinting watir script. Please help me. thanks, venky On Thu, Oct 8, 2009 at 2:54 PM, Bill Agee billa...@gmail.com wrote: Is the error still happening when locating the select list? It seems to work for me with the HTML you pasted - maybe something else is amiss. ie.select_list(:name , jurisdiction).select(Development) What happens when you run this? ie.select_list(:name , jurisdiction).exists? On Wed, Oct 7, 2009 at 10:42 PM, venkat greet.ven...@gmail.com wrote: I can't figure it out, could you please help me. Following is the html for Select list item. select id=jurisdiction name=jurisdiction tabindex= option value=345 Calhoun County, MI /option option value=346 selected=true Development /option option value=344 Midland County Test, MI /option option value=351 Montgomery County, TX /option /select and this is the html for SELECT BUTTON tr td valign=top align=leftinput name=btn1 type=button class=Button75 onclick=gotoAction(); onmouseover=this.className='Button75 Button75_over' onmouseout=this.className='Button75' value=Select //td /tr THANKS On Tue, Oct 6, 2009 at 10:39 PM, Bill Agee billa...@gmail.comwrote: The exception from Watir indicates the problem is this line: ie.select_list( :name , jurisdiction).select(Development) As the error says, there's no select list found with the name jurisdiction. The HTML for that element should show the way to fix the problem - if you can't figure it out just post the HTML for that one element. Thanks Bill On Tue, Oct 6, 2009 at 2:53 AM, venkat greet.ven...@gmail.com wrote: Hi, Thanks for responding back, actually my application is running fine. Exactly Error shown is the following: ruby y.rb C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/element.rb:56:in `assert_exists': Unable to locate element, using :name, jurisdiction (Watir::Exception::UnknownObjectException) from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:62:in `select_item_in_select_list' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:46:in `select' from y.rb:23 Exit code: 1 My watir script y.rb is the following: require 'rubygems' require watir require 'test/unit' require 'win32ole' require 'watir/contrib/ie-new-process' test_site = http://xyz/home.do; ie = Watir::IE.new_process ie.set_fast_speed ie.goto test_site ie.text_field(:name, 'userName').set('darin') ie.text_field(:name, 'password').set('Tester123') ie.button(:value, 'Log in').click sleep (20) ie.goto('http://xyz/ManageJurisdictions.do') sleep (20) ie.select_list( :name , jurisdiction).select(Development) sleep (20) ie.button(:value, 'btn1').click sleep (20) ie.link(:text,LogOut).click ie.close() I want to perform 3 actions in the page. Select item from the drop down list box -- development
[wtr-general] The 'enabled' doesn't work in SafariWatir
Hi, It is known to all that 'enabled' is work very well in Windows. Such as, @browser.button(:value,Save).enabled? When use this in SafariWatir,I get the following: irb(main):008:0 sf.button(:value,Save).enabled? NoMethodError: undefined method `enabled?' for #Watir::Container::Button:0x1309bd8 from (irb):8 from :0 Any idea about this? BTW,I try to define 'enabled' as in Windows. But it doesn't work either. Any help will be very appreciated. -Zhong --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Need to print results of Mulitple scripts in one HTML file
Hi All, In batch file I have included 2 scripts to be executed. After a successful execution of this batch I want to print the results in one HTML file. As of now I am able to print the one HTML file for one script. But I want a single HTML file to be printed for multiple scripts which I have inculded on batch file. Please guide me. Right now I am using the code which is available in wiki.. Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Difference b/w Click_no_wait and .Click!
Hi Can anyone here tell me what are the differences between Click! and click_no_wait for both watir and firewatir I have a scenario in which click_no_wait is failing but .click! is working? What could be the reason? Can i use safely .click! instead of click_no_wait even for pop ups?? Thanks Pallavi. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Need to print results of Mulitple scripts in one HTML file
Shouldn't be a problem. Open the same html file in both the scripts for logging the results. It will log the results one after another in the same html file. -Prajakta On Fri, Oct 9, 2009 at 10:31 AM, Bindhu udayarekha2...@gmail.com wrote: Hi All, In batch file I have included 2 scripts to be executed. After a successful execution of this batch I want to print the results in one HTML file. As of now I am able to print the one HTML file for one script. But I want a single HTML file to be printed for multiple scripts which I have inculded on batch file. Please guide me. Right now I am using the code which is available in wiki.. Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Html Elements Supported by Watir
Zeljko its just awesome the amount of hard work you put into this group. Thanks Zeljko for every help and suggestion ... Regards, Pallavi. On Thu, Oct 8, 2009 at 10:33 PM, Charley Baker charley.ba...@gmail.comwrote: +1, Zeljko has been a long standing active member of the Watir community, taking care of the wiki, making podcasts and answering countless emails. Big thanks to him for all that he's done. :) -c On Thu, Oct 8, 2009 at 10:10 AM, tcfodor tcfo...@comcast.net wrote: Thanks so much for all you do Zeljko! I look forward to each Watir podcast and it's reassuring to know that the information on the wiki is being maintained so well! Three cheers for Z*! -Tiffany On Oct 7, 11:18 pm, Bret Pettichord bpettich...@gmail.com wrote: On Oct 7, 5:57 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Oct 6, 2009 at 4:41 AM, Bret Pettichord bpettich...@gmail.com wrote: I suggest that the two pages be folded together. Will do. I think my replies were out of order with your emails. At this point I think that all the important information on the one page is already duplicated on the other. Namely the page with the Class, element, method list. If we don't need to document the class names, then you can just drop the second page. I'm also wondering if we need to do more work to organize and update the pages that we already have. I update what I see is out of date. Again, my original comment was made before I realized how much work you've been doing recently to reorganize these pages. I had not been reading this list for some time, and responded in the order that I read through it. Also I'm not sure about all the comments that people add to the pages. Is anybody watching them? When I update the page, I take a look at the comments. Sometimes comment is about something that should be fixed. But usually the comments just sit there. Sometimes I do not even understand them, or they seem not related to the page. I think we should treat comments just like the other information on the page. If they seem irrelevant or confusing, they should be deleted. If they make suggestions which have been addressed, they should be deleted. I do this sometimes myself. BTW, I have a comment for others. I really think that Zeljko should be thanked for all the work he does to keep the wiki up to date. Could you please join me in thanking him? Bret --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Need to print results of Mulitple scripts in one HTML file
Hi, Another alternative would be to call the HTML report class from the rake itself rather than individual scripts. (just an alternate suggestion :-)) Thanks, Rohan Ojha Blue Star Infotech l*+91 900 4955058l * +91 22 6688 6969 l 6 +91 22 6688 6999 l * mailto:rohan.o...@bsil.com rohan.o...@bsil.com http://www.bsil.com/ www.bsil.com - Where Partnerships Are Built on Trust _ From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Prajakta Jadhav Sent: Friday, October 09, 2009 10:50 AM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Need to print results of Mulitple scripts in one HTML file Shouldn't be a problem. Open the same html file in both the scripts for logging the results. It will log the results one after another in the same html file. -Prajakta On Fri, Oct 9, 2009 at 10:31 AM, Bindhu udayarekha2...@gmail.com wrote: Hi All, In batch file I have included 2 scripts to be executed. After a successful execution of this batch I want to print the results in one HTML file. As of now I am able to print the one HTML file for one script. But I want a single HTML file to be printed for multiple scripts which I have inculded on batch file. Please guide me. Right now I am using the code which is available in wiki.. Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---