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" <[email protected]> wrote: > 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 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" <[email protected]> wrote: >> >>> 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 is successfully happen. >>>> >>>> On Mar 17, 2017 8:29 PM, "Super Kevy" <[email protected]> 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" or >>>>> ruby or selenium. >>>>> Example: http://stackoverflow.com/questions/18401890/know-if >>>>> -a-dom-object-is-dead >>>>> Example: http://stackoverflow.com/questions/16396767/firefox >>>>> -bug-with-selenium-cant-access-dead-object >>>>> >>>>> The solution is probably to do a find of the object you are looking >>>>> for after the select step as the dom may have updated a parent node and >>>>> now >>>>> that old object is stale. >>>>> >>>>> >>>>> >>>>> >>>>> On Friday, March 17, 2017 at 9:37:59 AM UTC-5, 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 >>>>>>> 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 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 '2000025' >>>>>>>> where b is just the gross browser object. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Wednesday, March 15, 2017 at 12:47:17 PM UTC-5, Raja gopalan >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> No, this error happens once out of ten times may be >>>>>>>>> >>>>>>>>> On Mar 15, 2017 10:13 PM, "Arik Jones" <[email protected]> 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 list >>>>>>>>>>> >>>>>>>>>>> b.select_list(:id,'PolicyTypeANDL').select_value '2000025' >>>>>>>>>>> >>>>>>>>>>> It's working sometime and it's throwing error some time, >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Error is, >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Uncaught exception: [JavaScript Error: "can't access dead object" >>>>>>>>>>> {file: >>>>>>>>>>> "file:///C:/Users/RAJAGO~1.M/AppData/Local/Temp/webdriver-profile20170315-2040-1lnocuz/extensions/[email protected]/components/synthetic-mouse.js" >>>>>>>>>>> line: 6285}]'[JavaScript Error: "can't access dead object" {file: >>>>>>>>>>> "file:///C:/Users/RAJAGO~1.M/AppData/Local/Temp/webdriver-profile20170315-2040-1lnocuz/extensions/[email protected]/components/synthetic-mouse.js" >>>>>>>>>>> line: 6285}]' when calling method: [wdIMouse::click] >>>>>>>>>>> [remote server] >>>>>>>>>>> file:///C:/Users/RAJAGO~1.M/AppData/Local/Temp/webdriver-profile20170315-2040-1lnocuz/extensions/[email protected]/components/command-processor.js:12109:in >>>>>>>>>>> `WebElement.clickElement' >>>>>>>>>>> [remote server] >>>>>>>>>>> file:///C:/Users/RAJAGO~1.M/AppData/Local/Temp/webdriver-profile20170315-2040-1lnocuz/extensions/[email protected]/components/command-processor.js:12704:in >>>>>>>>>>> `DelayedCommand.prototype.executeInternal_/k' >>>>>>>>>>> [remote server] >>>>>>>>>>> file:///C:/Users/RAJAGO~1.M/AppData/Local/Temp/webdriver-profile20170315-2040-1lnocuz/extensions/[email protected]/components/command-processor.js:12709:in >>>>>>>>>>> `DelayedCommand.prototype.executeInternal_' >>>>>>>>>>> [remote server] >>>>>>>>>>> file:///C:/Users/RAJAGO~1.M/AppData/Local/Temp/webdriver-profile20170315-2040-1lnocuz/extensions/[email protected]/components/command-processor.js:12651:in >>>>>>>>>>> `DelayedCommand.prototype.execute/<' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.2.1/lib/selenium/webdriver/remote/response.rb:69:in >>>>>>>>>>> `assert_ok' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.2.1/lib/selenium/webdriver/remote/response.rb:32:in >>>>>>>>>>> `initialize' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.2.1/lib/selenium/webdriver/remote/http/common.rb:83:in >>>>>>>>>>> `new' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.2.1/lib/selenium/webdriver/remote/http/common.rb:83:in >>>>>>>>>>> `create_response' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.2.1/lib/selenium/webdriver/remote/http/default.rb:107:in >>>>>>>>>>> `request' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.2.1/lib/selenium/webdriver/remote/http/common.rb:61:in >>>>>>>>>>> `call' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.2.1/lib/selenium/webdriver/remote/bridge.rb:665:in >>>>>>>>>>> `raw_execute' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.2.1/lib/selenium/webdriver/remote/bridge.rb:643:in >>>>>>>>>>> `execute' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.2.1/lib/selenium/webdriver/remote/bridge.rb:398:in >>>>>>>>>>> `click_element' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.2.1/lib/selenium/webdriver/common/element.rb:74:in >>>>>>>>>>> `click' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.2.0/lib/watir/elements/element.rb:131:in >>>>>>>>>>> `block in click' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.2.0/lib/watir/elements/element.rb:640:in >>>>>>>>>>> `element_call' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.2.0/lib/watir/elements/element.rb:122:in >>>>>>>>>>> `click' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.2.0/lib/watir/elements/select.rb:158:in >>>>>>>>>>> `click_option' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.2.0/lib/watir/elements/select.rb:141:in >>>>>>>>>>> `block in select_matching' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.2.0/lib/watir/elements/select.rb:141:in >>>>>>>>>>> `each' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.2.0/lib/watir/elements/select.rb:141:in >>>>>>>>>>> `select_matching' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.2.0/lib/watir/elements/select.rb:136:in >>>>>>>>>>> `select_by' >>>>>>>>>>> >>>>>>>>>>> C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.2.0/lib/watir/elements/select.rb:66:in >>>>>>>>>>> `select_value' >>>>>>>>>>> >>>>>>>>>>> C:/Users/rajagopalan.m/RubymineProjects/SeleniumLearning/MyTest1.rb:27:in >>>>>>>>>>> `<top (required)>' >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>> -- >>>>>>>>>> Before posting, please read http://watir.com/support. In short: >>>>>>>>>> search before you ask, be nice. >>>>>>>>>> >>>>>>>>>> [email protected] >>>>>>>>>> http://groups.google.com/group/watir-general >>>>>>>>>> [email protected] >>>>>>>>>> >>>>>>>>>> --- >>>>>>>>>> You received this message because you are subscribed to the >>>>>>>>>> Google Groups "Watir General" group. >>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>>>> send an email to [email protected]. >>>>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>>>> >>>>>>>>> -- >>>>> -- >>>>> Before posting, please read http://watir.com/support. In short: >>>>> search before you ask, be nice. >>>>> >>>>> [email protected] >>>>> http://groups.google.com/group/watir-general >>>>> [email protected] >>>>> >>>>> --- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Watir General" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>> -- >>> Before posting, please read http://watir.com/support. In short: search >>> before you ask, be nice. >>> >>> [email protected] >>> http://groups.google.com/group/watir-general >>> [email protected] >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Watir General" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > [email protected] > http://groups.google.com/group/watir-general > [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
