[wtr-general] Re: How to select color from color picker

2013-03-20 Thread Dan
could narrow it to look at divs in the picker class as well,but that's probably not needed. b.div(:class = color_swatch,:style = background-color: rgb(153, 51, 102); border-color: rgb(0, 0, 0);).click On Wednesday, March 20, 2013 12:56:09 PM UTC-4, sk.f...@gmail.com wrote: Hi Dan, I've

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

2013-03-20 Thread Dan
Check this out. Although I think waiting for a page to load for 2 minutes borders on unacceptable. http://stackoverflow.com/questions/9014121/how-do-i-change-the-page-load-timeouts-in-watir-webdriver-timeout-in-click-met On Wednesday, March 20, 2013 12:48:16 PM UTC-4, Alex Shtayer wrote:

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

2013-03-20 Thread Dan
I would suggest using irb and stepping down into the elements to make sure they exist. For example. $ie.iframe(:id = 'PWGadget5Ifr').exists? $ie.iframe(:id = 'PWGadget5Ifr').frame(:name='actionForm').exists? If you get false for any of these you're going to need to look closer at the

Re: [wtr-general] Re: How to get html meta details

2013-03-19 Thread Dan
This is a really old post! I'm guessing at the time there wasn't an easier way of doing this, but now you can do something like the below. b.metas.each do |m| puts m.name puts m.title end On Tuesday, March 19, 2013 3:22:30 AM UTC-4, Soori wrote: Hi Marlon, I tried the above code and I am

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

2013-03-12 Thread Dan
, MainContent_drpMake).select(ACURA) Dan On Saturday, March 9, 2013 2:55:12 AM UTC-5, abr.n...@gmail.com wrote: Design of the Apps: First Dropdown: (All Loads Dynamically) --- select id=MainContent_drpVehicleType style=width:175px; name=ctl00$MainContent$drpVehicleType option value

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

2013-02-22 Thread Dan
I would suggest to go through this to get some of the foundation of ruby. http://www.codecademy.com/tracks/ruby Dan On Friday, February 22, 2013 12:16:09 AM UTC-5, umesh khannan wrote: Thank you zeljko i am in the middle of using both watir as well as calabash-ios so can you help me

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

2013-02-21 Thread Dan
watir-webdriver is a layer of abstraction on top of the selenium-webdriver gem, so in short, yes. On Thursday, February 21, 2013 8:08:03 AM UTC-5, umeshk...@gmail.com wrote: Hi, I mean to ask will learning ruby language helps us to do scripting in selenium. Thanks regards in advance

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

2013-02-14 Thread Dan
yaml 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 is simple enough and

[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 Dan
If you're just trying to dismiss an alert, it's pretty simple. Here's a working example. b = Watir::Browser.new :firefox b.goto(http://www.w3schools.com/js/tryit.asp?filename=tryjs_alert;) b.frame(:index = 1).button(:value = Show alert box).click # Get the text of the alert if you'd like puts

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

2013-02-08 Thread Dan
it'll work without the wild card characters (.*) as well. A little less to type :). On Friday, February 8, 2013 6:36:16 AM UTC-5, Alex Shtayer wrote: 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

Re: [wtr-general] Re: Watir-Classic 3.4.0 Released!

2013-01-31 Thread Dan
You might want to try downgrading win32-process to version 0.6.6. Downgrading that gem has solved similar issues for me. On Thursday, January 31, 2013 9:04:36 AM UTC-5, Ste wrote: Hi, I have inserted issue #51 at https://github.com/watir/watir-classic/issues I not sure that is a bug given

[wtr-general] Re: Question on how to access Selenium interfaces from something created by watir-webdriver?

2013-01-30 Thread Dan
If you just want to examine the values seems like you could do something like this: http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_webstorage_session b.execute_script(return sessionStorage.clickcount)

[wtr-general] watir-classic user agent

2013-01-28 Thread Dan
Is there a good way to get the user agent using the watir-classic gem? With webdriver I use something like b.execute_script(return navigator.userAgent), but that's not going to work with watir-classic. -- -- Before posting, please read http://watir.com/support. In short: search before you

[wtr-general] Re: Watir vs Watir Classic

2013-01-25 Thread Dan
Thanks for clearing that up Jarmo! On Friday, January 25, 2013 11:28:31 AM UTC-5, Jarmo Pertman wrote: On Thursday, January 24, 2013 6:20:38 PM UTC+2, Dan wrote: Actually the statement below about identifiers/locators isn't correct. This is a ruby syntax thing and not a watir one

[wtr-general] Re: Watir vs Watir Classic

2013-01-24 Thread Dan
Actually the statement below about identifiers/locators isn't correct. This is a ruby syntax thing and not a watir one. b.goto(google.com) b.text_field(:name = q).exists? # This is the same as above b.text_field(:name,q).exists? # You have to use this sytax is you're using multiple locators

Re: [wtr-general] Re: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved

2013-01-17 Thread Dan
It works on all. On Thursday, January 17, 2013 1:33:28 PM UTC-5, johnssn wrote: One question about the screenshot capability: Is it specific to a certain OS or will it work on Windows, OSX, Linux? -- *From:* Evgeny Shavkunov dmoroz...@gmail.com javascript:

[wtr-general] Re: Undefined method 'javascript_dialog' using Watir 4.0.2/Ruby 1.9.3

2013-01-17 Thread Dan
There's a better way to do it now. Check this out: http://watirwebdriver.com/javascript-dialogs/ On Thursday, January 17, 2013 5:54:10 PM UTC-5, captin wrote: I've searched all over this user group and the web and can't find an answer to my issue. I'm attempting to use the

Re: [wtr-general] Re: Accessing a Span

2013-01-16 Thread Dan Franko
I disagree that you need both the text and class in this case. Unless there's another button or span with that same text, you don't need anything else. On Jan 16, 2013, at 9:41 AM, Super Kevy kpe...@scholarshipamerica.org wrote: ie$.span(:class = 'ui-button-text', text='Ok').flash

Re: [wtr-general] Watir object identification issues Oracle App

2013-01-16 Thread Dan
I've done a fair amount of automation against the Oracle suite with watir-webdriver and it works fine. If the pages are being rendered as html you're fine. If it's opening an applet you're not going to be able to use watir-webdriver. On Wednesday, January 16, 2013 8:31:08 AM UTC-5, kalai

Re: [wtr-general] Re: Accessing a Span

2013-01-16 Thread Dan Franko
Can you give the full html of the page with that pop-up showing? I don't think we're getting the whole picture here. Is it possible that the div is inside a frame? You really don't want to use coordinates. On Wed, Jan 16, 2013 at 1:25 PM, Deepak Kumar deepak.maveric...@gmail.comwrote: Can

Re: [wtr-general] Re: Accessing a Span

2013-01-16 Thread Dan
I think you mean $ie and not ie$. The spaces thing is a good point, also you need to pay attention to case as well. On Wednesday, January 16, 2013 3:05:11 PM UTC-5, Super Kevy wrote: You stated but i didn't helped the output is *No examples found. only * Did you get the puts message in

[wtr-general] Re: Accessing a Span

2013-01-15 Thread Dan
I don't believe the locator is the problem. You should be able to identify it via the button or the span. Use the dynamic waiting methods and not sleeps. They will only wait as long as they have to and wait longer if your application happens to be running slowly. b.button(:text =

[wtr-general] Re: Custom attributes within a table

2013-01-07 Thread Dan
Try something like this: b.tr(:class = pathUserRow).attribute_value data-path-user-status-id Although you'll likely need to find some better way to identify the table row. On Monday, January 7, 2013 2:19:30 PM UTC-5, janjos wrote: I'm working with this html line: tr class=pathUserRow

[wtr-general] Re: best practice- mysql and web applications

2012-11-08 Thread Dan
In terms of tools for connecting to and querying mysql, I would use this gem https://rubygems.org/gems/mysql. On Thursday, November 8, 2012 1:37:22 AM UTC-5, Aaron Schwartz wrote: Hi all, I couldn't find anything on this group already posted so please direct me to any resources. I am

[wtr-general] Get environment variables when using grid 2

2012-11-07 Thread Dan
I'm trying to access environment variables on Windows machines really so I can determine where to download a file to. In order to make my scripts truly portable and to run them over the grid I need to be able to find a good predictable place to put the downloaded files. If I'm running locally

[wtr-general] Re: Using browser alert to interact with file download dialogs

2012-10-23 Thread Dan
In case anyone is interested, I believe I've found a way around this. If you right click on the link you can send an A to the browser to select the Save As option bypassing that first window entirely. On Tuesday, October 16, 2012 5:00:43 PM UTC-4, Dan wrote: So, I've been struggling

[wtr-general] Using browser alert to interact with file download dialogs

2012-10-16 Thread Dan
So, I've been struggling with getting IE to consistently work when the window is not focused and I'm downloading a file. I dream of the day where this can be handled like Chrome or Firefox. It lead me to think about how I could use alert for this purpose. I can get the text from the alert

[wtr-general] Re: wait_until_present results in `no_value_found' still!

2012-10-04 Thread Dan
If the options in the drop down are being set dynamically, then you need to approach this differently. The select may be present, but the option in that select probably isn't at the same time if the data is being populated dynamically. You probably need to do something like this instead.

Re: [wtr-general] select_list issue - wrong number of arguments (1 for 0) (ArgumentError)

2012-10-03 Thread Dan
style=display:none; on that select is your problem. You need to trigger whatever event is going to make that visible. Watir won't interact with an element that isn't visible to the user, because a real user wouldn't be able to do that either. On Wednesday, October 3, 2012 1:49:52 AM UTC-4,

[wtr-general] Re: clicking image on mouse over to a table column using watir webdriver

2012-10-03 Thread Dan
Use the hover method. http://rubydoc.info/gems/watir-webdriver/Watir/Element:hover On Wednesday, October 3, 2012 6:11:33 PM UTC-4, Vamsi Agraharam wrote: Hi All, I will try my best to explain the situation here.I am trying to test an XWT application with Watir webdriver framework. Here

[wtr-general] Re: Unable to click on the links having specific description

2012-09-25 Thread Dan
You could do something like this if $ie.link.text.match(/^test/) then $ie.link.click end On Tuesday, September 25, 2012 9:40:07 AM UTC-4, praveen kumar wrote: Hi All, My requirement is to click on the links present in the table which have text starting with *test*. I have written the code

[wtr-general] Re: GWT developed application and WATIR

2012-08-28 Thread Dan
may have to work with the developers on that. Scripting functional tests was a cakewalk compared to trying to do performance testing. GWT-RPC calls everywhere! Dan On Monday, August 27, 2012 10:19:37 PM UTC-4, Joe Fl wrote: Hi all, At my previous employer I implemented WATIR as our

[wtr-general] Re: Update chromedriver

2012-08-15 Thread Dan
Which version of the selenium-webdriver and watir-webdriver gems do you have? On Wednesday, August 15, 2012 1:39:24 PM UTC-4, Joe Fl wrote: Hi, Has anyone run into this before? Any help wonder be appreciated. Thank you, Joe On Monday, August 6, 2012 12:05:51 PM UTC-4, Joe Fl wrote:

Re: [wtr-general] Re: Update chromedriver

2012-08-15 Thread Dan Franko
wrote: hi dan, How do I find that information? Joe On Wed, Aug 15, 2012 at 1:48 PM, Dan dfra...@gmail.com wrote: Which version of the selenium-webdriver and watir-webdriver gems do you have? On Wednesday, August 15, 2012 1:39:24 PM UTC-4, Joe Fl wrote: Hi, Has anyone run

Re: [wtr-general] Re: Update chromedriver

2012-08-15 Thread Dan
Those are pretty old versions. I would try updating the gems to their current version. You can always revert back if you need to. You would do that like: sudo gem update selenium-webdriver sudo gem update watir-webdriver On Wednesday, August 15, 2012 2:03:27 PM UTC-4, Joe Fl wrote: Hi Dan

Re: [wtr-general] Rich Face Testing with Watir

2012-08-09 Thread Dan
Indexes start at 0, so that's part of the problem. b.table(:index, 0).text.include?('housing') = true b.table(:index, 1).text.include?('housing') = false Also, you're better off using something like the exists method. I think someone else can explain why located=false much better than I

Re: [wtr-general] Rich Face Testing with Watir

2012-08-09 Thread Dan
Jarmo answers the located false question below. Bottom line is that's not really the way to tell if something exists or not. https://groups.google.com/d/topic/watir-general/5IAZsmFh9Ow/discussion On Thursday, August 9, 2012 9:06:43 AM UTC-4, Dan wrote: Indexes start at 0, so that's part

Re: [wtr-general] Update chromedriver

2012-08-06 Thread Dan
Awesome tip. I had no idea you could do this. On Monday, August 6, 2012 1:01:27 PM UTC-4, Felipe Kuhn wrote: If you are using a Mac, you are probably better off using Homebrew to install and update chromedriver http://mxcl.github.com/homebrew/ brew update brew upgrade chromedriver On

Re: [wtr-general] Re: Handling a windows file upload dialog box

2012-08-03 Thread Dan
If you're getting : `set': No such file or directory - hi.txt Then your path to the file isn't right. b.file_input(:id = fileuploadbox).set(C:\\folder\\hi.text) or b.file_input(:id = fileuploadbox).set(C:/folder/hi.text) or on a mac/linux b.file_input(:id =

[wtr-general] Re: Handling a windows file upload dialog box

2012-08-02 Thread Dan
You'll want to be looking for an element like this: input type=file name=fileUpload Then you would do something like this: $ie.file_field(:name, fileUpload).set(your file.txt) On Thursday, August 2, 2012 9:41:35 AM UTC-4, mani racha wrote: Hi all, I'm trying to upload a file in a webpage

Re: [wtr-general] Contains_Text vsText_Included?

2012-07-31 Thread Dan
Or browser.element(how, what).text.include?(expected text) http://www.ruby-doc.org/core-1.9.3/String.html On Tuesday, July 31, 2012 4:40:38 AM UTC-4, Željko Filipin wrote: On Tue, Jul 31, 2012 at 7:51 AM, Sohail Mirza mrz...@gmail.com wrote: Then which method is now being used to validate

[wtr-general] Re: Automating import feature in TestLink

2012-07-12 Thread Dan
What if you use watir-webdriver to drive ie instead of watir? require 'watir-webdriver' # Pass the browser you want to open @ie = Watir::Browser.new :ie #@ie = Watir::Browser.new :firefox #@ie = Watir::Browser.new :chrome On Thursday, July 12, 2012 8:33:34 AM UTC-4, Mahesh Shivankar wrote:

Re: [wtr-general] Watir is compatible with UNIX ?

2012-07-06 Thread Dan
I've used watir-webdriver on Open Suse, Scientific Linux, Centos and Fedora, in addition to the OSses Željko mentoined without any issues. On Friday, July 6, 2012 3:38:59 AM UTC-4, Željko Filipin wrote: On Fri, Jul 6, 2012 at 6:43 AM, Sophia Sunitha sophia.joac...@gmail.com wrote: Can

[wtr-general] Re: Queries on Watir

2012-07-06 Thread Dan
In terms of Oracle, if it's using java applets, which most of the Oracle stuff I encounter here is, then the answer is no. On Friday, July 6, 2012 12:55:53 AM UTC-4, Sophia Sunitha wrote: Hi, I have some doubts. Can someone clear it? The tool can operate in Virtual systems [VMWare,

[wtr-general] safari developer certificate

2012-05-30 Thread Dan
So, this is most likely a question that belongs on an Apple forum instead, but I figure maybe someone here knows this. Are the safari developer certs tied to one machine? This isn't the case with iOS profiles/apps, so I'm a bit confused. -- Before posting, please read

[wtr-general] Re: Watir 3.0.rc1 Released

2012-05-03 Thread Dan
Jarmo, Sorry to dig up and old thread, but it seems relevant. When you say switching is already quite easy, do you mean within a single instance, or can I do something like the following below? I'd really like to iterate through all of the browsers I have in a given config file and be able

Re: [wtr-general] Try to install SafariWatir Watir-Webdriver getting error message

2012-04-24 Thread Dan
I can confirm this about the command line tools. On Monday, April 23, 2012 3:18:04 PM UTC-4, Željko Filipin wrote: On Mon, Apr 23, 2012 at 9:11 PM, Joe Fl joeflec...@gmail.com wrote: I am trying to install safariwatir and watir-webdriver on a co-workers Mac Air. Xcode 4.3.2 has been

[wtr-general] Re: Watir select_list options issue?

2012-04-24 Thread Dan
I'm not sure what you're trying to do exactly, but you need to tell it you're looking for the text puts contents[0].text You also may want to consider something like this instead of an array, but again I'm not really sure what you're trying to do. b.select_list(:name =

[wtr-general] Re: How to use more than one html tag

2012-04-20 Thread Dan
Try this: b.a(:id = 'home',:class = 'current').exists? On Friday, April 20, 2012 3:05:46 PM UTC-4, Joe Fl wrote: Hi, How do i use more than one html tag to identify a link? I need to use the id and class for the below. a id=home class=current href=https://my-staging.within3.com/

[wtr-general] Re: Safari Support and Watir Webdriver

2012-04-18 Thread Dan
Really works quite nice on a Mac for the first version! On Tuesday, April 17, 2012 4:11:54 PM UTC-4, Chuck van der Linden wrote: FYI the Watir-Webdriver blog has a new blog post up that describes the current state of Safari support (which is still kinda DYI)

Re: [wtr-general] How do I update my MAC Pro book to ruby version 1.8.7 or higher

2012-04-17 Thread Dan
: Dan, Thank you for the suggestion. I will look into it. Is there a way to update the version on the machine? Thank you, Joe On Apr 16, 2012 4:50 PM, Joe Fl joeflec...@gmail.com wrote: Hi, I have never done this before but I need to update one of our MAC Books Pro to ruby 1.8.7

[wtr-general] alert handling when window switching

2012-04-17 Thread Dan
Is it possible to handle alerts when window switching? If I do something like the below, I get a nice big exception. require watir-webdriver/extensions/alerts b.window(:title = /Other window/).use do b.alert do b.button(:value = 'OK').click end end

[wtr-general] Re: alert handling when window switching

2012-04-17 Thread Dan
17, 2012 1:50:03 PM UTC-4, Chuck van der Linden wrote: So just to be sure I understand what is going on. In the 'Other window' browser window, there is a button with value OK that when clicked causes an alert to occur? On Tuesday, April 17, 2012 9:43:22 AM UTC-7, Dan wrote: Is it possible

[wtr-general] Re: How do I update my MAC Pro book to ruby version 1.8.7 or higher

2012-04-16 Thread Dan
Take a look at RVM. On Monday, April 16, 2012 4:50:31 PM UTC-4, Joe Fl wrote: Hi, I have never done this before but I need to update one of our MAC Books Pro to ruby 1.8.7 in order to use the watir webdriver. The machine is currently installed with version 1.8.6 and MAC OS 10.5. Can

[wtr-general] webdriver plugin permission information bar

2012-03-27 Thread Dan
I'm wondering if anyone has a strategy for dealing with the plugin permission information bar in webdriver? I'm assuming I can simply disable them via profiles with Firefox and Chrome, but that's not an option with IE. Is there a way to interact with this bar via watir-webdriver or perhaps

[wtr-general] watir-webdriver save_screenshot bit depth

2012-03-20 Thread Dan
Is there any way to control the bit depth of the screenshot file? It turns out that firefox and ie provide a 32 bit file, while Chrome provides a 24 bit file. -- 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 wait for javascript generated elements?

2012-03-07 Thread Dan Claudiu Pop
the jQuery library ..useful if this is what your developers use but otherwise not. On Mar 6, 10:58 pm, Dan Claudiu Pop danclaudiu...@gmail.com wrote: In case you have ajax requests you can use: @browser.execute_script(return jQuery.active == 0) The code keeps checking whether

[wtr-general] Re: How to wait for javascript generated elements?

2012-03-06 Thread Dan Claudiu Pop
In case you have ajax requests you can use: @browser.execute_script(return jQuery.active == 0) The code keeps checking whether or not there is at least one active AJAX request. Put it in a while and you should be ok. Dan On Mar 5, 7:34 pm, cootcraig cr...@coot.net wrote: I'm using watir

[wtr-general] capturing browser version

2012-03-01 Thread Dan
Is there a built in way in watir-webdriver or ruby to get the version number of the browser that's running on the host machine? I can probably scrape that off of chrome://version/ and about:support in Firefox, but I'm wondering if someone knows of a better way. -- Before posting, please

[wtr-general] Re: capturing browser version

2012-03-01 Thread Dan
Actually b.execute_script(return navigator.userAgent) is probably a better option, but is there another? Thanks! Dan On Thursday, March 1, 2012 11:33:38 AM UTC-5, Dan wrote: Is there a built in way in watir-webdriver or ruby to get the version number of the browser that's running

[wtr-general] Re: Windows 8 and IE 10

2012-02-28 Thread Dan
van der Linden wrote: Sounds like a webdriver issue, do they officially support IE10 yet? You might try the watir 3.0rc and see if that works on IE10, I'm not sure if anyone has tried that yet however. On Feb 27, 5:02 pm, Dan dfra...@gmail.com wrote: I've got the developer preview

[wtr-general] Windows 8 and IE 10

2012-02-27 Thread Dan
I've got the developer preview of Windows 8 running inside Virtual Box on my Mac. I've got Ruby 1.9.3p125 running as well as watir-webdriver 0.5.3. The problem is that ruby crashes when I try to start up ie with watir-webdriver. The dump indicates The thread tried to read from or write to a

[wtr-general] Re: Is Watir being used by your developers?

2012-02-08 Thread Dan Claudiu Pop
Unfortunately, the only way to involve developers, in my personal opinion is to have ATDD as an extension to TDD. A very good reference is http://specificationbyexample.com/ book. And man i love this post :) http://watirmelon.com/2012/01/31/introducing-the-software-testing-ice-cream-cone/ To be

[wtr-general] Re: What Email Provider is best used with Watir?

2012-02-02 Thread Dan Claudiu Pop
You can also take a look at convio's watirmark-email framework https://github.com/convio/watirmark-email but i would recommend the following gems as Željko said: http://rubygems.org/gems/mail http://rubygems.org/gems/gmail Dan -- Before posting, please read http://watir.com/support. In short

Re: [wtr-general] Re: Extend watir

2012-02-02 Thread Dan
You could do something like this as well. The config file has the browser type, the number of browsers, which browser and the url as well. @config = YAML.load_file(config.yaml) # get our configuration from a file $browsers = (1..@config[runSettings][numberOfBrowsers]).collect {|b| b =

[wtr-general] Re: watirgrid and watir-webdriver-performance together?

2012-01-19 Thread Dan
Works great. Thanks! -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

[wtr-general] Re: watirgrid and watir-webdriver-performance together?

2012-01-17 Thread Dan
This is the error I get. GridIt.rb:40: undefined method `peformance' for #Watir::Browser:0x32cf5f8 (NoMethodError) from C:/Users/wise-user-02/My Documents/Aptana Studio 3 Workspace/YaleStockMarket/GridIt.rb:66:in `join' from C:/Users/wise-user-02/My Documents/Aptana Studio 3

[wtr-general] Re: Watir with a remote desktop

2012-01-17 Thread Dan
So, maybe it's not practical with real browsers to do performance testing with watir, but maybe it becomes more practical when you run the browser headless with watir-webdriver? Where I am we use loadrunner, but we're finding it challenging to deal with apps written using gwt. Obviously

[wtr-general] Re: Watir 3.0.rc1 Released

2012-01-13 Thread Dan Claudiu Pop
+1 On Jan 13, 10:43 am, Ivan Kabluchkov ikabluch...@gmail.com wrote: Jarmo, thanks for your job :) -- 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] watirgrid and watir-webdriver-performance together?

2012-01-13 Thread Dan
Can watirgrid and watir-webdriver-performance be used together? I've got something like the below going, but I get a NoMethodError. All of the providers have up to date chrome and the performance gem installed. Thanks for your help in advance. Watir::Grid.control(:controller_uri =

[wtr-general] Re: watirgrid and watir-webdriver-performance together?

2012-01-13 Thread Dan
I didn't get much more than the no method error, but I'll post more details when I get back to the office. -- 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: Milestone for the Watir tag on Stack Overflow

2012-01-10 Thread Dan Claudiu Pop
yey :) like a boss ! On Jan 10, 8:09 am, Chuck van der Linden sqa...@gmail.com wrote: Well, we just had our 500th question with a 'Watir tag on it posted over on Stack Overflow.  http://stackoverflow.com/q/8796067/409820 Tempting to suggest we should vote the heck out of it just because it's

[wtr-general] Re: Unable to see DOM updated by javascript

2011-12-20 Thread Dan Claudiu Pop
(video_type) @browser.div(:id = VIDEO_RESULTS_TYPE[video_type.to_sym]).imgs(:class = thumbnail).collect do |thumb| thumb.attribute_value(:src). end.map! { |e| e =~ /video-no-image.jpg/ ? image_not_available : e } end Thank you, Dan On Dec 19, 8:38 pm, Chuck van der Linden sqa

[wtr-general] Unable to see DOM updated by javascript

2011-12-19 Thread Dan Claudiu Pop
://postimage.org/image/hfbz54bud/) @thumbnails = @browser.div(:id = fullepisodes).imgs(:class = thumbnail).collect do |thumb| thumb.attribute_value(:src) end puts @thumbnails Regards, Dan -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir

[wtr-general] Re: How to bring browser to front?

2011-11-03 Thread Dan
You can likely use the windows API ShowWindow using the Win32API. FindWindow will help you find the hwnd. http://msdn.microsoft.com/en-us/library/ms633548(v=VS.85).aspx -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] Re: How to bring browser to front?

2011-11-03 Thread Dan
Oh, in that case maybe look at the ruby applescript gem. I believe you can do the same thing with that on a MAC. https://rubygems.org/gems/rb-appscript -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] watir web-driver hwnd

2011-11-01 Thread Dan
I've done a fair amount of searching for the method to get hwnd of a browser with the watir webdriver and I'm coming up empty handed. It's very easy in Watir: browser.hwnd. Thanks! Dan -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir

Re: [wtr-general] watir web-driver hwnd

2011-11-01 Thread Dan
I wanted to use Win32API to do some window manipulation. I ended up finding another way to do it. Basically I have a number of browsers I'm opening and I want to be able to position them in different places on the screen. Not really a functional test or requirement, but it'll make it easier

[wtr-general] dynamic browser instance assignment

2011-10-28 Thread Dan
This is probably more of a ruby question that a watir one, but here goes. I'd like to be able to put the browsers that I want to start into an array and then iterate through them to set them up like this. However the browser isn't being assigned to $player(x)browser, it gets assigned to the

Re: [wtr-general] dynamic browser instance assignment

2011-10-28 Thread Dan
Yes, I want to be able to open several browsers, and I am doing it currently, I just want to be a bit cleaner about it. I'm testing a game and some of the requirements are to make sure that when other users make changes that those are reflected across all users screens. It's actually quite

Re: [wtr-general] dynamic browser instance assignment

2011-10-28 Thread Dan
Ah, yes. This is exactly what I was looking for! Thanks! -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

[wtr-general] Re: Get machine name for MAC

2011-10-27 Thread Dan
I've had pretty good luck with this below. Although you do need to make some decisions based on what os you're using which has been mentioned in some other posts here. https://github.com/djberg96/sys-uname -- Before posting, please read http://watir.com/support. In short: search before you

[wtr-general] Re: New member of the Watir team

2011-10-26 Thread Dan Claudiu Pop
Hail to Chuck ! -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

[wtr-general] webdriver javascript pop-up

2011-10-25 Thread Dan
Hello, I've tried to implement the dialog handling as described here on http://watirwebdriver.com/javascript-dialogs/ using the example at http://www.w3schools.com/js/js_popup.asp, but it doesn't seem to work. I believe the application I'm working on is using the same approach that this

Re: [wtr-general] webdriver javascript pop-up

2011-10-25 Thread Dan Franko
Cliff, Seriously. This is amazing. It's working great. I really appreciate it. Dan On Tue, Oct 25, 2011 at 12:48 PM, Cliff Cyphers cliff.cyph...@gmail.comwrote: I've found that the fire_event can be very problematic which extensions/alerts is using. watir-webdriver will be updated to use

[wtr-general] Re: Handling a MAC Pro book File Upload window.

2011-10-20 Thread Dan Claudiu Pop
something like: browser.execute_script(document.getElementById('video_attachment_video_file_name').style.display = 'block';) if style display is set to none On Oct 18, 11:22 am, Joe Fleck joeflec...@gmail.com wrote: Hi Jari, Here is the HTML code.  Will this help? legendVideo Attachment

[wtr-general] How to bypass basic authentication ?

2011-08-25 Thread Dan Claudiu Pop
://watirmelon.com/ 2010/11/24/elegantly-handling-basic-browser-authentication-with- watir/), i'm more interested in chrome or firefox. Thanks, Dan -- 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

[wtr-general] Re: It is possible to have watir-webdriver and selenium-webdriver (ruby bindings) in the same script ?

2011-08-23 Thread Dan Claudiu Pop
the thread if so. Thank you, Dan On Aug 23, 8:04 am, Alister Scott alister.sc...@gmail.com wrote: What exactly are you trying to do with both drivers. It works for me (see code below) but I can't understand why you'd want to. ruby-1.9.2-p290 :003 require watir-webdriver  = true ruby-1.9.2

[wtr-general] It is possible to have watir-webdriver and selenium-webdriver (ruby bindings) in the same script ?

2011-08-10 Thread Dan Claudiu Pop
like watir-webdriver to open my browser instance and use selenium just to gain access to those methods. An example would be great. Regards, Dan -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http

[wtr-general] Re: It is possible to have watir-webdriver and selenium-webdriver (ruby bindings) in the same script ?

2011-08-10 Thread Dan Claudiu Pop
Thank you Jari, Unfortunately i couldn't get this done. Indeed browser.driver.class is returning Selenium::WebDriver::Driver but couldn't get any method to work with driver. Can you provide a more focus example ? Thank you, Dan On Aug 10, 11:10 am, Jari Bakken jari.bak...@gmail.com wrote: Den

[wtr-general] watir-webdriver headless browser setup

2011-08-01 Thread Dan Claudiu Pop
\xxx\features \search_on_homepage.feature:7:in `Given I am on the xxx home page' Can you help me start the headless browser ? Didn't have problems when i ran with Celerity but i don't wan't to switch to jruby. Thank you, Dan -- Before posting, please read http://watir.com/support. In short: search

Re: [wtr-general] Watir webdriver connection timeout

2011-07-29 Thread Dan
Exactly what I was looking for. Thanks! -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

Re: [wtr-general] Watir webdriver connection timeout

2011-07-29 Thread Dan
Exactly what I was looking for Jari. Thanks! -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

[wtr-general] Watir webdriver connection timeout

2011-07-28 Thread Dan
, but not how long the connection persists. Thanks! Dan -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

[wtr-general] Re: how to select a month/day into that calendar http://calendarview.org/

2011-07-20 Thread Dan Claudiu Pop
hey Cristina, try $browser.div(:class = calendar).td(:class = button, :index = 4).click Dan On Jul 19, 11:44 pm, Cristina Dumitrescu cristina.watir.toro...@gmail.com wrote: Thanks a lot, the following are working:  $browser.div(:id, mac).div(:class, calendar popup).td(:text,Today).click

[wtr-general] How to access cell or row index using watir-webdriver

2011-05-05 Thread Dan Claudiu Pop
tried with each_with_index but didn't get the expected output. Thank you, Dan -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

[wtr-general] Re: How to return cell or row index using watir-webdriver

2011-05-05 Thread Dan Claudiu Pop
: On Thu, May 5, 2011 at 10:31 AM, Dan Claudiu Pop danclaudiu...@gmail.com wrote: And also i tried with each_with_index but didn't get the expected What did you get and what did you expect? Please also provide your code. Rubydoc says watir-webdriver does not have a method with index in name

[wtr-general] Re: How to return cell or row index using watir-webdriver

2011-05-05 Thread Dan Claudiu Pop
Yep, works just fine :) Gracias, Dan On May 5, 12:27 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, May 5, 2011 at 11:23 AM, Dan Claudiu Pop danclaudiu...@gmail.com wrote:      puts @browser.tbody(:index, 0)[index] It returns: #Watir::TableRow:0x1214726. I want to return

[wtr-general] Re: How to Check the Flash Images Using Watir

2011-04-18 Thread Dan Claudiu Pop
Hi, You can switch to Jruby and use Sikuli as a library. I use it myself and works pretty well, even included in my cucumber steps. See details here: http://www.software-testing.com.au/blog/tag/sikuli/ Dan On Apr 17, 8:35 pm, illan prem illan_pr...@yahoo.co.in wrote: Hello Friends, Please

[wtr-general] Re: Compare HTML with HTML in a file

2011-04-11 Thread Dan Claudiu Pop
Useful infos. Thank you, Dan On Apr 10, 11:31 pm, dt_nz david.tay...@sungard.com wrote: # I am using IMAP to get the email body in a string @email = Net::IMAP.new(dest_host, dest_port, dest_ssl) @email.login(dest_user, dest_pass) email_html_string = @email.fetch(@current_msg_id, (BODY[TEXT

<    1   2   3   >