[wtr-general] Problem with screenshot.save method

2013-05-17 Thread Luis Espla
Hello, I use @browser.screenshot.save file for when I have a problem, but when I use it and I have a Timeout Exception it doesn't work well, because it was waiting for page load totally(This page never load because It has a problem). How can I do for It doesn't wait and capture a snapshoot? Best

[wtr-general] Re: click_no_wait clicks the button but nothing happens

2013-05-17 Thread Super Kevy
So the same code with click opens the modal dialog, but click_no_wait does not? Share your code and relevant html. How are you handling the modal dialog? On Thursday, May 16, 2013 6:10:57 AM UTC-5, Marc Westwood wrote: When clicking on a button using click_no_wait the button turns yellow at

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

2013-05-17 Thread watir webdriver
Thanks experts for your help On Thursday, April 25, 2013 5:34:21 PM UTC+1, watir webdriver wrote: Hi there, In my application,I've to select the last td (which is an img) in table.Can anyone help me with this ? *HTML :* table class=rctable thead tbody tr td a

[wtr-general] Watir-webdriver : How to select an option from the list

2013-05-17 Thread watir webdriver
Hi, In my application I've to select an option from the list.I tried as below but its not selecting the option: @browser.select_list(:name = siteName).select ccfashion HTML code: select id=site onchange=$('input[name=switchToSite]').val(true); $('#switchSiteShopAdminForm').submit();

[wtr-general] Re: Watir-webdriver : How to select an option from the list

2013-05-17 Thread watir webdriver
On Friday, May 17, 2013 4:58:11 PM UTC+1, watir webdriver wrote: Hi, In my application I've to select an option from the list.I tried as below but its not selecting the option: @browser.select_list(:name = siteName).select ccfashion @browser.select_list_element(:name =

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

2013-05-17 Thread Chuck van der Linden
On Thursday, May 16, 2013 6:14:34 AM UTC-7, Dan wrote: It doesn't look like it's just Chrome actually. I got the same results in Firefox. Looks like the stackoverflow answer addresses the issue? If I change from button type of button to input type of button it works like you would

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

2013-05-17 Thread Chuck van der Linden
On Wednesday, May 15, 2013 7:03:22 PM UTC-7, Lonny Eachus wrote: This is a rather urgent issue. I have some whole-page HTML in a database. I would like to get this HTML into Watir for parsing. How can I tell Watir to load this HTML into the DOM? I know I could write the data to a

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

2013-05-17 Thread Željko Filipin
On Fri, May 17, 2013 at 7:41 PM, Chuck van der Linden cvanderlin...@climate.com wrote: IMHO if you are just trying to parse HTML, and not trying to drive a browser, you might be better off to just use Nokogiri ( http://rubygems.org/gems/nokogiri) +1 Željko -- -- Before posting, please

[wtr-general] Re: Watir-webdriver : How to select an option from the list

2013-05-17 Thread Dan
You may need a when_present because if that list is being populated via some other selection or ajax it might not be there when you're trying to select it. @browser.select_list(:name = siteName).when_present.select ccfashion On Friday, May 17, 2013 12:07:53 PM UTC-4, watir webdriver wrote:

[wtr-general] Re: click_no_wait not working

2013-05-17 Thread Chuck van der Linden
On Thursday, May 16, 2013 4:34:56 AM UTC-7, Marc Westwood wrote: I'm having some problems with click_no_wait. I have a button which when clicked displays a modaldialog. I am using click_no_wait when clicking the button the button turns yellow but I am not getting the modal dialog

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

2013-05-17 Thread Chuck van der Linden
On Thursday, May 16, 2013 6:46:09 AM UTC-7, Oscar.Rieken wrote: I think one day we will maybe stop doing other peoples work for them. to me this seems like too simple and with no examples of what they tried. why use your own brain when someone else's is available? OTOH if we insist on such

[wtr-general] Re: Problem with screenshot.save method

2013-05-17 Thread Chuck van der Linden
On Friday, May 17, 2013 3:13:58 AM UTC-7, LuisE wrote: Hello, I use @browser.screenshot.save file for when I have a problem, but when I use it and I have a Timeout Exception it doesn't work well, because it was waiting for page load totally(This page never load because It has a problem).

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

2013-05-17 Thread Chuck van der Linden
On Thursday, May 16, 2013 4:05:17 AM UTC-7, Alex Rodionov wrote: Even more simple browser.table(class: 'rctable').td(index: -1).click Oh nice, did not know that trick Although in his HTML it appears there are multiple things to click in that row, so you might need something between the TD

[wtr-general] Re: Watir-webdriver : How to select an option from the list

2013-05-17 Thread Chuck van der Linden
On Friday, May 17, 2013 10:45:54 AM UTC-7, Dan wrote: You may need a when_present because if that list is being populated via some other selection or ajax it might not be there when you're trying to select it. @browser.select_list(:name = siteName).when_present.select ccfashion +1

[wtr-general] Re: You are using an old or stdlib version of json gem

2013-05-17 Thread Chuck van der Linden
You'd need to be using bundler for a gemfile to make a difference. From other recent postings (and I think an Stack Overflow question) the error message seems to be coming from multi_json what might work is to use a slightly oder version of it. Try this from the command line gem uninstall

[wtr-general] Re: Introducing Watirsome

2013-05-17 Thread Chuck van der Linden
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 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