[wtr-general] Error when clicking on Submit button in pupup window.

2009-04-29 Thread alex
ing was ok. Is there something I am doing wrong, or Firewatir does not support clicking on "auto-closing" buttons? Thanks, Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group.

[wtr-general] Re: Error when clicking on Submit button in pupup window.

2009-04-30 Thread alex
(something like the workaround I did), and maybe an issue should be added for this behavior... Thanks, Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send emai

[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 wrote: > I had that happen too, last week, when I was trying to get the latest > FireWatir

[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 wrote: > Oh, whoops, yeah, my fix was actually different.  Editing the manifest file > doesn't help. > > The workaround that actually works is:

[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
quot;http://www.weddingwire.com/wedding/UserMyWebsitePageEdit?pid=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

[wtr-general] Re: FireWatir bug/anomaly

2009-04-12 Thread Alex Collins
ime being: @browser.select_list(:id,"cAbb").select("software 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,

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

2009-04-12 Thread Alex Collins
therefore need to amend your script so that you call: ie.goto(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

[wtr-general] Re: FireWatir bug/anomaly

2009-04-13 Thread Alex Collins
ting 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 Br

[wtr-general] Re: Test Results Report Methods

2009-04-18 Thread Alex Collins
", "of", "CSV", "data"] csv << ["你好吗?", "我很好"] end Best wishes, Alex On 18 Apr 2009, at 04:07, Wesley Chen wrote: > Do you know how to make it support the chinese character? > When I have installed fastercsv and run the co

[wtr-general] Re: Test Results Report Methods

2009-04-19 Thread Alex Collins
manually 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 th

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

2009-04-23 Thread Alex Collins
could 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 > prob

[wtr-general] Re: Rescue

2009-04-26 Thread Alex Collins
7; line closes the begin block. 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 h

[wtr-general] Re: setting browser through rake

2009-04-27 Thread Alex Dean
try running 'rake ie --trace' and 'rake ff --trace' to see what order the tasks are executed in? On Apr 27, 2009, at 6:23 AM, aidy lewis wrote: > > Hi, > > Has anyone managed to set the browser through Rake? > > > > require 'cucumber/rake/task' > require 'watir' > > > Cucumber::Rake::Task.new(

[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

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

2009-05-18 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

[wtr-general] Re: html method on watir don't return the real html

2009-05-20 Thread Alex Collins
and identifiers to enter text into text boxes, press buttons etc. Alex On 20 May 2009, at 17:19, TCBlues wrote: > > Thanks for your answer but this is not working in my case. > Since I'm logging the user with watir and I need to get the html with > net/http in the same connect

[wtr-general] Re: Trying to override :waitTime in Firewatir via .yml config file

2009-05-20 Thread Alex Collins
or more information. If the patch is accepted, then hard-coding this value for the present is not really an issue. Alex On 20 May 2009, at 22:27, Alan Ark wrote: > Hi listers. > > I’m running Ruby 1.8.6 > Watir 1.6.2 > On Windows XP > > I’m trying to override the :waitTime op

[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 &

[wtr-general] Re: Weirdness when working with multiple Firefox windows - using Watir::Browser

2009-05-21 Thread Alex Collins
Alan, I've tried this on my multiple browser branch (the post you linked to below) and can confirm that the code works correctly. Best wishes, Alex On 21 May 2009, at 22:04, Alan Ark wrote: > Thank Bill. > > I found more info here: > > http://rubyforge.org/pipermail/

[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'

[wtr-general] Re: Install/Uninstall

2009-05-27 Thread Alex Collins
Hudson is also worth a look - very easy to set up and use. Alex Collins On 27 May 2009, at 18:43, orde wrote: > > Sounds like you are describing a continuous integration testing > model. I believe that some contributors to this group have endorsed > cruisecontrolrb previou

[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 exam

[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_soc

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

2009-06-03 Thread Alex Collins
If so, 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 wrote: >> Yes I am admin user for the machine i am using. >

[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 hap

[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 too

[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 Wednesda

[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 wro

[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: > > En

Re: [wtr-general]

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 *"Add New Customer") On Monday, February 4, 2013 3:30:24 PM UTC+2, mc060200778 wrote: > > Perfect Joe, its amazingly worki

[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

[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 app

[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):

[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 o

[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 maintainab

[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 http://groups.google.com/group/wat

[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 http://groups.google.com/g

[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 li

[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 watir-general+unsubscr...@googlegroups.c

[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 http://groups.google.com/group/watir-

[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 browser.frame

[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 u

[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, /.*#{num1}.*

[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 mes

[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) C:/Ruby192/lib/ruby/1.9.1/ne

[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. watir-general@go

[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 IE9&IE10? Regarding defect (something the same as I have): http://code.google.com/p/selenium/issues/detail?can=2&

[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 before

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

2013-02-14 Thread Alex Shtayer
same defect, it will be just 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 > > wrote: > >> I understand that this thread/group can be not related to webdriver core >> itself, but anywa

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

2013-02-14 Thread Alex Shtayer
> Have you tested something on IE9&IE10? > > > Yes: > > https://wmf.ci.cloudbees.com/ > > Are you closing browser after each case? -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/g

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: s

[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 Cu

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
l is a good 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

[wtr-general] Re: activesupport requires Ruby version >= 1.8.7

2013-02-15 Thread Alex Shtayer
:) BTW What is recommended version of ruby for latest watir and watir-webdriver? Googling doesn't help me a lot in that Is 1.9.2 is still good enough? -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http:/

[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 s

[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 befor

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

2013-02-27 Thread Alex Shtayer
, but if somewhere in the middle of screen or above, so all cases just failed, because nothing is dragged and dropped As far as I know we don't have any methods to physically move mouse cursor, so it is like a blocking issue for me. Please help. Thanks, Alex -- -- Before posting, please

[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 to the

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

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

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

2013-02-27 Thread Alex Shtayer
-core").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 hel

[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 s

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

2013-03-05 Thread Alex Shtayer
as it is said: try gem update --system command :) -- -- 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] 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 .feature --format html --out report.html --format pretty* * * And not for continuou

[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: OK has the same appearance? That OK button can be inside of something rea

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

2013-03-06 Thread Alex Shtayer
Could you please point me to that list, because I cannot find anything more than IRC chat of that group Really sorry for stupid question -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.c

[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 mess

[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. watir-general@google

[wtr-general] Re: How to determine selection criteria (e.g. :name) supported by a given element in watir-webdriver?

2013-03-06 Thread Alex Shtayer
I don't think that you can identify elements by event (everything that is started on :onx), however it is strange, why do we have all these things in attribute list :) As for me all classical ways (like :id, :class or :text) are enough for me. If not :xpath + regexp give me possibility to f

[wtr-general] Re: Watir 3X is not running in Virtual Machines

2013-03-06 Thread Alex Shtayer
Yes, Watir does not require admin privileges and cmd also can be opened in standard mode But due all these privileges things I remember that I was playing with Internet Explorer options for some time to get right results -- -- Before posting, please read http://watir.com/support. In short: s

[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 http://

[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

[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 http://w

[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 A

[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 setting

[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. I

[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 http://groups.google.com/group/watir-gen

[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*").

[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 watir-ge

[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 mes

[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. watir-general@googlegroups.c

[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 watir-general+u

[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 http://watir

[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: 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 solu

[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 l

[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, Lon

[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. > > > > n

[wtr-general] Re: Watir webdriver - How to click on last 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 >>

[wtr-general] Re: Introducing Watirsome

2013-05-18 Thread Alex Rodionov
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: >> >>> Hey guys! >>> >>> I've recently released Watirsome, which is a gem I've been using at work >>>

[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 > (:class=>"bl

[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 specific

[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-object<https://github.com/cheezy/page-object>for more than a

  1   2   >