Re: [wtr-general] Re: Test Highcharts with Watir Webdriver

2013-06-17 Thread Željko Filipin
On Fri, Jun 14, 2013 at 8:55 PM, He Bing Lin peter...@gmail.com wrote: here is the image link i.tinyuploads.com/bfRq4p.jpg It would help more if you could point us to a page with example chart. Željko -- https://leanpub.com/watirbook -- -- Before posting, please read

Re: [wtr-general] Re: Test Highcharts with Watir Webdriver

2013-06-17 Thread Oscar Rieken
the easiest way is to ask the dev's building the chart to add an id to the sections in the data json this gets passed over to the objects in the graph when its displayed then you can just locate the objects on the graph by their id On Mon, Jun 17, 2013 at 7:17 AM, Željko Filipin

[wtr-general] Radio buttons with watir-webdriver

2013-06-17 Thread fabian . arocena
Guys, I have this html : input type=radio name=Server value=1 onclick=displayHiddenText();setPageChanged(true); id=Server_0 label for=Server_0Yes/label which would be the right ruby code with watir-webdriver to set the radio button to Yes? I've tried the examples at:

[wtr-general] Re: Radio buttons with watir-webdriver

2013-06-17 Thread Dan
Please show us the code that you tried. On Monday, June 17, 2013 11:26:19 AM UTC-4, fabian@gmail.com wrote: Guys, I have this html : input type=radio name=Server value=1 onclick=displayHiddenText();setPageChanged(true); id=Server_0 label for=Server_0Yes/label which would be the

[wtr-general] Re: Radio buttons with watir-webdriver

2013-06-17 Thread fabian . arocena
radio = browser.label(:for = 'Server_0').parent.radio.set radio = browser.label(:name = 'Server').parent.radio.set radio = browser.label(:text= 'Server').parent.radio :value 'Yes' etc El lunes, 17 de junio de 2013 12:32:54 UTC-3, Dan escribió: Please show us the code that you tried. On

[wtr-general] Re: Radio buttons with watir-webdriver

2013-06-17 Thread Dan
I think you might be overcomplicating things, but if you want to work back up from the label you can do this: b.label(:text = 'Yes').parent.radio.set Otherwise you can just do this: b.radio(:id = Server_0).set or b.radio(:name = Server).set On Monday, June 17, 2013 11:39:31 AM UTC-4,

Re: [wtr-general] Re: Radio buttons with watir-webdriver

2013-06-17 Thread Fabian Arocena
I thought b.radio was with watir, not watir-webdriver ... I'm just following the examples n the webpage On Mon, Jun 17, 2013 at 12:54 PM, Dan dfra...@gmail.com wrote: I think you might be overcomplicating things, but if you want to work back up from the label you can do this: b.label(:text

Re: [wtr-general] Re: Radio buttons with watir-webdriver

2013-06-17 Thread Dan
If you want to follow the example on the page more closely it would be like this for your html: radio = b.label(:text= 'Yes').parent.radio :value = '1' = #Watir::Radio:0x10ece2890 located=false selector={:type=radio, :value=1, :tag_name=input} radio.set = nil On Monday, June 17, 2013

Re: [wtr-general] Re: Radio buttons with watir-webdriver

2013-06-17 Thread fabian . arocena
Dan, b.radio(:id = Server_0).set Worked like magic! Thanks a million, fabian El lunes, 17 de junio de 2013 13:13:12 UTC-3, Dan escribió: If you want to follow the example on the page more closely it would be like this for your html: radio = b.label(:text= 'Yes').parent.radio :value =

[wtr-general] Re: Test Highcharts with Watir Webdriver

2013-06-17 Thread He Bing Lin
Any alternative solution as to adding id to path? On Friday, June 14, 2013 1:56:13 PM UTC-4, He Bing Lin wrote: i'm writing Ruby in Watir webdriver and i would like to test highcharts accuracy of data presented in comparison of a CSV file (which i already read). How can i read the

[wtr-general] Complicated href Link watir-webdriver

2013-06-17 Thread fabian . arocena
Guys, How would you locate this HREF element ? a href=javascript:execStep(2);PopWiz('../serverRequest.aspx?uid=ua267202bndl=745=reqid=94222347');Click here/a I'm able to obtain all parameters above except one, so I can't build the complete link... Can I use a regular expression ? Any

[wtr-general] Re: Complicated href Link watir-webdriver

2013-06-17 Thread fabian . arocena
Never mind guys, I've figured it out. Fabian El lunes, 17 de junio de 2013 15:47:28 UTC-3, fabian@gmail.com escribió: Guys, How would you locate this HREF element ? a href=javascript:execStep(2);PopWiz('../serverRequest.aspx?uid=ua267202bndl=745=reqid=94222347');Click here/a I'm