Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-18 Thread David Drake
It does: http://www.rubydoc.info/gems/watir/Watir/Select#disabled%3F-instance_method On Friday, March 17, 2017 at 9:17:29 AM UTC-7, Super Kevy wrote: > > The second link in that thread mentioned the parent object. W3schools is > a great place to learn how html works. > > Example: > puts ' Is s

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Super Kevy
The second link in that thread mentioned the parent object. W3schools is a great place to learn how html works. Example: puts ' Is select enabled? ' puts b.select_list(:id,'PolicyTypeANDL').attribute_value("disabled").to_s I think there used to be an .enabled? method at one time, don't know

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Raja gopalan
The example you have given is different in which option is disabled but in my case after the selection is done , complete select list would be disabled. On Mar 17, 2017 9:00 PM, "Super Kevy" wrote: > Is that the way it works manually? > > Inputs can be disabled. > For example, https://www.w3scho

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Raja gopalan
Yes it's the way it works manually and that's an expected behavior Actually I have resolved the problem for the time being like b.select_list.select 'something' rescue "" On Mar 17, 2017 9:00 PM, "Super Kevy" wrote: > Is that the way it works manually? > > Inputs can be disabled. > For example

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Super Kevy
Is that the way it works manually? Inputs can be disabled. For example, https://www.w3schools.com/tags/att_option_disabled.asp https://www.w3schools.com/tags/att_select_disabled.asp On Friday, March 17, 2017 at 10:22:05 AM UTC-5, Raja gopalan wrote: > > Ok another problem I see here i

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Raja gopalan
Ok another problem I see here is after the selection, select list is getting disabled, once after the selection you can't do it again. On Mar 17, 2017 8:46 PM, "Super Kevy" wrote: > That would be a logical indicator. If the page refreshes object handles > would likely change. > Good luck. Let

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Super Kevy
That would be a logical indicator. If the page refreshes object handles would likely change. Good luck. Let us know your success. On Friday, March 17, 2017 at 10:13:08 AM UTC-5, Raja gopalan wrote: > > It refreshes the page after the selection, might that be the reason? > > Note : selection

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Raja gopalan
It refreshes the page after the selection, might that be the reason? Note : selection is successfully happen. On Mar 17, 2017 8:29 PM, "Super Kevy" wrote: > So can't access dead object - indicates the object is no longer valid . > Try google search with subject "can't access dead object DOM"

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Raja gopalan
No but it refreshes the page . On Mar 17, 2017 8:08 PM, "Lucas Tierney" wrote: > Is the select causing a page navigation after selecting the option? > > On Friday, March 17, 2017 at 8:44:35 AM UTC-5, Raja gopalan wrote: >> >> Actually the option is selected successfully, but immediately after th

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Super Kevy
So can't access dead object - indicates the object is no longer valid . Try google search with subject "can't access dead object DOM" or ruby or selenium. Example: http://stackoverflow.com/questions/18401890/know-if-a-dom-object-is-dead Example: http://stackoverflow.com/questions/16396767/

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Lucas Tierney
Is the select causing a page navigation after selecting the option? On Friday, March 17, 2017 at 8:44:35 AM UTC-5, Raja gopalan wrote: > > Actually the option is selected successfully, but immediately after the > selection, this error was thrown and program was terminated. > > On Thursday, March

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Raja gopalan
Actually the option is selected successfully, but immediately after the selection, this error was thrown and program was terminated. On Thursday, March 16, 2017 at 11:20:26 PM UTC+5:30, Super Kevy wrote: > > So the error is intermittent, 1 of 10 failures. > Your select may need to be attached to

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-16 Thread Super Kevy
So the error is intermittent, 1 of 10 failures. Your select may need to be attached to a parent object which has refreshed. ( a div, a table, an element, who knows) This is based on the assumption: b.select_list(:id,'PolicyTypeANDL').select_value '225' where b is just the gross browser obje

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-15 Thread Raja gopalan
No, this error happens once out of ten times may be On Mar 15, 2017 10:13 PM, "Arik Jones" wrote: > Are you loading any firefox plugins that change the state of the DOM? > > On Wednesday, March 15, 2017 at 3:24:23 AM UTC-4, Raja gopalan wrote: >> >> I have written the code to select the select l

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-15 Thread Raja gopalan
If I run 10 times this problem happens for once. On Mar 15, 2017 11:15 PM, "Lucas Tierney" wrote: > I don't suppose this select is in an iframe? The 'dead object' issue has > been discussed lately but it was due to frame contexts. > > On Wednesday, March 15, 2017 at 2:24:23 AM UTC-5, Raja gopala

[wtr-general] Re: Error while Selecting select_list by Value

2017-03-15 Thread Lucas Tierney
I don't suppose this select is in an iframe? The 'dead object' issue has been discussed lately but it was due to frame contexts. On Wednesday, March 15, 2017 at 2:24:23 AM UTC-5, Raja gopalan wrote: > > I have written the code to select the select list > > b.select_list(:id,'PolicyTypeANDL').sele

[wtr-general] Re: Error while Selecting select_list by Value

2017-03-15 Thread Arik Jones
Are you loading any firefox plugins that change the state of the DOM? On Wednesday, March 15, 2017 at 3:24:23 AM UTC-4, Raja gopalan wrote: > > I have written the code to select the select list > > b.select_list(:id,'PolicyTypeANDL').select_value '225' > > It's working sometime and it's throwi