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.
