[wtr-general] Re: how to install prev versions of watir

2016-11-16 Thread Alex Rodionov
watir-scroll is fixed to work with Watir 6 in v0.3.0 On Wednesday, November 16, 2016 at 10:00:27 PM UTC+6, gary wrote: > > will do thanks > > On Wednesday, 16 November 2016 15:48:20 UTC, Titus Fortner wrote: >> >> File a bug on watir-scroll. Alex just needs to switch

[wtr-general] Re: How to test infinite scrolling on web page

2013-12-20 Thread Alex Rodionov
Try to use watir-scroll https://github.com/p0deje/watir-scroll/ - it might help you. On Friday, December 20, 2013 4:53:20 PM UTC+7, Anisha wrote: Hi, I am using watir-webdriver. The application that I am testing has infinite scrolling implemented. It is more or less like 1000 results

[wtr-general] Re: cannot search by :url

2013-09-17 Thread Alex Rodionov
Why do you search for url when attribute is href? It should be b.link(:href, /loadBuildPage/).exists? On Tuesday, September 17, 2013 6:51:42 AM UTC+7, Rakesh Kapoor wrote: i want to search for links by the partial name of path. i want to click on the element where it points to

[wtr-general] Re: Modal dialog present: A script on this page may be busy, or it may have stopped responding.

2013-07-23 Thread Alex Shtayer
Hi Have you tried things mentioned here: http://watirwebdriver.com/javascript-dialogs/? If you have any JS alerts you need to handle them using methods mentioned in provided page or you will always get UnhandledAlertException. Such methods should be used immediately after code/action that

[wtr-general] Re: Possible element.click bug

2013-07-23 Thread Alex Shtayer
Hi It is just idea, because I have a lot of issues due that. When you do: $b.li(:id,'ctl00_AddMenu').hover action, so correct item is hovered, right?I mean Menu1 is become active But then, when you do $b.li(:id, 'ctl00_AddAssetFolderMenuItem').click, menu2 become active and wrong element is

[wtr-general] [watir-webdriver] enablePersistentHover capability access

2013-07-22 Thread Alex Shtayer
(for example specific for IE)? I have tried different version of selenium-webdriver gem (and of course newer than 2.26) without any luck Thanks, Alex -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http

[wtr-general] Re: how to check TextArea is enabled or disabled

2013-06-27 Thread Alex Rodionov
As Jarmo pointed, there is #disabled? method which is generated from HTML spec. I doubt we need one more #enabled? On Wednesday, June 19, 2013 6:20:55 PM UTC+7, mc060200778 wrote: Hi, Is there any method available using which i can check whether the textarea is enabled or disabled. i

Re: [wtr-general] Re: Introducing Watirsome

2013-05-19 Thread Alex Rodionov
needed. -- Cheerz, Alex Rodionov On Sunday, May 19, 2013 at 21:29 , Jarmo Pertman wrote: By the way, element class method in test-page is not the same as your tag-based methods. Element in test-page is a method for providing container element - e.g. like el in Backbone.js. The method name

[wtr-general] Re: Introducing Watirsome

2013-05-18 Thread Alex Rodionov
wrote: Hi! If you're looking something really lightweight, then my gem Test::Page is the one you're looking for: https://github.com/jarmo/test-page Jarmo On Friday, May 17, 2013 11:46:18 PM UTC+3, Chuck van der Linden wrote: On Monday, May 13, 2013 11:36:12 PM UTC-7, Alex Rodionov wrote

[wtr-general] Re: How to locate an element on a mask layer?

2013-05-18 Thread Alex Rodionov
It is very difficult to help you unless you provide some actual Ruby and HTML code. On Saturday, May 18, 2013 9:28:26 AM UTC+7, Christian wrote: After I clicked a button,then the site gives a floating mask layer. I tried to find an element on the mask layer using class,like

[wtr-general] Re: Cannot identify button element by value?

2013-05-18 Thread Alex Rodionov
Reposting myself from SO: +1 to raise this as issue on watir-webdriver as it definitely needs discussion. I use button(:value) in my tests a lot and it actually matches button's value, so there is something behind this. According to code, button tag name and value are treated specifically.

[wtr-general] Re: Introducing Watirsome

2013-05-18 Thread Alex Rodionov
For the record, I have updated Watir readme to include all these libraries. On Saturday, May 18, 2013 8:19:47 PM UTC+7, Alex Rodionov wrote: @Jarmo @Chuck I created this because I've been using page-objecthttps://github.com/cheezy/page-objectfor more than a year and I didn't know abut

[wtr-general] Re: Parse HTML from database in Watir?

2013-05-16 Thread Alex Rodionov
For the record, that was replied on IRC: [09:25am] p0deje: lonny_: you can use data URI [09:26am] p0deje: browser.goto data:text/html,#{html} [09:27am] lonny_: Thanks. I'll give that a try. [09:29am] lonny_: Yes! That worked. Thank you very much. On Thursday, May 16, 2013 9:03:22 AM UTC+7,

[wtr-general] Re: Need to get the count of sections within a specific div

2013-05-16 Thread Alex Rodionov
That's pretty straightforward: browser.div(id: 'boxContainer').sections.size On Thursday, May 16, 2013 1:03:39 PM UTC+7, bhag...@gmail.com wrote: HI All, I am new to Watir and I need to get the count of sections within a specific DIV. Please see below. section id=lsBodyContent

[wtr-general] Re: Watir webdriver - How to click on last td in table ?

2013-05-16 Thread Alex Rodionov
Even more simple browser.table(class: 'rctable').td(index: -1).click On Thursday, May 16, 2013 4:19:35 AM UTC+7, Chuck van der Linden wrote: On Thursday, May 9, 2013 6:23:38 PM UTC-7, Ankita@Adslot wrote: If the number of rows is static, would make sense to use xpath and locate the last

[wtr-general] Introducing Watirsome

2013-05-14 Thread Alex Rodionov
Hey guys! I've recently released Watirsome, which is a gem I've been using at work for a long time as an alternative to well known page-object. It's a lot similar to it, but more dynamic and based on watir-webdriver. Thus (at least for now), it works only with it. Anyways, you can take a

[wtr-general] Re: Re-run mechanism for cucumber+watir-webdriver

2013-03-26 Thread Alex Shtayer
Thanks Željko, but I knew about that. Sorry, but I formed my question not in right way. cucumber -f rerun statement will create only list of failed test cases, but I need to be able to configure that process, for example add initialization step (e.g. login into app) to that list. Proposed

[wtr-general] Re-run mechanism for cucumber+watir-webdriver

2013-03-25 Thread Alex Shtayer
batch file Put here: cucumber feature_file_name.feature:3:6:12:20 (where numbers are line numbers of failed test cases) or cucumber feature_file_name.feature:Login:Go_somewhere: Thanks a lot in advance, Alex -- -- Before posting, please read http://watir.com/support. In short: search

[wtr-general] Re: [watir-webdriver] how to manage timeout for after click event

2013-03-22 Thread Alex Shtayer
Solution worked like a charm. Thanks Dan for it Regarding delays, yes you absolutely right and I also think that is unacceptable, but I can't do anything, because I just must to run automation scripts on cheaper devices. Customers have much expensive ones:) -- -- Before posting, please read

[wtr-general] Re: Browser resize on watir-classic.

2013-03-22 Thread Alex Shtayer
Before going on watir-webdriver, I was using autoit for these operations. There are some other solutions, but in total you can't do that using only watir methods -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Re: Unable to select the radiobutton and also unable to detect the iFrame

2013-03-22 Thread Alex Shtayer
yes, you need such intermediate things only if you have two iframes with absolutely same attributes -- -- 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

[wtr-general] Re: Watir Webdriver Logger

2013-03-22 Thread Alex Shtayer
Just a suggestion I like to use log4r gem for all logging procedures, of course mixing with cucumber. It is pretty simple library that has everything that is needed with all these levels and outputters type of things. http://log4r.rubyforge.org/ -- -- Before posting, please read

[wtr-general] [watir-webdriver] how to manage timeout for after click event

2013-03-20 Thread Alex Shtayer
Hi guys I have next situation: When I click on one of buttons in my application, page is loading for more than two minutes and raise exception inside of watir-webdriver click method. Obviously any waiters (like wait_until something) will not help in this situation, because exception is raised

[wtr-general] Re: [watir-webdriver] how to manage timeout for after click event

2013-03-20 Thread Alex Shtayer
Great. Thanks Dan, I will try that solution -- -- 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

[wtr-general] Re: newbie question cucumber-watir

2013-03-19 Thread Alex Shtayer
Have you tried to use waiters or delays? Something like: @browser.text_field(:name = 'j_username').wait_until_present -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] Re: how to click button from nested divs

2013-03-19 Thread Alex Shtayer
I don't think that problem in fact that div is nested, but more that click event is not working as it should Try browser.button(:id, *btnAddNewCustomer*).fire_event(onclick) or browser.button(:id, *btnAddNewCustomer*).fire_event(onmousedown) or browser.button(:id, *btnAddNewCustomer*).send_keys

[wtr-general] Re: Unable to click OK confirm popup

2013-03-19 Thread Alex Shtayer
Provide more of your code like where you put mentioned statements Have you tried the same things from irb? -- -- 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

[wtr-general] Re: Element is not clickable at point

2013-03-18 Thread Alex Shtayer
try element.fire_event(onclick) or element.fire_event(onmousedown) or element.send_keys :enter instead element.click second, it can be absolutely okay that you are not able to click that button if it under another container. Why automation should able click if you physically can't do that?

[wtr-general] Re: Watir Webdriver Zoom

2013-03-18 Thread Alex Shtayer
hmm, as far as I know watir-webdriver gives an immediate exception if you run application using non-default(not 100%) zoom, so my only suggestion that high zooom and UI looks bigger icon and buttons etc is normal and actual/required zoom is not normal :) Just reset your browser zoom settings

[wtr-general] Re: How to zoom out web app using watir

2013-03-18 Thread Alex Shtayer
You can't do that as watir-webdriver kindly gives you exception. And that's just SUPER as watir in the past just running the scripts without any errors and in result days can be wasted until someone noticed that we had zoom 105% :) -- -- Before posting, please read http://watir.com/support.

[wtr-general] Re: Selecting values in 2 ndDropdown Issue in Watir-WebDriver

2013-03-11 Thread Alex Shtayer
Please provide select list tags for second list as you provided for the first one I have only one suggestion at that moment. Probably, you have two select lists with the same id (MainContent_drpMake) and watir-webdriver taken first of them that it faced in DOM and that list does not contain

[wtr-general] Re: Wait method execute_script in watir-webdriver

2013-03-08 Thread Alex Shtayer
Hmm Why don't you just wait for all elements that you need to use for your execute_script method and only after that call it? like: browser.element(:attribute, attribute_value).when_present? after that call your method -- -- Before posting, please read http://watir.com/support. In short:

[wtr-general] Re: Jquery+Watir problem with file_field

2013-03-08 Thread Alex Shtayer
b.button(:value, Submit).click Some not so smart ideas :): b.button(:value, Submit).fire_event(onclick) or b.button(:value, Submit).fire_event(onmousedown) or between these two actions b.file_field(:id, messageFile).set(@messagePath) b.button(:value, Submit).click try to do some another

[wtr-general] Re: Need code snipet

2013-03-08 Thread Alex Shtayer
But if original window will be closed, so probably you will get an immediate error and will not be able to do browser.window(:title = annoying popup).use do because browser instance will not be initialized anymore but at least try Željko suggestion -- -- Before posting, please read

[wtr-general] Re: Custom report system for cucumber+watir-webdriver

2013-03-06 Thread Alex Shtayer
Yes, mostly I am speaking about HTML reports generated by Cucumber, but absolutely custom (so I can add some extra information like time, build number) and nice looking. I have created something like this, but information: Scenario name Pass Scenario name Fail on white background looks like a

[wtr-general] Re: Issue Clicking JQuery Rendered Buttons

2013-03-06 Thread Alex Shtayer
I have a lot experience in automating JQuery+Watir and can assure you that DOM tree can be different for IE and Firefox representations So could you please check DOM using Firebug in Firefox to make sure that: div class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfixdiv

[wtr-general] Re: Watir-webdriver and Ruby 2.0.0 - known compatabilty issues?

2013-03-06 Thread Alex Shtayer
Do you have any reasons to move on Ruby 2.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

[wtr-general] Re: Segmentation fault

2013-03-06 Thread Alex Shtayer
I would also strongly recommend log4r gem as it is really good tool for logging.It has really nice outputter types and log levels. http://log4r.rubyforge.org/manual.html -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Re: Jquery+Watir problem with file_field

2013-03-06 Thread Alex Shtayer
Hmm, strange Could you perform mentioned steps manually? Is everything work as it should? (without any file clearing from select window)? Did you try to put static delay just for test purpose to see that functionality works properly? (like sleep 10) -- -- Before posting, please read

[wtr-general] Re: how to install cucumber in windows xp sp3

2013-03-05 Thread Alex Shtayer
try command gem update -- -- 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

[wtr-general] Custom report system for cucumber+watir-webdriver

2013-03-05 Thread Alex Shtayer
Just curious, maybe someone was working before to create nice looking and informative reports for cucumber+watir-webdriver scripts. Not just (because it is not customizable or not so easy to customize): *cucumber featurename.feature --format html --out report.html --format pretty* * * And not

[wtr-general] Re: Drag and drop on Win7+IE9

2013-02-27 Thread Alex Shtayer
, Alex -- -- 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

[wtr-general] Re: Drag and drop on Win7+IE9

2013-02-27 Thread Alex Shtayer
, not on browser If that was single case, I would not post here, but it is like 60 cases failing due this issue. I am using last watir-webdriver gem and tried three different versions of driver. Thanks, Alex -- -- Before posting, please read http://watir.com/support. In short: search before you ask

[wtr-general] Re: Drag and drop on Win7+IE9

2013-02-27 Thread Alex Shtayer
).double_click browser.span(:text, debug.js).drag_and_drop_on(browser.span(:text, ext-core)) browser.span(:text, util).drag_and_drop_on(browser.span(:text, ext-core)) I can provide more examples if necessary Only Win7+IE9 Thanks for any help, Alex -- -- Before posting, please read http://watir.com

[wtr-general] Re: Segmentation fault

2013-02-19 Thread Alex Shtayer
Could you put more information? Your OS, fileutil gem version and etc Have you tried different ruby and gem versions? I can see something similar, but very old and on linux: http://www.ruby-forum.com/topic/60495 -- -- Before posting, please read http://watir.com/support. In short: search

[wtr-general] Re: Do Watir scripts run in selenium

2013-02-17 Thread Alex Shtayer
If we speak from code similarities prospective: watir scripts can work on watir-webdriver (sometimes with some code changes), but if you mean selenium, so probably no, because watir and selenium have completely different syntax. -- -- Before posting, please read http://watir.com/support. In

[wtr-general] Re: Serious memory leaks on IE9 and IE10 for watir-webdriver

2013-02-14 Thread Alex Shtayer
Nope, Firefox 3.6.x, Firefox 15 and IE8 are okay. But for these two browsers I can see that memory increased for each action (click and etc) on 10-15 mb Have you tested something on IE9IE10? Regarding defect (something the same as I have):

[wtr-general] Re: Data driven testing using watir-classic v 3.0.0

2013-02-14 Thread Alex Shtayer
I would propose to use something more simpler than excel like structured text file or xml (or some RDBMS), but if your case is simple enough and such functionality will be used only once, so I prefer to use xml -- -- Before posting, please read http://watir.com/support. In short: search

Re: [wtr-general] Re: Serious memory leaks on IE9 and IE10 for watir-webdriver

2013-02-14 Thread Alex Shtayer
duplicated On Thursday, February 14, 2013 12:07:52 PM UTC+2, Željko Filipin wrote: On Thu, Feb 14, 2013 at 11:05 AM, Alex Shtayer asht...@gmail.comjavascript: wrote: I understand that this thread/group can be not related to webdriver core itself, but anyway I want to try my luck here Why don't

Re: [wtr-general] Re: Serious memory leaks on IE9 and IE10 for watir-webdriver

2013-02-14 Thread Alex Shtayer
Are you closing browser after each case? Yes. Code: https://github.com/wikimedia/qa-browsertests Željko Are you able access that link? Because I get 'This repository is temporarily unavailable.' message ' -- -- Before posting, please read http://watir.com/support. In short: search

[wtr-general] Re: Serious memory leaks on IE9 and IE10 for watir-webdriver

2013-02-14 Thread Alex Shtayer
Thanks Željko for providing all this information You give me some nice ideas Probably, I will need to think about closing browser after each case which will be very hard to do due my code not so nice as yours and it is created in such way that it will be mostly impossible to do Need to read

Re: [wtr-general] Re: Serious memory leaks on IE9 and IE10 for watir-webdriver

2013-02-14 Thread Alex Shtayer
Thanks a lot. Without you I will play with all of this for weeks I am sorry, but last question (pretty off topic) Do we have any alternative for background keyword, but vice verse? I mean not for pre-initialization, but for post-execution I know about hooks: After do |scenario| end But due of

[wtr-general] Re: Data driven testing using watir-classic v 3.0.0

2013-02-14 Thread Alex Shtayer
option as well, and much easier to use with Ruby than xml. On Thursday, February 14, 2013 5:09:04 AM UTC-5, Alex Shtayer wrote: I would propose to use something more simpler than excel like structured text file or xml (or some RDBMS), but if your case is simple enough and such functionality

[wtr-general] Serious memory leaks on IE9 and IE10 for watir-webdriver

2013-02-13 Thread Alex Shtayer
After some test cases executed (only 5-10 minutes of execution which is not enough for any memory overflow from any point of view) I am getting No connection could be made because the target machine actively refused it . - connect(2) (Errno::ECONNREFUSED)

[wtr-general] Re: Serious memory leaks on IE9 and IE10 for watir-webdriver

2013-02-13 Thread Alex Shtayer
Sorry, forget to add: Env: 1. ruby 1.9.2p180 2. watir-webdriver (0.6.2) 3. InternetExplorerDriver server (32-bit) 2.29.0.0 But was reproducible on 2.28.0.0 and 2.27.0.0 too -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Re: watir, watir-webdriver, watir-classic: history and current state?

2013-02-08 Thread Alex Shtayer
but Watir classic is still only for Internet Explorer or something changed? -- -- 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

[wtr-general] Re: Partial match on element id

2013-02-08 Thread Alex Shtayer
using regular expressions e.g. browser.link(:id, /.*1234.*/) or xpaths browser.link(:xpath, //a[contains(@id,'1234')])) -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] Re: how cucumber finds html ids - via DOM or by parsing html code ?

2013-02-08 Thread Alex Shtayer
I know more about the difference between watir (not classic) and watir-webdriver for simple addressing cases like browser.link(:id, 'blah') I do not see any difference in performance or even watir-webdriver works MUCH faster, but for really complex DOMs and complex addressing like

[wtr-general] Re: how to set focus on a popup window and continue work in popup window as a Current window in WATIR

2013-02-08 Thread Alex Shtayer
Did you get some error? It will be informative if you provide some exception or something rather than 'it is not working' Hmm, not sure how such statement can work at all: popup = $browser.attach($browser.link(:url, $browser.link(:url, javascript:doNothing()).click)) .attach method is more

[wtr-general] Re: Partial match on element id

2013-02-08 Thread Alex Shtayer
If I understand your question correctly, so both of my examples are given for string case (not for numbers or something) as all DOM values that we get are strings by default or did you mean how you can use variable instead exact number? you can try something like: browser.link(:id,

[wtr-general] Re: Partial match on element id

2013-02-08 Thread Alex Shtayer
yes, that's right. just used to that style :) -- -- 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

[wtr-general] Re: how to set focus on a popup window and continue work in popup window as a Current window in WATIR

2013-02-07 Thread Alex Shtayer
Željko provided good link, but probably that approach works only for watir-webdriver For Watir: - If that popup window is usual modal window, so you can work with it through .attach method - If that popup window is Javascript pop-up, so you do not have any way to do that, except using other

[wtr-general] Re: watir-webdriver href javascript

2013-02-06 Thread Alex Shtayer
What do you mean by automate? How to click on the element? You can use usual method like: browser.link(:text, Select).click or if due any reason click method does not work: browser.link(:text, Select).fire_event(onclick) or browser.link(:text, Select).fire_event(onmousedown) On Wednesday,

[wtr-general] Re: help please

2013-02-06 Thread Alex Shtayer
Maybe, you can try browser.div(:*id, idDiv_PWD_UsernameExample*).send_keys blah-blah or browser.div(:*id, idDiv_PWD_UsernameExample*).click browser.send_keys blah-blah That solution works for me perfectly (for text in divs) On Saturday, February 2, 2013 8:19:11 PM UTC+2, mc060200778 wrote:

[wtr-general] Re: Getting constant net/protocol.rb:140:in `rescue in rbuf_fill': Timeout::Error exception for Watir-webdriver after couple hours of use

2013-02-06 Thread Alex Shtayer
The same exception we get when IEDriver is not installed at all, so does anybody has situation when driver stopped to respond or hanged up? It should be reproducible whether you have more or less complex test suite On Tuesday, February 5, 2013 1:27:16 PM UTC+2, Alex Shtayer wrote: Env: 1

Re: [wtr-general] input type=image

2013-02-06 Thread Alex Shtayer
Input is a parent class for all inputs (like buttons, checkboxes, text_fields and etc), so if you can't use any sub-class of elements due you input is a special one (like *input type=image*), you can use just browser.input and watir will look for all inputs (buttons, checkboxes, unusual and

[wtr-general] Re: .attach method

2013-02-06 Thread Alex Shtayer
Actually you can. And without any problem through usual browser.window(:title=Browser title).use do code end or even to sub-window browser.window(:title=Browser title).use do code browser.window(:title=Browser title).use do code browser.window(:title=Browser title).use do code

[wtr-general] Re: How to run watir script onan already opened Chrome Browser

2013-02-06 Thread Alex Shtayer
On watir through .attach method on watir-webdriver through browser.window(title).use On Friday, February 1, 2013 6:19:27 PM UTC+2, mc060200778 wrote: Hi, I wanted to know How to run watir script on an already opened Chrome Browser. I dont want to open new Chrome Instance. THe web

[wtr-general] Re: Unable to acces text_field inside a frame coz of some #document tag in the HTML.

2013-02-06 Thread Alex Shtayer
Okay, so provide HTML that you see in IE developer tool $ie.frame(:name,centent).present? = true but $ie.frame(:name,centent).text_field(:name,validateDealer).present? flase so, maybe you have one more sub frame? but it is really not good (it seems that frame is empty or what) irb(main):015:0

[wtr-general] Re: How to handle download bar in IE 9

2013-02-06 Thread Alex Shtayer
I automate such kind of things through AutoIT due pop-ups are not usual window and cannot be attached or something On Tuesday, July 17, 2012 8:32:27 AM UTC+3, Agung Surya wrote: Hi, I'm having a problem regarding access the new pop up in IE 9 using Watir This pop up regarding the save or

[wtr-general] Re: watir, watir-webdriver, watir-classic: history and current state?

2013-02-06 Thread Alex Shtayer
General impression: I created hundreds of cases for different functionality (in some cases really complex one) on watir classic and firewatir. After that I spent last six months to migrate everything on one platform (watir-webdriver) as it helps me keep code for all browsers much more

[wtr-general] Re: Unable to find the chromedriver executable

2013-02-06 Thread Alex Shtayer
Once more http://code.google.com/p/selenium/wiki/ChromeDriver Download and copy mentioned file for example in: C:\Ruby193\bin -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] Re: Problems with Select Lists in my application

2013-02-06 Thread Alex Shtayer
Refer to: http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups I am using solution #9 for more than 3 years and it works just fine -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] Getting constant net/protocol.rb:140:in `rescue in rbuf_fill': Timeout::Error exception for Watir-webdriver after couple hours of use

2013-02-05 Thread Alex Shtayer
Env: 1. ruby 1.9.2p180 2. watir-webdriver (0.6.2) 3. InternetExplorerDriver server (32-bit) 2.29.0.0 I am running usual functional tests (that worked perfectly on usual watir), so it is almost 100% no dependencies on what I test, but more what I use for testing. Issue can be reproduced on FF

[wtr-general] Watir wait until key pressed

2012-06-28 Thread Alex Rudnitsky
Hello, Is it possible to make Watir wait until some special key is pressed? I'm doing browser automation, and there are some moments that requires manual verification. I want to Watir to do a pause and when I press a special key - to make Watir go ahead doing the next steps. How to make it

[wtr-general] Using Watir Webdriver I am able to detect that a WYSIWYG ckeditor exists, but any attempt to send_keys to it outputs a blank string?

2012-06-18 Thread Alex
Other frames on the same webpage do not present this problem for me. Problem seems to be only when attempting to enter any text to the WYSIWYG ckeditor. b.frame(:title, Rich text editor, currentItem.contentText, press ALT 0 for help.).exists? = true b.frame(:title, Rich text editor,

Re: [wtr-general] Using Watir Webdriver I am able to detect that a WYSIWYG ckeditor exists, but any attempt to send_keys to it outputs a blank string?

2012-06-18 Thread Alex
=98ccb20ae6ee6feb; #from this point I cannot enter text into the WYSIWYG using javascript or send_keys method Any more thoughts? Thank you again! On Monday, June 18, 2012 11:12:59 AM UTC-4, Željko Filipin wrote: On Mon, Jun 18, 2012 at 3:55 PM, Alex ap...@weddingwire.com wrote: Problem seems

[wtr-general] Re: Need help on jssh installation for firefox

2009-06-03 Thread Alex Collins
, JSSH needs to be installed in the default profile. Thanks, Alex On 3 Jun 2009, at 14:02, Chethan wrote: Pls Help me out on this Jssh issue. Thanks, Chethan On Jun 3, 9:54 am, Chethan chethan2...@gmail.com wrote: Yes I am admin user for the machine i am using. Here are the steps i

[wtr-general] Re: override js confirm FireWatir

2009-06-02 Thread Alex Collins
Aidy, I'm guessing and not strong on Javascript, but might it be the lack of a semi-colon after 'return true'? Best wishes, Alex Collins On 2 Jun 2009, at 17:03, aidy lewis wrote: Hi, I am trying to override a js confirm in FireWatir: $jssh_socket.send(window.confirm=function

[wtr-general] Re: Noob problem

2009-05-28 Thread Alex Collins
You may need to add require 'rubygems' to the top of your script, depending upon how ruby has been installed for you. Alex Collins On 28 May 2009, at 00:31, James wrote: I finally got watir and ruby installed I believe. I am now trying to do the google seach example, but when I run

[wtr-general] Re: How to execute the single comment?

2009-05-25 Thread Alex Collins
Wesley, Replace exec() with eval() - this will run (evaluate) the Ruby code you provide as an argument to it, in the current context. Best wishes, Alex Collins On 25 May 2009, at 11:56, Wesley Chen wrote: Hi, guys, I have the requirement like: require 'watir' $ie=Watir::IE.new str1

[wtr-general] Re: Watir - some VERY slow functions

2009-05-21 Thread Alex Collins
create a test page which you can share that recreates the issue you are seeing? Thanks, Alex On 21 May 2009, at 05:15, Paul Denize wrote: I finally found a performance issue and it was in the watir library. If a page (and dont get me started about it) has 200 plus radio buttons and your

[wtr-general] Re: no such file to load -- firewatir

2009-05-19 Thread Alex Collins
Are you sure that the gem is installed correctly? Can you check that firewatir is listed when you run gem list. If firewatir is not shown, you may have installed it as a particular user and not system-wide. Try sudo gem install firewatir to fix this. Alex On 18 May 2009, at 20:25, Josh

[wtr-general] Re: Saving xml contents of a page shown on screen

2009-05-18 Thread Alex Collins
Natasha, This is where you need to use a little natural Ruby. For example: filename = 'output.xml' File.open(filename, 'w').write browser.html Another useful style is: File.open(filename, 'w') do |output| output.puts Whatever I want to put in the file. end Hope this helps. Alex

[wtr-general] Error when building commonwatir - FIX (url) is not a URI

2009-04-30 Thread alex
Hi all, Thanks to Angrez and http://wiki.openqa.org/display/WTR/Building+Watir I was able to find the latest watir files, and tried to build it. Everything was fine, except when building commonwatir, when I got the error: FIX (url) is not a URI

[wtr-general] Re: Error when building commonwatir - FIX (url) is not a URI

2009-04-30 Thread alex
Hi Bill, Thanks for replying. I followed your instructions, but unfortunately the error is still there ... Is there anything else you did last week? Thanks, Alex On Apr 30, 9:34 pm, Bill Agee billa...@gmail.com wrote: I had that happen too, last week, when I was trying to get the latest

[wtr-general] Re: Error when building commonwatir - FIX (url) is not a URI

2009-04-30 Thread alex
Thanks a lot Bill. You were right, replacing *FIX (url) with a valid URL solved the problem. Alex On Apr 30, 11:14 pm, Bill Agee billa...@gmail.com wrote: Oh, whoops, yeah, my fix was actually different.  Editing the manifest file doesn't help. The workaround that actually works is: 1

[wtr-general] Re: Rescue

2009-04-26 Thread Alex Collins
. To stop the program / script running, call the 'exit' method. Alternatively, if you want to build in behaviour around the lack of a browser, you could always use an if-block: if browser # do stuff when you have a browser else # do stuff when you have no browser (browser = nil) end Alex

[wtr-general] Re: jssh error - Watir::Exception::UnableToStartJSShException

2009-04-23 Thread Alex Collins
you post the output of 'uname -a', please? Thank you, Alex On 23 Apr 2009, at 03:17, emz452 wrote: Hi there, I have recently started working from home and have just finished setting up my rails development environment. I'm running into a problem with Watir when running some of my tests

[wtr-general] Re: Test Results Report Methods

2009-04-19 Thread Alex Collins
specify UTF-8 encoding, the output is wrongly displayed. Try manually specifying the encoding. Alex On 19 Apr 2009, at 04:03, Wesley Chen wrote: It doesn't work. I get the result as: row of CSV data 浣犲ソ鍚? 鎴戝緢濂? When I put the info out from the csv by fastercsv, I can get

[wtr-general] Re: FireWatir bug/anomaly

2009-04-13 Thread Alex Collins
this into element.rb's method_missing call. 2. SelectList#set needs to be defined as an alias for SelectList#select (as it is in IE-Watir). I checked this morning - this is already fixed in the firewatir on GitHub in Bret's Watir repository. Alex

[wtr-general] Re: FireWatir bug/anomaly

2009-04-12 Thread Alex Collins
jobs) However, if you wish to use the set method, add the following code to your firewatir/htmlelements.rb file in the SelectList class beneath the select method's definition: alias :set :select Best wishes, Alex On 12 Apr 2009, at 00:07, Jarmo Pertman wrote: Try to print out html

[wtr-general] Re: the ie.goto() problem

2009-04-12 Thread Alex Collins
(thisLocation.to_s) However, if you are looking to join file names to directory paths, I suggest you look at Ruby's File and Dir classes. They have many useful helpers, for example, File.join does exactly what we are doing above, but in a platform-safe manner. Alex On 12 Apr 2009, at 02:57, Chai Taolun

[wtr-general] Re: Package creation

2009-03-13 Thread Alex Collins
Vikas, Ruby probably isn't what you're looking for in that case. Although I have previously seen some options for creating executables from Ruby code. I don't have any links or information on them. Alex On 13 Mar 2009, at 04:05, Vikas Tulashyam vtulash...@gmail.com wrote: Hi Tiffany

[wtr-general] Re: Drop down Contents

2009-02-12 Thread Alex Collins
and compare the two. Alex On 12 Feb 2009, at 17:29, Jason Shelton jas.shel...@hotmail.com wrote: All, I am writing to ask if anyone has a quick way of verifying the contents of a drop down. I have a list of names, and I want to verify that each name is being displayed in the drop down. Thanks

[wtr-general] Re: Drop down Contents

2009-02-12 Thread Alex Collins
Interesting. I found the options() method from the rdoc. However, I do not get the behaviour I expect. Use getAllContents() instead; this does return an array, as expected. Alex On 12 Feb 2009, at 19:15, Jason Shelton wrote: I tried the following code, and I am getting the undefined

[wtr-general] Re: using data from a csv file

2009-02-11 Thread Alex Collins
Do a quick search on Google for CSV::Loader - this will allow you to load a csv easily. You can then substitute values into your query as desired. On 12 Feb 2009, at 00:53, jtk jeff.kr...@gmail.com wrote: Hello, Can anyone help me pull data out of a csv file and insert it into a SQL

[wtr-general] Re: How to create a Hash Table using CSV or FaterCSV

2009-01-13 Thread Alex Collins
Margam, This is all to do with the basics of Ruby. It would be well worth working through some of the ruby tutorials. In this case; hash[] On 14 Jan 2009, at 01:19, Margam nk.mar...@gmail.com wrote: Follow Up Hello All, After googling for some time, I found an easy way to get the data

[wtr-general] Re: How to create a Hash Table using CSV or FaterCSV

2009-01-13 Thread Alex Collins
are accessing a String object (an instance of a Ruby class). That it is a string is indicated by the double quotes. You may be interested in looking at YAML. It is a markup form available in Ruby which is typically used for what you are doing. Hope this helps, Alex On 14 Jan 2009, at 01:19, Margam

[wtr-general] Re: Please help - getting error 'Unable to locate element'

2009-01-12 Thread Alex Collins
. If the webmetrics recorder has not been updated to Watir 1.6 then the line might read: $ie = Watir::IE.new If this is the case you will either need to downgrade Watir or modify the script. If you are still having difficulties, it would be helpful to see your script code. Alex On 13 Jan

  1   2   >