[wtr-general] Third Party Combo Boxes in an Input Tag
Hi I have a scenario in which we have third party combo boxes in the app which are defined as: INPUT class=dojoComboBox autoSelectBox __doClobber__ autocomplete=off dojoAttachPoint=textInputNode dojoAttachEvent=key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd; onResize; value= / Is there any way in watir i can use to identify this object so that i can perform operations like selecting an element? ALso it allows typing on it, so maybe setting text or something like that should also work. Any help anyone... 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: Third Party Combo Boxes in an Input Tag
Try with index. This will be the best way. Regards, Kiran On Thu, Oct 1, 2009 at 11:58 AM, Pallavi Sharma write2pall...@gmail.comwrote: Hi I have a scenario in which we have third party combo boxes in the app which are defined as: INPUT class=dojoComboBox autoSelectBox __doClobber__ autocomplete=off dojoAttachPoint=textInputNode dojoAttachEvent=key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd; onResize; value= / Is there any way in watir i can use to identify this object so that i can perform operations like selecting an element? ALso it allows typing on it, so maybe setting text or something like that should also work. Any help anyone... 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: Third Party Combo Boxes in an Input Tag
Thanks did that works, but it works as a text _field so will it be okay to do so? On Thu, Oct 1, 2009 at 12:00 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: Try with index. This will be the best way. Regards, Kiran On Thu, Oct 1, 2009 at 11:58 AM, Pallavi Sharma write2pall...@gmail.comwrote: Hi I have a scenario in which we have third party combo boxes in the app which are defined as: INPUT class=dojoComboBox autoSelectBox __doClobber__ autocomplete= off dojoAttachPoint=textInputNode dojoAttachEvent=key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd; onResize; value= / Is there any way in watir i can use to identify this object so that i can perform operations like selecting an element? ALso it allows typing on it, so maybe setting text or something like that should also work. Any help anyone... 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: Third Party Combo Boxes in an Input Tag
Well It will be great to have the function and i did and figured out the index, But still if you may please share the function that will be helpful Regards Pallavi. On Thu, Oct 1, 2009 at 12:14 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: yes it will work, just do trial and error basis by changing index value from 1 until you get the correct one. Still if didnt work let me know i will give you a small function where you can get the index value at run time for your text field On Thu, Oct 1, 2009 at 12:11 PM, Pallavi Sharma write2pall...@gmail.comwrote: Thanks did that works, but it works as a text _field so will it be okay to do so? On Thu, Oct 1, 2009 at 12:00 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: Try with index. This will be the best way. Regards, Kiran On Thu, Oct 1, 2009 at 11:58 AM, Pallavi Sharma write2pall...@gmail.com wrote: Hi I have a scenario in which we have third party combo boxes in the app which are defined as: INPUT class=dojoComboBox autoSelectBox __doClobber__ autocomplete= off dojoAttachPoint=textInputNode dojoAttachEvent=key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd; onResize; value= / Is there any way in watir i can use to identify this object so that i can perform operations like selecting an element? ALso it allows typing on it, so maybe setting text or something like that should also work. Any help anyone... 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: Third Party Combo Boxes in an Input Tag
On Thu, Oct 1, 2009 at 8:28 AM, Pallavi Sharma write2pall...@gmail.com wrote: INPUT class=dojoComboBox autoSelectBox __doClobber__ autocomplete=off dojoAttachPoint=textInputNode dojoAttachEvent=key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd; onResize; value= / browser.text_field(:class, dojoComboBox autoSelectBox).set some text More information: http://wiki.openqa.org/display/WTR/Text+Fields You can always use xpath: http://wiki.openqa.org/display/WTR/XPath Ž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: Third Party Combo Boxes in an Input Tag
Zeljko I tried using class, but this doesn't work, only index worked. XPath is also a good idea will try it Thanks :) On Thu, Oct 1, 2009 at 1:25 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 1, 2009 at 8:28 AM, Pallavi Sharma write2pall...@gmail.com wrote: INPUT class=dojoComboBox autoSelectBox __doClobber__ autocomplete=off dojoAttachPoint=textInputNode dojoAttachEvent=key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd; onResize; value= / browser.text_field(:class, dojoComboBox autoSelectBox).set some text More information: http://wiki.openqa.org/display/WTR/Text+Fields You can always use xpath: http://wiki.openqa.org/display/WTR/XPath Ž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] Watir Podcast #27: Angrez Singh on FireWatir
Sai and I talk with Angrez about FireWatir, Watir and their merge, replacing JSSH with Firedriver, XPath, Firewatir-Gen, Google Summer of Code™, Bangalore Watir user group, WatiN, Indian music… http://watirpodcast.com/27-angrez-singh-on-firewatir/ Ž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: Third Party Combo Boxes in an Input Tag
On Thu, Oct 1, 2009 at 10:19 AM, Pallavi Sharma write2pall...@gmail.com wrote: I tried using class, but this doesn't work, only index worked. doesn't work does not tell me a lot. You can combine class and index: browser.text_field(:class = dojoComboBox autoSelectBox, :index = 2).set some text More information: http://wiki.openqa.org/display/WTR/Multiple+Attributes Ž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: Load Testing with WATIR configuration settings - USERS/ Concurrency/ Rampup
On Thu, Oct 1, 2009 at 11:32 AM, venkat greet.ven...@gmail.com wrote: I got the following message attached file that confirms Watir installation successfully, after that I have executed the same Test.rb file and again saw the same error and and also executed the google_search.rb example script again got to see to see the Require - LoadError... What happens if you add this to the top of the script? require rubygems If that does not help, I would: - make sure I am logged in as administrator - uninstall ruby - install ruby - install watir - try the script one more time Ž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: Html Elements Supported by Watir
On Wed, Sep 30, 2009 at 5:27 PM, Angrez Singh ang...@gmail.com wrote: Just had a look input type=textarea there is no such thing type=textarea. There is textarea tag separately for that. We can remove that. Done. Removed input type=textarea from: http://wiki.openqa.org/display/WTR/HTML+Elements+Supported+by+Watir http://wiki.openqa.org/display/WTR/Methods+Supported+by+Element Ž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] Methods Supported by Element
I have renamed Methods Supported by Element to Watir Methods Supported by HTML Element. The old title never made much sense to me. Please let me know if you do not like the new title. http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Element Ž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: Summary wiki page
On Thu, Oct 1, 2009 at 2:32 AM, Alister Scott alister.sc...@gmail.com wrote: The Summary section on http://wiki.openqa.org/display/WTR/Project+Home looks like a good idea. Thanks. For a long time I wished that it existed, and then i decided to make my wish come true. :) Ž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] Fire Watir and Watir and fetch object text
Hi All I have a problem, I have a DIV tag for which i need to fetch the text. Is it possible that when i open the page in IE and use watir and when i open the page in firefox and use Fire watir the text fetched are a bit different and contains some extra characters Please let me know if there is a solution for the same. Or is it inevitable ? 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] Collections of HTML Elements
I have created a new wiki page, Collections of HTML Elements: http://wiki.openqa.org/display/WTR/Collections+of+HTML+Elements Please take a look and fix if anything is broken, or let me know and I will fix it. I have noticed that table cells and rows are have TableCells and TableRows class names, but table bodies has Bodies class name (I was expecting TableBodies). I could not find collections for frames and h1-h6. Please let me know if I missed it, or confirm if you know it is not implemented, so I can mark it appropriately. Ž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: Fire Watir and Watir and fetch object text
I've come across this before - there are typically additional characters retrieved using the .text method with FireWatir - you could just use a gsub on the text to strip out the extra characters (if there are no matches, as will be the case for IE, no characters will be stripped out). I think you can also use element_by_xpath and then its' innerHTML method to get the same text in both IE and Firefox, like so: @browser.element_by_xpath(//divyourDivsXpath/).innerHTML Regards, John On Oct 1, 12:41 pm, Pallavi Sharma write2pall...@gmail.com wrote: Hi All I have a problem, I have a DIV tag for which i need to fetch the text. Is it possible that when i open the page in IE and use watir and when i open the page in firefox and use Fire watir the text fetched are a bit different and contains some extra characters Please let me know if there is a solution for the same. Or is it inevitable ? 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: Fire Watir and Watir and fetch object text
Thanks John for a quick reply will try and get back. On Thu, Oct 1, 2009 at 6:02 PM, John Kolokotronis johnj...@gmail.comwrote: I've come across this before - there are typically additional characters retrieved using the .text method with FireWatir - you could just use a gsub on the text to strip out the extra characters (if there are no matches, as will be the case for IE, no characters will be stripped out). I think you can also use element_by_xpath and then its' innerHTML method to get the same text in both IE and Firefox, like so: @browser.element_by_xpath(//divyourDivsXpath/).innerHTML Regards, John On Oct 1, 12:41 pm, Pallavi Sharma write2pall...@gmail.com wrote: Hi All I have a problem, I have a DIV tag for which i need to fetch the text. Is it possible that when i open the page in IE and use watir and when i open the page in firefox and use Fire watir the text fetched are a bit different and contains some extra characters Please let me know if there is a solution for the same. Or is it inevitable ? 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: Third Party Combo Boxes in an Input Tag
I know multiple attributes. Doesn;t work means not able to identify the object when i used :class property and the value. Will try in combination with index although i doubt. Thanks On Thu, Oct 1, 2009 at 2:02 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 1, 2009 at 10:19 AM, Pallavi Sharma write2pall...@gmail.com wrote: I tried using class, but this doesn't work, only index worked. doesn't work does not tell me a lot. You can combine class and index: browser.text_field(:class = dojoComboBox autoSelectBox, :index = 2).set some text More information: http://wiki.openqa.org/display/WTR/Multiple+Attributes Ž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: adding utf-8 character to text fields
Ok, I tried to add this. Here is the link http://wiki.openqa.org/display/WTR/Adding+UTF-8+characters+to+text+fields. I do not see it appear in examples. not really sure what I may have done wrong. On Sep 30, 8:51 am, Loft_Tester aaronr...@gmail.com wrote: I'll give it a shot. Thanks There is a lot to know when working with UTF-8. On Sep 30, 4:09 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: Would you put this on our wiki? I guess the best place is in `Learning More`section. http://wiki.openqa.org/display/WTR/Learning+More There are a lot of people that have UTF-8 related problems. Please let me know if you need help with wiki. Željko --http://watirpodcast.com/ On Tue, Sep 29, 2009 at 5:11 PM, Loft_Tester aaronr...@gmail.com wrote: I got this to work. Here is the code: require 'win32ole' require 'watir' WIN32OLE.codepage = WIN32OLE::CP_UTF8 #UTF-8 ### $Browser = nil ENV[watir_browser]=ie $Browser = Watir::Browser.new $Browser.goto www.google.com $Browser.text_field(:name,'q').value = 考 $Browser.text_field(:name,'q').value = \xE8\x80\x83 ### --~--~-~--~~~---~--~~ 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: adding utf-8 character to text fields
On Thu, Oct 1, 2009 at 4:30 PM, Loft_Tester aaronr...@gmail.com wrote: I do not see it appear in examples. Fixed. I have moved it from child of Examples page to child of Advanced Examples. Examples page is autogenerated, and shows only childen of it's children. Take a look at page source if you want to know more. http://wiki.openqa.org/display/WTR/Examples Thanks for the contribution. Please add yourself to documentation contributors at: http://wiki.openqa.org/display/WTR/Contributors Ž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: adding utf-8 character to text fields
On Thu, Oct 1, 2009 at 4:42 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 1, 2009 at 4:30 PM, Loft_Tester aaronr...@gmail.com wrote: I do not see it appear in examples. Fixed. Actually, UTF-8 is the default in Watir since this commit: http://github.com/bret/watir/commit/466332be758a43c6045374c6c6ca03827688e151 See the commit message for how to revert to the old codepage. Perhaps that should be added to the wiki as well? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---