[wtr-general] Re: Problems selecting an item in a list

2013-05-08 Thread Marc Westwood
Yes it works in terms of its clicks on the item in the select list because I can see the item in the list go yellow when it clicks but while is clicks it does not actually select the item. I can't see anything about a onclick mentioned. I've tried .click fire_event('onclick') mousedown mouseu

[wtr-general] trying to select the text from a link

2013-05-08 Thread knoll2roll
Hi guys, I am having a bit of trouble. Below is the HTML that is confusing me... Album This is a link on the page, and I am trying to select the link. There are a number of different links on the page so to make sure I am selecting the correct link I want to use 'Album' as my identifier. I

Re: [wtr-general] trying to select the text from a link

2013-05-08 Thread Željko Filipin
On Wed, May 8, 2013 at 12:33 PM, wrote: > I have tried @b.link(:text, 'Album' Try this: browser.a(:text => /Album/).click To find out what Watir thinks the link text is, try this: browser.a(:text => /Album/).text Željko -- https://leanpub.com/watirbook -- -- Before posting, please read h

Re: [wtr-general] trying to select the text from a link

2013-05-08 Thread knoll2roll
Many thanks got your reply. That is awesome It works... All I had to do was change it to, @browser.a(:text => /Album/).when_present.click and it works like a dream. Never knew we could do stuff like that so really do appreciate your help. Knoll On Wednesday, 8 May 2013 11:36:36 UTC+1, Željko F

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

2013-05-08 Thread LuisE
I have the same proble, did anyone fix it? Best Regards El jueves, 17 de enero de 2013 19:52:33 UTC+1, johnssn escribió: > Awesome! Thanks... > > -- > *From:* Dan > > *To:* watir-...@googlegroups.com > *Cc:* John Fitisoff > > *Sent:* Thursday, January 17, 2013 10:4

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

2013-05-08 Thread Ankita
Hi Not sure if this is something to get a screen shot.. but I tried adding a screen shot folder to the UI test folder where I put in all the tests and then adding this line to the places where I would like to get the screen shotsolves my problem broswer.driver.save_screenshot("uitest/screenshot/_

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

2013-05-08 Thread Ankita
Hi Not sure if this is something to get a screen shot.. but I tried adding a screen shot folder to the UI test folder where I put in all the tests and then adding this line to the places where I would like to get the screen shotsolves my problem broswer.driver.save_screenshot("uitest/screenshot/_