[wtr-general] DOM events not being fired when IE compatibility mode is turned off in IE 10 and above
I have an on going issue with some events not firing when I run my ruby/watir script if compatibility mode is turned in IE 10. My web application has a text field, when I set this field using text_field(...).set ... this triggers an onkeyup event that then enables a button. When i run this script when compatibility mode is turn on the onkeyup event is occurring in the browser however when you turn compat mode off this event does not appear to trigger. I've tried using the fire_event options an nothing seems to work. Any suggestions why compat mode might change this event firing? -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[wtr-general] Button not enabling after a text_field has been set when ie compatibility mode is turned off
Hoping someone may have come across this problem. The application I am automating requires a user to login, the user fills in a text field with login credentials and once all three fields have beeing filled in a button becomes enabled which users clicks to login. I have successfully automation this process however I have found when I run the script with internet explorers compatibility mode turn on the button enables as expected. When compatilibilty mode is turned off the button does not become enabled. When I perform the action manually it works fine in both situations. I'm using ie 10. Has anyone come across this before? -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[wtr-general] Running ruby scripts from a vb.net application
Is it possible to run ruby scripts from within a vb.net application? I havea ruby file which contains a number of def's I would like to call these defs from within a vb.net application I am writting, is this possible, if so can someone provide an example of code please? -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] click_no_wait not working
I'm having some problems with click_no_wait. I have a button which when clicked displays a modaldialog. I am using click_no_wait when clicking the button the button turns yellow but I am not getting the modal dialog displayed. If I use .click the button turns yellow and the modal dialog is displayed. I have also tried .click! this also displays the modal dialog but scripts haults because of the dialog. The button is located within a frame and I am using IE. I read that a few people have had this issue in the past I was wondering if it has being resolved, I am using ruby version 1.9.3p374 and wait-classic 3.7.0 -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] click_no_wait clicks the button but nothing happens
When clicking on a button using click_no_wait the button turns yellow at the point it is clicked but nothing happens as if the button was never clicked. I have tried click! and this does click the button the script haults because a modal dialog is displayed. I have read lots of comments that there have being problems with click_no_wait not working with frames, does anyone know if this is still a problem or not? i'm also having a same issue with drop down lists where I click on the item it turns yellow but the items does not appear to be selected. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Re: Problems selecting an item in a list
Have found a solution. I firstly need to fire_event(onmouseover) which selects the item then fire_event(onclick). Thank you all for your comments. On Wednesday, May 8, 2013 10:39:16 AM UTC+1, Marc Westwood wrote: Yes it works in terms of its clicks on the item in the select list because I can see the item in the list go yellow when it clicks but while is clicks it does not actually select the item. I can't see anything about a onclick mentioned. I've tried .click fire_event('onclick') mousedown mouseup onchange nothing seems to work. I have the same issue with other drop down lists in our application as well but the other drop down lists have different HTML they are options tag in the html. Sorry I'm new to all this. On Friday, May 3, 2013 6:00:11 PM UTC+1, Super Kevy wrote: Did this work? browser.div(:class, selectable_list).li(:id, _item_2).click Against this code sample lia id=_item_1 window=[object] . Text = DEF - 100 DEF I think you confirmed to zeljko browser.link(:text,DEF - 100 DEF).click worked Your sample code fragment is somewhat inadequate to answer your issue I assume the html really looks like this: lia id=_item1 ...other anchor attributes. DEF - 100 DEF/a/ li Do you see any onchange, onclick events in the div selectable_list, in the anchor, or list item? On May 2, 6:56 am, Marc Westwood marcawestw...@gmail.com wrote: I have tried. .div(:class, selectable_list).li(:id, _item_2).click .div(:class, selectable_list).select 'DEF - 100 DEF' .select_list(:id, selectable_list).select 'DEF - 100 DEF' I would like to click on using the text. On Thursday, May 2, 2013 7:57:55 AM UTC+1, Željko Filipin wrote: On Wed, May 1, 2013 at 3:52 PM, Marc Westwood marcaw...@gmail.comjavascript: wrote: I am having problems selecting items from a drop down list, I can get the drop down list to open but am unable to select an item within the list. You are not dealing with select list (select tag), but with unordered list (ul tag). What do you want to click? What have you tried so far? Željko -- https://leanpub.com/watirbook -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Re: Problems selecting an item in a list
Yes it works in terms of its clicks on the item in the select list because I can see the item in the list go yellow when it clicks but while is clicks it does not actually select the item. I can't see anything about a onclick mentioned. I've tried .click fire_event('onclick') mousedown mouseup onchange nothing seems to work. I have the same issue with other drop down lists in our application as well but the other drop down lists have different HTML they are options tag in the html. Sorry I'm new to all this. On Friday, May 3, 2013 6:00:11 PM UTC+1, Super Kevy wrote: Did this work? browser.div(:class, selectable_list).li(:id, _item_2).click Against this code sample lia id=_item_1 window=[object] . Text = DEF - 100 DEF I think you confirmed to zeljko browser.link(:text,DEF - 100 DEF).click worked Your sample code fragment is somewhat inadequate to answer your issue I assume the html really looks like this: lia id=_item1 ...other anchor attributes. DEF - 100 DEF/a/ li Do you see any onchange, onclick events in the div selectable_list, in the anchor, or list item? On May 2, 6:56 am, Marc Westwood marcawestw...@gmail.com wrote: I have tried. .div(:class, selectable_list).li(:id, _item_2).click .div(:class, selectable_list).select 'DEF - 100 DEF' .select_list(:id, selectable_list).select 'DEF - 100 DEF' I would like to click on using the text. On Thursday, May 2, 2013 7:57:55 AM UTC+1, Željko Filipin wrote: On Wed, May 1, 2013 at 3:52 PM, Marc Westwood marcaw...@gmail.comjavascript: wrote: I am having problems selecting items from a drop down list, I can get the drop down list to open but am unable to select an item within the list. You are not dealing with select list (select tag), but with unordered list (ul tag). What do you want to click? What have you tried so far? Željko -- https://leanpub.com/watirbook -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] Problems selecting an item in a list
Yep tried that, it is now finding the item in the list. I can see the item in the list change to yellow when it clicks but nothing is happening after that, it is almost like the click is not actually selecting the item. I've tried .click and .fire_event(onclick) and .fire_event(onmousedown) none of these are working. On Thursday, May 2, 2013 1:04:13 PM UTC+1, Željko Filipin wrote: On Wed, May 1, 2013 at 3:52 PM, Marc Westwood marcaw...@gmail.comjavascript: wrote: a id=_item_1 window=[object] . Text = DEF - 100 DEF Try this: browser.a(:text = DEF - 100 DEF).click Željko -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Problems selecting an item in a list
I am very new to ruby/water so please excuse my lack of knowledge. I am having problems selecting items from a drop down list, I can get the drop down list to open but am unable to select an item within the list. The HTML looks something like this div class= selectable_list id= . ul length=80 0= 1= 2= li a id=_item_0 window=[object] . Text = ABC - 100 ABC li a id=_item_1 window=[object] . Text = DEF - 100 DEF li a id=_item_2 window=[object] . Text = GHI - 100 GHI -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] Problems selecting an item in a list
I have tried. .div(:class, selectable_list).li(:id, _item_2).click .div(:class, selectable_list).select 'DEF - 100 DEF' .select_list(:id, selectable_list).select 'DEF - 100 DEF' I would like to click on using the text. On Thursday, May 2, 2013 7:57:55 AM UTC+1, Željko Filipin wrote: On Wed, May 1, 2013 at 3:52 PM, Marc Westwood marcaw...@gmail.comjavascript: wrote: I am having problems selecting items from a drop down list, I can get the drop down list to open but am unable to select an item within the list. You are not dealing with select list (select tag), but with unordered list (ul tag). What do you want to click? What have you tried so far? Željko -- https://leanpub.com/watirbook -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] using drag_and_drop_on with watir-webdriver
One of the big things I like about watir-webdriver is the ability to drag and drop page elements. This works in version 0.2.0 and seems to have stopped working with version 0.2.1. I'm trying to figure out if this was by design, and if so, is there a better way to accomplish what I'm trying to do. browser.div(:id=some_div).element.drag_and_drop_on(browser.div(:id=some_other_div).element) NoMethodError: undefined method `drag_and_drop_on' for #Watir::HTMLElement:0x33 05838 located=false selector={} C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.2.1/lib/watir-webdriver/ elements/element.rb:283:in `method_missing' Thanks, Marc -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: using drag_and_drop_on with watir-webdriver
Jari, Thanks for the quick reply. I've added the issue to the tracker. Marc On Apr 26, 9:04 am, Jari Bakken jari.bak...@gmail.com wrote: Hi, On Tue, Apr 26, 2011 at 2:42 PM, marc betts marcbe...@gmail.com wrote: browser.div(:id=some_div).element.drag_and_drop_on(browser.div(:id=som e_other_div).element) When you call Watir::Element#element to fetch the underlying Selenium::WebDriver::Element instance, you're using a private API that was changed in 0.2.1: https://github.com/jarib/watir-webdriver/commit/7cee77a7b81d87df1392c... You can still do this by replacing the #element calls in your code with #wd, but keep in mind that this API is not public (it's marked as private in the documentation). We should probably add Watir::Element#drag_and_drop_on directly - feel free to file that to the tracker: https://github.com/jarib/watir-webdriver/issues -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Problem about watir-webdriver
Jari, Thanks for that info. I'm in the process of migrating from watir to watir-webdriver and have been seeing some of this IE instability, I think. I wasn't entirely convinced it wasn't my app causing it, but running on Firefox has been great. Marc On Apr 19, 5:52 am, Jari Bakken jari.bak...@gmail.com wrote: On Tue, Apr 19, 2011 at 10:28 AM, Ekin Han nbkhic...@gmail.com wrote: Hi all, I am using watir-webdriver now. Could anybody tell me where is the online doc of waitr webdriver? API docs:http://rubydoc.info/github/jarib/watir-webdriver/master/frames Wiki:https://github.com/jarib/watir-webdriver/wiki/_pages And is watir-webdriver stable enough for real world testing? Yes. I know several big companies who use the underlying WebDriver technology very successfully in production, and has been doing so for years. However it depends on what browsers you need to test. I'm using the Firefox driver for real world testing and it's *very* stable. The Chrome driver which is in the current release is not great, but a rewrite has just landed in Selenium trunk and by the next release of selenium-webdriver (which watir-webdriver builds on top of) we will have excellent Chrome support as well. The IE driver has traditionally been the least stable driver, but it has seen huge improvements over the past few months (thanks to fantastic work by Jim Evans) and its pass rate on watirspec is now looking very good as well. I haven't used it for any real world testing, so can't really speak to its stability outside the specs. Jari -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Compare HTML with HTML in a file
I'm not sure how this is Watir related. You may have better luck asking a general Ruby users group. On Apr 4, 12:15 am, dt_nz david.tay...@sungard.com wrote: Hi I am using imap to retrieve email, and want to compare the data (which is retrieved as a string but contains html) with html stored in a file. If the data does not match my expected, I would like to find the differences, and format the html so its readable. Anyone know of any good formaters, or html comparators. I had a look at html tidy, but I cant find how to set tidy lib path (in the rdoc its Tidy.path = '/usr/lib/tidylib.so', but I cant find this file in my ruby directory as I am using windows) Thanks in advance -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Speed: IE vs FF
I've notice recently that my tests in IE were running a lot slower than Firefox using watir-webdriver. I was able to track it down to verifying text on a page. For example: verify(browser.div(:id=some_div).text.include?(some text)) would take about 5 to 10 times as long in IE compared to Firefox. For most of my tests I was able to switch to using html.include? which is a lot faster. I don't think it's ideal, but it's working for me and has sped things up dramatically. On Sep 17, 2:07 pm, Chad Larkin clar...@toolbox.com wrote: I changed out watir for watir-webdriver and seems to have increased the speed a little. I have not yet tried value= instead of set, however there is not a ton of data set on the pages. I will have to try that and let you know. On Sep 9, 12:21 pm, John Fitisoff jfitis...@yahoo.com wrote: That's interesting. Maybe it's the text entry? I've run into situations where those parts of a test occasionally crawl. Otherwise Firefox is generally a bit faster (at least for me). I had done some customization for what I was doing so maybe my experience is different from others. Do you have any ideas where specifically the bottlenecks are? If it's a text entry problem you might want to try value= instead of set (not sure if that will work but think I tried that at one point). - Original Message From: Chad Larkin clar...@toolbox.com To: Watir General watir-general@googlegroups.com Sent: Thu, September 9, 2010 9:23:03 AM Subject: [wtr-general] Speed: IE vs FF I recently began using Watir/Firewatir with Rasta to build a domain specific language for the automated testing tasks where I work. I have been experiencing some significant differences in time to execute when running those tests in IE 8 compared to FF 3.6.9. The longer tests take about 1/3 (or less) of the time to execute in IE than FF. Does anyone have any tips for speeding up the execution in FF? Thank you Chad ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32] *** LOCAL GEMS *** activesupport (2.3.8, 2.3.5) builder (2.1.2) commonwatir (1.6.5) ffi (0.6.3 x86-mingw32) firewatir (1.6.5) google-spreadsheet-ruby (0.1.1) hoe (2.6.1, 2.6.0) hpricot (0.8.2 x86-mswin32) json_pure (1.4.3) nokogiri (1.4.2.1 x86-mingw32, 1.4.1 x86-mingw32) oauth (0.4.1, 0.4.0) rake (0.8.7) rasta (0.1.10 x86-mswin32-60) roo (1.9.3) rspec (1.2.9) ruby-ole (1.2.10.1) rubyforge (2.0.4) rubygems-update (1.3.7, 1.3.6) rubyzip (0.9.4) rubyzip2 (2.0.1) s4t-utils (1.0.4) selenium-webdriver (0.0.24, 0.0.18) spreadsheet (0.6.4.1) syntax (1.0.0) user-choices (1.1.6.1) watir (1.6.5) watir-webdriver (0.0.2, 0.0.1.dev5) win32-api (1.4.6 x86-mingw32) win32-process (0.6.2) windows-api (0.4.0) windows-pr (1.0.9) xml-simple (1.0.12) -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed tohttp://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com