[wtr-general] Watir-classic execute_script no longer working in IE11
Sorry, no. The Windows Update in question breaks a ton of functionality when you try to automate IE from out of process. However, the February cumulative update should resolve the issue, if the last comment (from a Microsoft employee) on the Microsoft Connect report is to be believed. -- -- 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] Re: watir-webdriver + protected mode in XP-IE8
How to solve it? Set the Protected Mode settings. For the technical reasons why the IE driver requires this, see http://jimevansmusic.blogspot.com/2012/08/youre-doing-it-wrong-protected-mode-and.html -- -- 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.
Re: [wtr-general] Scripts not working in IE11 browser
If you're using the WebDriver implementation of the IE driver with watir-webdriver, you should take a look at the WebDriver project's wiki page for how to configure IE to properly work with the driver[1]. It has been updated to include extra configuration steps for IE11. Note carefully the last bullet point in the Required Configuration section[2]. --Jim [1] https://code.google.com/p/selenium/wiki/InternetExplorerDriver [2] https://code.google.com/p/selenium/wiki/InternetExplorerDriver#Required_Configuration On Tuesday, July 29, 2014 11:26:54 AM UTC-4, Joe Fl wrote: > > Hi Rahul, > > I have run into the same problem running with IE11 and have no found a > solution. I did several searches on this issue and did not find an > solution. Sorry I am not answering your question but i wanted to be a part > of the thread. > > Joe > > > On Tue, Jul 29, 2014 at 9:27 AM, Rahul Singla > wrote: > >> Hi All, >> >> I am new to the watir-webdriver. I am facing an issue where my ruby >> scripts are not working in IE browser. >> >> I have updated the IEdriver but still that didn't fixed the issue. >> >> Also, my scripts launches the IE browser but it gets failed to locate the >> element id but same scripts are working fine in Firefox and Chrome browser. >> >> So please suggest. Is it like IE browser is not compatible with >> Watir-webdriver or it is some other issue. >> >> Thanks in advance >> >> -- >> -- >> Before posting, please read http://watir.com/support. In short: search >> before you ask, be nice. >> >> watir-...@googlegroups.com >> http://groups.google.com/group/watir-general >> watir-genera...@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-genera...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- 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] Entering data to text field is taking time in Watir Web driver
You haven't provided this information, and I'm not an expert in watir-webdriver, so I'm going to have to rely on my psychic debugging powers. My psychic powers tell me you're running Internet Explorer 10 or 11, and since you're on a 64-bit version of Windows, you assumed you should use the 64-bit version of IEDriverServer.exe. That is incorrect. Even if you're on 64-bit Windows, and even if you think you're running 64-bit IE, you're not. The "content" process is still a 32-bit process. This issue and its root cause are discussed in some detail in the Selenium issue tracker[1]. Of course, my psychic powers occasionally fail me, and I do have a bit of a cold at the moment so I could be off base. Also, I've no idea if watir-webdriver bundles a version of IEDriverServer.exe in the gem. If it does, I'd have to assume that the package maintainer has done the right thing including the 32-bit executable. --Jim [1] http://code.google.com/p/selenium/issues/detail?id=5116 -- -- 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] Text Entry is very slow using IE 10+
What version of IEDriverServer.exe are you using? More importantly, are you using the 64-bit version of the executable? If you are using the 64-bit exe, don't. Use the 32-bit exe with IE10+. With IE10+, even on 64-bit Windows, and even if you explicitly launch a 64-bit iexplore.exe, the content rendering process is still a 32-bit process unless you go to extraordinary lengths to make it otherwise. -- -- 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] Re: Internet Explorer - watir-webdriver question
Just a wild guess, but are you running on 64-bit Windows 7? What version of IEDriverServer.exe are you running, 32-bit or 64-bit? IE, or any process, for that matter, can't load a cross-bitness .dll (an ActiveX control is a .dll with some specific API endpoints built into it). So if your ActiveX control is a 32-bit ActiveX control, you won't see it when you start 64-bit IE. For the same reason, the "bitness" version of IE that gets launched by IEDriverServer.exe (and therefore by watir-webdriver) is determined by the "bitness" of the executable. --Jim On Thursday, April 25, 2013 12:52:13 PM UTC-4, Alan May wrote: > > Hi, > > I understand that Watir doesn't support ActiveX controls.(I have read the > FAQ entry and several posts on this matter). > > I think Watir is an incredibly useful tool for web application testing and > I've had good results with using it on various projects. Please bear with > me for a brief thought exercise: > > I've been just experimenting with using watir to lead me through a web > flow until the point that I come to an Internet Explorer specific control > (spawns a separate window) (I am thinking this is probably based in ActiveX > technology... I had to install an .exe file on my client to access the > functionality and the functionality is only visible in Internet Explorer.) > My tenative plan is to use Ruby to interact with the ffi gem or, somewhat > more crudely, invoke a java class that leverages the java.awt.Robot.class > to finish the necessary flow. > > Working in Windows 7, I have noticed something I didn't anticipate > > when I invoke: > > c:\"Program Files"\"Internet Explorer"\iexplore.exe // the > control doesn't seem to be recognized as installed (the app is checking for > the installed software at the beginning of its flow) > > However, > > If I invoke: > start iexplore.exe > // the control appears to be loaded and works as anticipated. > > > When I load the IE browser(version 9.0.8) through webdriver, I get the > behavior I see when I invoke iexplore.exe without the "start" directive. > > > > I was going to also try the original Watir IE driver and attempt the same > thing with Selenium (and potentially try other frameworks if I exhaust > those options), but just wanted to check with this group beforehand in case > anyone had any suggestions. > I don't have direct access to the source code, so white box approaches > won't work in this situation. > > I looked at the command line switches for Internet Explorer 9, and there > is a switch for disabling loading add-ons, but I didn't see anything else > that might appear useful. > > > Anyway, I was just curious if anyone had had success with using a similar > approach/technique or could give me any guidance. I'm a bit stuck if the > control isn't accessible at all (for instance if I have watir bring up the > browser, and I step through the flow manually from that point). I wasn't > sure if the issue with being able to have IE load applets, activeX controls > --- and --- once you have them loaded, not having a mechanism to recognize > and click widgets (since they aren't native web form controls, links, etc.) > --- OR if it was just the latter issue. > > Is anyone aware of a potential workaround for the loading issue? > > Thanks for your time! > Alan > > > > > > > > > > -- -- 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] .attach method
You don't. The WebDriver API doesn't support attaching to an existing browser yet, so watir-webdriver can't provide this functionality either. Additionally, a large use case for attaching to an existing browser window is in manipulating popup browser windows[1], and WebDriver does provide a Window API for that purpose. How watir-webdriver exploits that API, I couldn't say. --Jim [1] Disclaimer: I don't mean to suggest that there aren't other use cases for the .attach method, or that popup windows are the most important use case for that API, or even that it's the use case you're trying to solve. I'm just presenting the state of things as they are in WebDriver. Patches, as always, gratefully received. -- -- 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] watir, watir-webdriver, watir-classic: history and current state?
Let me piggyback off of Željko's comments to reiterate that the WebDriver development team welcomes any and all contributions toward making the drivers more stable. I realize that having watir-classic is a disincentive for folks to spend time helping with the IE driver, if only because it appears to "just work" for most Watir users' use cases. Nevertheless, even acknowledging how crappy the code in the IE driver is (I should know, I wrote most of it), I'm extending an invitation to any and all who might want to help make it better. -- -- 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[2]: [wtr-general] Re: Installing the IEDriverServer
I don't want to leave you with the impression that this isn't a very helpful place to get answers. It is, and answering your question was no trouble at all. In the future though, it's best to start a new thread for a new question. :) -- 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
Re: [wtr-general] Re: Installing the IEDriverServer
Normally I'd say, "Start a new thread; don't hijack other peoples'," but I'm too tired to argue about it. How to solve the problem is to set the browser zoom level to 100%. That is to say, open IE manually, and type Control+0 (that's hold the control key down while typing the number zero). That resets the zoom level to 100%. From the WebDriver side of things, there are ways you can tell the IE driver to ignore the zoom level, but I don't know how to set those in the Watir API. --Jim On Wednesday, January 16, 2013 11:46:47 AM UTC-5, Sergii Nadieiev wrote: > > What about next? I got error "Unexpected error launching Internet > Explorer. Browser zoom level was set to 139%. It should be set to 100%" > on the line > browser = Watir::Browser.new :ie > Any suggestions how to fix it? > > > > On Thursday, August 23, 2012 1:27:32 PM UTC+3, Željko Filipin wrote: >> >> On Wed, Aug 22, 2012 at 11:36 PM, Tony Chamberlain < >> chamberla...@gmail.com> wrote: >> > OK I downloaded, installed and ran IEDriverServer.exe >> >> You do not have to run the exe file. Just start IE with something like >> this: >> >> require "watir-webdriver" >> browser = Watir::Browser.new :ie >> >> Željko >> -- >> filipin.eu >> > -- 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: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved
I'm going to use my psychic debugging powers to deduce that you're automating IE with the watir-webdriver gem. If I'm wrong, disregard the following explanation. Screenshots in WebDriver are, by definition, of the full page. However, in order to take a screenshot of the full page without scrolling (which would screw up absolutely positioned elements), you have to be able to render the full page in IE. The only way to get the full page to render is to resize the IE window so that the full page is visible without scrolling. So, the IE driver does the resize automatically for the screenshot API call, then restores the window to the state it was in before the call. If you're attempting to use IE10, on Windows 8, screenshots are one of the few things that don't work entirely properly. It's entirely possible that Microsoft has closed the loophole the IE driver uses to create full-page screenshots in Windows 8. --Jim On Wednesday, January 16, 2013 9:42:45 AM UTC-5, Evgeny Shavkunov wrote: > > Hi, > > I was trying to make a screenshot from the page using > "browser.screenshot.save" and I found that only small part of the page > (even less then visible part in the window) is saved in file. Later I > discovered that before screenshot is taken browser is automatically > minimized and then maximized back after. > > What can be the reason for that? How can I get a screenshot with a whole > page? > > Thank you! > -- 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] Installing the IEDriverServer
Don't add the executable name in the path entry. In other words, if you put IEDriverServer.exe in C:\WebDrivers, put C:\WebDrivers in your path. -- 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: Modeling web pages and table rows
Sure, I'd be happy to. I think, though, that a little more background might be in order. As I mentioned before, I have a table on the page which represents a list of tickets. The first row of the table is a row of header cells; subsequent rows represent individual tickets. It's a little more complicated, in that the column order is user- configurable. In other words, the first column is not always the same data, so I can't rely on position for modeling the content of the row elements. Initially I tried subclassing the Table object, adding a couple of attributes that I need, like a Hash containing the current column bindings. Here's something similar to my class for that table. class TicketListGridControl < Watir::Table def SelectAllTicketsCheckBox self.rows[1].checkbox(:name, "MASTER_CHECKBOX") end def FieldNameMap if not instance_variable_defined? :@field_map @field_map = Hash.new self.rows[1].cells.each_with_index {|value, index| @field_map [value]=index } end @field_map end def VisibleTickets # this method should return the list of tickets. end end I tried have VisibleTickets return TableRows.new(self), since that doesn't filter out the header row, and I can't see any way to get that to work. Additionally, using the built in TableRows collections will not allow me to return objects that extend TableRow. This lead me down the path of subclassing the TableRows collection, and suddenly it seems like I'm doing a whole lot of subclassing, rather than just extending what I need to. Further, I tried to subclass a TableRow to give me the individual ticket model, but I can't see how TableRow has any intrinsic knowledge of the table it belongs to. I suppose I could pass in a reference to the table's field map hash, but that seems a little clunky. If I call .parent up the hierarchy on the subclassed TableRow, I can get the table to which the row belongs, but it's a Watir::Table, not a TicketListGridControl. I'm know I don't want to extend all tables to contain these methods. I'm sure there are other people who are trying to do the type of semantic page modeling I'm attempting, where the pages to be modeled are fairly sophisticated. I've had some success generating a model of the application using WatiN; the latest builds provide a great deal of plumbing to make this kind of thing dead simple. However, there are some concerns in my organization about a need for cross-platform (not just cross-browser) test execution. Thus, I find myself in unfamiliar territory. On Aug 10, 7:49 pm, Bret Pettichord wrote: > Can you show us what you tried? > > On Aug 10, 9:07 am, Jim Evans wrote: > > > > > I have a web application that I'm trying to create a model of in > > Watir, to encourage code reuse in the scripts, and I've hit a little > > snag. I have a table on the main page of the application, the first > > row of which has column header information. I need a method by which I > > can return all other rows in the table, ideally without iterating > > through the rows and adding them to an array. There must be a more > > efficient way. Certain ports of the Watir library have features that > > make this very easy, and maybe it's my lack of familiarity with Ruby > > that is causing my disconnect.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 subclass Table
That's fantastic. Thanks for that. Now that it's working, can someone point me to some further reading as to why it works? What does the "/ ie" imply? If it's simply a namespace thing, I can understand that. What documentation did I miss that I didn't figure this without having to bother you good folks? --Jim Evans Numara Software, Inc. On Aug 10, 7:50 pm, Bret Pettichord wrote: > Add this line to your script: > > require 'watir/ie' > > Bret > > On Aug 10, 1:03 pm, Jim Evans wrote: > > > > > As I mentioned in a previous message, I'm trying to model my > > application to enforce code reuse in my scripts. I think I've managed > > to find a way around the answer for my previous question, but I'm > > having a difficult time subclassing the Watir::Table class. > > > If I try the following: > > > require "watir" > > class TicketListGridControl < Watir::Table > > ... > > end > > > then I get the following error stack when I attempt to run a script: > > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/ > > dependencies.rb:440:in `load_missing_constant': uninitialized constant > > Watir::Table (NameError) > > from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ > > active_support/dependencies.rb:80:in `const_missing' > > from ./object_model.rb:67 > > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `gem_original_require' > > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `require' > > from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ > > active_support/dependencies.rb:156:in `require' > > from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ > > active_support/dependencies.rb:521:in `new_constants_in' > > from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ > > active_support/dependencies.rb:156:in `require' > > from program.rb:2 > > > It looks clear that my code can't resolve the name for the Table > > class. How do I correct the NameError? > > > I'm sure this is probably another "lack of Ruby experience" issues on > > my part, but I'd really appreciate a nudge in the right direction. > > > --Jim Evans > > Numara Software, Inc.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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] Cannot subclass Table
As I mentioned in a previous message, I'm trying to model my application to enforce code reuse in my scripts. I think I've managed to find a way around the answer for my previous question, but I'm having a difficult time subclassing the Watir::Table class. If I try the following: require "watir" class TicketListGridControl < Watir::Table ... end then I get the following error stack when I attempt to run a script: C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/ dependencies.rb:440:in `load_missing_constant': uninitialized constant Watir::Table (NameError) from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:80:in `const_missing' from ./object_model.rb:67 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:156:in `require' from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:521:in `new_constants_in' from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:156:in `require' from program.rb:2 It looks clear that my code can't resolve the name for the Table class. How do I correct the NameError? I'm sure this is probably another "lack of Ruby experience" issues on my part, but I'd really appreciate a nudge in the right direction. --Jim Evans Numara Software, Inc. --~--~-~--~~~---~--~~ 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] Modeling web pages and table rows
I have a web application that I'm trying to create a model of in Watir, to encourage code reuse in the scripts, and I've hit a little snag. I have a table on the main page of the application, the first row of which has column header information. I need a method by which I can return all other rows in the table, ideally without iterating through the rows and adding them to an array. There must be a more efficient way. Certain ports of the Watir library have features that make this very easy, and maybe it's my lack of familiarity with Ruby that is causing my disconnect. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---