[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
Hi folks Does somebody know how to access capabilities from https://code.google.com/p/selenium/wiki/DesiredCapabilities page? I am able to access capabilities only from first three tables: require 'watir-webdriver' caps = Selenium::WebDriver::Remote::Capabilities.ie =

[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
Hi guys Does somebody using any re-run mechanisms for failed test cases (not Continuous Integration approach)? I need something like this: Feature File Scenario 1: Login Given something . Scenario 2: Go_somewhere Given something . Some scenario failed after execution Create

[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
Sorry It depends not even on position, but whether mouse cursor is physically located inside of browser window, so if I for example have not maximized window and cursor is situated somewhere (no matter where) but not in browser window - everything works properly I appreciate any help Thanks,

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

2013-02-27 Thread Alex Shtayer
Hi Joe Thanks for suggestion. I did not do that before, but I just have tried to click and it doesn't help to drag and drop Strange, because everything works just perfect for Win8+IE10 and WinXP+IE8. And, of course it works from irb (for Win7+IE9), because mouse concentrated on CMD, not on

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

2013-02-27 Thread Alex Shtayer
Nope I can see how necessary controls (what should be dragged and that where it should be dragged) just blurring (selected for a second). Here is an example that I use for testing: http://dev.sencha.com/deploy/ext-3.4.0/examples/tree/reorder.html Code: browser.span(:text,

[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