[wtr-general] Re: Delete cookies in Firewatir
:) correct thats the approach. Was discussing with Bret the syntax, method names so that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.comwrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was think of using the Mozilla Classes https://developer.mozilla.org/en/Code_snippets/Cookies Thanks Aidy --~--~-~--~~~---~--~~ 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: Delete cookies in Firewatir
Are you going to take this up then, otherwise I can do it, if you provide your preferred method names. Not sure how we are going to do it in Watir though. Aidy 2009/11/17 Angrez Singh ang...@gmail.com: :) correct thats the approach. Was discussing with Bret the syntax, method names so that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.com wrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was think of using the Mozilla Classes https://developer.mozilla.org/en/Code_snippets/Cookies Thanks Aidy --~--~-~--~~~---~--~~ 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: Delete cookies in Firewatir
thats what I am waiting for method names. Let me discuss with Bret and will let you know you can go ahead and put these methods there. - Angrez On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis aidy.le...@googlemail.comwrote: Are you going to take this up then, otherwise I can do it, if you provide your preferred method names. Not sure how we are going to do it in Watir though. Aidy 2009/11/17 Angrez Singh ang...@gmail.com: :) correct thats the approach. Was discussing with Bret the syntax, method names so that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.com wrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was think of using the Mozilla Classes https://developer.mozilla.org/en/Code_snippets/Cookies Thanks Aidy --~--~-~--~~~---~--~~ 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: Delete cookies in Firewatir
have you seen this by Matt http://sticklebackplastic.com/post/2009/10/20/Advanced-FireWatir-e28093-cheat-sheet.aspx#comment ? Aidy 2009/11/17 Angrez Singh ang...@gmail.com: thats what I am waiting for method names. Let me discuss with Bret and will let you know you can go ahead and put these methods there. - Angrez On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis aidy.le...@googlemail.com wrote: Are you going to take this up then, otherwise I can do it, if you provide your preferred method names. Not sure how we are going to do it in Watir though. Aidy 2009/11/17 Angrez Singh ang...@gmail.com: :) correct thats the approach. Was discussing with Bret the syntax, method names so that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.com wrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was think of using the Mozilla Classes https://developer.mozilla.org/en/Code_snippets/Cookies Thanks Aidy --~--~-~--~~~---~--~~ 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: firewatir- I cannot close the second popup.
Angrez, Please let me know if you have any new results. On Nov 16, 10:00 am, Shlomit Gazit shlomitpatr...@gmail.com wrote: Pallavi, Angrez hello, Thank you for the replies. I was trying your suggestion: $ff.startClicker(ok) $ff.startClicker(ok) $ff.image(:name, /elete/).click But it still didn't close thepopup. I am able to do it with watir like this: Thread.new{system(rubyw myClicker.rb)} $ie.image(:name, /elete/).click Thread.new { system(rubyw myClicker.rb)} and I have a file: myClicker.rb with the code: $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__ require 'watir/WindowHelper' $helper = WindowHelper.new $helper.push_confirm_button_ok() It is not always clicking the popups so sometimes I have to click on either of the popups manually, and the test is waiting for the click. But basically it is not breaking the test. On Nov 16, 4:06 am, Angrez Singh ang...@gmail.com wrote: It might work, because both of them will be looking for the pop up to close. When you click the delete button pop up will come, not sure which thread will close the pop up. Butsecondone will closesecondpop up if you are using Auto IT. In Firewatir the concept is bit different, I don't use AutoIT to close the pop up to make it cross-platform. So if you are on Windows you can use AutoIt in two different threads and tell them to close the pop ups. - Angrez On Mon, Nov 16, 2009 at 5:24 PM, Pallavi Sharma write2pall...@gmail.comwrote: Can't you start two start clickers at once? Will they both try to access the first pop up and if found close it? So what i am suggesting is this: ff.startClicker(ok) $ff.startClicker(ok) $ff.image(:name, /elete/).click Wont this work Angrez? I had a similar situation for IE, and i used the Auto IT script to handle popupby calling them in separate threads but both invoked at the same time. -- Pallavi. On Mon, Nov 16, 2009 at 3:17 PM, Angrez Singh ang...@gmail.com wrote: It would be bit tricky to handle thesecondpop up. I'll try here at my end and if possible will come up with some solution, but as of now it might not be possible. Thanks, Angrez On Mon, Nov 16, 2009 at 1:14 PM, Shlomit Gazit shlomitpatr...@gmail.comwrote: Anybody?? On Nov 13, 4:43 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote: Hello, I am trying to handlepopupswithfirewatir. My scenario is clicking on delete button, apopupconfirmation will open and I should click ok. After that asecondpopupwill open and I should write the reason and click ok. So far I was able to click on the delete button and thesecondpopup will appear but not closed (the firstpopupis not appearing, but I assume it is by design). How can I close thesecondpopup? Myfirewatircode is: $ff.startClicker(ok) $ff.image(:name, /elete/).click $ff.startClicker(ok) --~--~-~--~~~---~--~~ 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: Issue trying to click on a span element using safariwatir
Hmm... I am not sure why it cannot find the span. Does it seem to only be a problem when finding by text?Can you add an id to that span?Does it work when searching for it by id? Looking for a little more information. AE On Tue, Nov 17, 2009 at 3:57 PM, QAguy qablogm...@gmail.com wrote: I am using the following: browser.span(:text,'butterfly.m4v').click to click on that item in the following code: span class=name a title=butterfly.m4v class=trim_to_height 1_lines href=/videos/ 359dd3be1914b8spanbutterfly.m4v/span/a /span But I get the following result: Unable to locate Span element with text of butterfly.m4v This is being run from a file using rpsec with safariwatir. No sure why this is not working. Hoping someone can help. Thanks QAguy -- Adam Esterline http://adamesterline.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] why do i have this error message by using xpath in watir
Hi all, I'm new here, and I met some problem while I was using Watir gem to automate my testcase. I want to use Watir with xpath, coding like this: require watir @ie = Watir::IE.new @ie.goto(www.g.cn)#google in china @ie.text_field(:xpath,//inp...@name='q']).set 'test' And there comes the following exceptions: D:/ruby/lib/ruby/1.8/rexml/parsers/treeparser.rb:90:in `parse': #REXML::ParseException: Missing end tag for 'u' (got a) (REXML::ParseException) Line: Position: Last 80 unconsumed characters: a class=gb3 style=COLOR: green! important onclick=gbar.qs (this) href=ht D:/ruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull' D:/ruby/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse' D:/ruby/lib/ruby/1.8/rexml/document.rb:190:in `build' D:/ruby/lib/ruby/1.8/rexml/document.rb:45:in `initialize' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 713:in `new' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 713:in `create_rexml_document_object' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 693:in `rexml_document_object' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 897:in `elements_by_xpath' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 890:in `element_by_xpath' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/container.rb: 730:in `locate_input_element' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/input_elements.rb: 5:in `locate' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:49:in `assert_exists' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:284:in `enabled?' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:56:in `assert_enabled' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/input_elements.rb: 323:in `set' D:/zhilan/tbtest_trunk/tbautotest/product/mytest/new_main.rb:24 Then I changed to ebay site, everything went well. Does this problem come out because there are double byte characters in g.cn? Maybe it's a naive question, I've worked on this for sometime but still no progress,really hope someone will have solutions to this. Many 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: why do i have this error message by using xpath in watir
Yes, the script can go with no wrong or warning message, thank you very much 2009/11/18 jnxgn s...@jnxgn.cn place following in the begin of your scripts: require win32ole WIN32OLE.codepage = WIN32OLE::CP_UTF8 pleas refer to myblog: http://www.sdgz.cn/watirzai-zhong-wen-huan-jing-xia-shi-yong-xpathde-yi-ge-zhu-yi-shi-xiang/ On 11月18日, 下午12时51分, Capricorn qian...@ecitysky.com wrote: Hi all, I'm new here, and I met some problem while I was using Watir gem to automate my testcase. I want to use Watir with xpath, coding like this: require watir @ie = Watir::IE.new @ie.goto(www.g.cn)#google in china @ie.text_field(:xpath,//inp...@name='q']).set 'test' And there comes the following exceptions: D:/ruby/lib/ruby/1.8/rexml/parsers/treeparser.rb:90:in `parse': #REXML::ParseException: Missing end tag for 'u' (got a) (REXML::ParseException) Line: Position: Last 80 unconsumed characters: a class=gb3 style=COLOR: green! important onclick=gbar.qs (this) href=ht D:/ruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull' D:/ruby/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse' D:/ruby/lib/ruby/1.8/rexml/document.rb:190:in `build' D:/ruby/lib/ruby/1.8/rexml/document.rb:45:in `initialize' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 713:in `new' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 713:in `create_rexml_document_object' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 693:in `rexml_document_object' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 897:in `elements_by_xpath' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 890:in `element_by_xpath' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/container.rb: 730:in `locate_input_element' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/input_elements.rb: 5:in `locate' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:49:in `assert_exists' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:284:in `enabled?' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:56:in `assert_enabled' D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/input_elements.rb: 323:in `set' D:/zhilan/tbtest_trunk/tbautotest/product/mytest/new_main.rb:24 Then I changed to ebay site, everything went well. Does this problem come out because there are double byte characters in g.cn? Maybe it's a naive question, I've worked on this for sometime but still no progress,really hope someone will have solutions to this. Many 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: click on item in span
Hi Kai, Welcome. Before posting any question please search in existing lists. Please follow it because the same topic available in more than 25 threads. So please search in lists and raise new thread. Thanks On Tue, Nov 17, 2009 at 9:08 PM, Kai kphapa...@gmail.com wrote: This solution worked for me. Thanks a lot! On Nov 17, 2:05 am, Raveendran P jazzezr...@gmail.com wrote: Hi Kai, I hope it helps -- ie.span(:text,'MZ Test Search').click If it is not working then please provide the html code for that page (Atleast a tag details) Thanks On Tue, Nov 17, 2009 at 3:47 AM, Kai kphapa...@gmail.com wrote: Hi. I need to be able to click on MZ Test Search. Does anyone know what method to use to click on this? I've tried ie.link(:text, MZ Test Search).click but does not work. li class=last searchid=-32752 span class=file title=Name: MZ Test Search Description: Complex Results with lots of filters for 14 days. searchid=-32752 ispublic=trueMZ Test Search/span /li Thank you, Kai -- Regards, P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text - - Show quoted text - -- Regards, P.Raveendran http://raveendran.wordpress.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 -~--~~~~--~~--~--~---