Watir and Edge Chromium - Getting an error

303 views
Skip to first unread message

Champ

unread,
Sep 1, 2020, 1:46:44 PM9/1/20
to Watir General
I am using the below code to start using Watir-webdriver with Edge Chromium browser. I have the right versions and drivers. It launches the browser and opens the url.
But I get the following error when I try to interact with the browser(set, .present? etc.)

Any pointers/fixes are really appreciated.

C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/response.rb:72:in `assert_ok': javascript error: a.getAttributeNode is not a function (Selenium::WebDriver::Error::JavascriptError)

Here is the code:

require 'watir'
require 'selenium-webdriver'

Selenium::WebDriver::Edge::Service.driver_path = "c:/drivers/msedgedriver.exe"

$browser = Watir::Browser.new :edge, "edgeOptions" => {"args" => [ "--start-maximized" ], "w3c" => false}

$browser.goto("https://google.com")

$browser.text_field(:name=>"q").set("watir")

===============

Full stacktrace below:

>ruby google_edge.rb

C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/response.rb:72:in `assert_ok': javascript error: a.getAttributeNode is not a function (Selenium::WebDriver::Error::JavascriptError)

  (Session info: MicrosoftEdge=85.0.564.44)

  (Driver info: msedgedriver=85.0.564.44 (3b106b45f8e7cd4c3e2aac5a6ba411645c16df60),platform=Windows NT 10.0.18363 x86_64)

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/response.rb:34:in `initialize'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/http/common.rb:88:in `new'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/http/common.rb:88:in `create_response'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/http/default.rb:114:in `request'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/http/common.rb:64:in `call'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/bridge.rb:167:in `execute'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/w3c/bridge.rb:567:in `execute'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/w3c/bridge.rb:305:in `execute_script'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/atoms.rb:32:in `execute_atom'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/w3c/bridge.rb:476:in `element_attribute'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/common/element.rb:116:in `attribute'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/elements/element.rb:315:in `block in attribute_value'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/elements/element.rb:804:in `element_call'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/elements/element.rb:315:in `attribute_value'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/attribute_helper.rb:74:in `block in define_boolean_attribute'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/elements/element.rb:719:in `wait_for_writable'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/elements/element.rb:838:in `check_condition'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/elements/element.rb:802:in `element_call'

from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/user_editable.rb:10:in `set'

from google_edge.rb:8:in `<main>'

>Exit code: 1



Titus Fortner

unread,
Sep 2, 2020, 9:40:20 AM9/2/20
to watir-general
Is there a reason you are setting w3c to false? (if you are testing on Chromium > 75 you should be using w3c)

Try setting w3c to true, and if it doesn't work, try running it with Chrome. If things are still failing, we'll have to figure out the right bug report for the chromedriver/chromium teams.

--
--
Before posting, please read https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
In short: search before you ask, be nice.
 
watir-...@googlegroups.com
http://groups.google.com/group/watir-general
watir-genera...@googlegroups.com
---
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 watir-genera...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/watir-general/83cdcdf1-83cb-4190-bd2c-2a4be4a6f78dn%40googlegroups.com.

Champ

unread,
Sep 2, 2020, 10:18:19 AM9/2/20
to Watir General
Thank you for the response. This works fine on chrome browser with w3c set to true.

However, on Edge chromium if I set W3C to true, I get this error. It looks like a bug in Edge driver?

Backtrace:: unknown command: Cannot call non W3C standard command while in W3C mode (Selenium::WebDriver::Error::UnknownCommandError)

from Ordinal0 [0x00007FF66AAB8F72+4099954]
from Ordinal0 [0x00007FF66A98E439+2876473]
from Ordinal0 [0x00007FF66A800227+1245735]
from Ordinal0 [0x00007FF66A757300+553728]
from Ordinal0 [0x00007FF66A75824E+557646]
from Ordinal0 [0x00007FF66A9AAA66+2992742]
from GetHandleVerifier [0x00007FF66ABFB5D3+1202179]
from GetHandleVerifier [0x00007FF66AC10371+1287585]
from GetHandleVerifier [0x00007FF66ABFC227+1205335]
from Ordinal0 [0x00007FF66A99F3A1+2945953]
from Ordinal0 [0x00007FF66A9AC8A9+3000489]
from Ordinal0 [0x00007FF66A9C14D8+3085528]
from BaseThreadInitThunk [0x00007FFD1ED07BD4+20]
from RtlUserThreadStart [0x00007FFD1F36CE51+33]
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/response.rb:72:in `assert_ok'

Titus Fortner

unread,
Sep 2, 2020, 10:28:24 AM9/2/20
to watir-general
No, I think Google is just being more backward compatible right now, which isn't a bug for microsoft, but for the software calling a bad endpoint. So it could be a Watir Bug.
Can you turn on the Selenium logging and show me the full log/stacktrace for the offending section?
`Watir.logger.selenium = :info`




Champ

unread,
Sep 2, 2020, 10:37:02 AM9/2/20
to Watir General
Here is the stacktrace with selenium logging ON.

>ruby google_edge.rb
2020-09-02 10:32:12 INFO Selenium -> POST session
2020-09-02 10:32:12 INFO Selenium    >>> http://127.0.0.1:17556/session | {"desiredCapabilities":{"browserName":"MicrosoftEdge","version":"","platform":"WINDOWS","javascriptEnabled":false,"cssSelectorsEnabled":false,"takesScreenshot":false,"nativeEvents":false,"rotatable":false,"edgeOptions":{"args":["--start-maximized"],"w3c":true}},"capabilities":{"firstMatch":[{"browserName":"MicrosoftEdge"}]}}
2020-09-02 10:32:15 INFO Selenium <- {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"msedge","browserVersion":"85.0.564.44","ms:edgeOptions":{"debuggerAddress":"localhost:55594"},"msedge":{"msedgedriverVersion":"85.0.564.44 (3b106b45f8e7cd4c3e2aac5a6ba411645c16df60)","userDataDir":"C:\\Users\\abcd\\AppData\\Local\\Temp\\scoped_dir7340_637088237"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:virtualAuthenticators":true},"sessionId":"42611dc953d38632f3646f4e14ccc088"}}
2020-09-02 10:32:15 INFO Selenium Detected W3C dialect.
2020-09-02 10:32:15 INFO Selenium Forcing W3C dialect.
2020-09-02 10:32:15 INFO Selenium -> POST session/42611dc953d38632f3646f4e14ccc088/url
2020-09-02 10:32:17 INFO Selenium <- {"value":null}
2020-09-02 10:32:17 INFO Selenium -> POST session/42611dc953d38632f3646f4e14ccc088/element
2020-09-02 10:32:17 INFO Selenium    >>> http://127.0.0.1:17556/session/42611dc953d38632f3646f4e14ccc088/element | {"using":"xpath","value":".//*[local-name()='input'][not(@type) or (translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')!=translate('file','ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ') and translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')!=translate('radio','ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ') and translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')!=translate('checkbox','ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ') and translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')!=translate('submit','ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ') and translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')!=translate('reset','ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ') and translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')!=translate('image','ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ') and translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')!=translate('button','ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ') and translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')!=translate('hidden','ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ') and translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')!=translate('range','ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ') and translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')!=translate('color','ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ') and translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')!=translate('date','ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ') and translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')!=translate('datetime-local','ABCDEFGHIJKLMNOPQRSTUVWXYZÀà ÂÃÄÅÆÇÈÉÊËÌà Îà à ÑÒÓÔÕÖØÙÚÛÜà ÞŸŽŠŒ','abcdefghijklmnopqrstuvwxyzà áâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ'))][@name='q']"}
2020-09-02 10:32:17 INFO Selenium <- {"value":{"element-6066-11e4-a52e-4f735466cecf":"4c9dbc40-2130-46b7-a477-8446b75a4807"}}
2020-09-02 10:32:17 INFO Selenium -> GET session/42611dc953d38632f3646f4e14ccc088/element/4c9dbc40-2130-46b7-a477-8446b75a4807/enabled
2020-09-02 10:32:17 INFO Selenium <- {"value":true}
2020-09-02 10:32:17 INFO Selenium Using script for :getAttribute of readOnly
2020-09-02 10:32:17 INFO Selenium -> POST session/42611dc953d38632f3646f4e14ccc088/execute
2020-09-02 10:32:17 INFO Selenium    >>> http://127.0.0.1:17556/session/42611dc953d38632f3646f4e14ccc088/execute | {"script":"return (function(){return function(){var d=this;function f(a){return\"string\"==typeof a}function h(a,b){function e(){}e.prototype=b.prototype;a.c=b.prototype;a.prototype=new e;a.prototype.constructor=a;a.b=function(a,e,m){for(var c=Array(arguments.length-2),g=2;g<arguments.length;g++)c[g-2]=arguments[g];return b.prototype[e].apply(a,c)}};function k(a,b){this.code=a;this.a=l[a]||n;this.message=b||\"\";a=this.a.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/g,\"\")});b=a.length-5;if(0>b||a.indexOf(\"Error\",b)!=b)a+=\"Error\";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||\"\"}h(k,Error);var n=\"unknown error\",l={15:\"element not selectable\",11:\"element not visible\"};l[31]=n;l[30]=n;l[24]=\"invalid cookie domain\";l[29]=\"invalid element coordinates\";l[12]=\"invalid element state\";l[32]=\"invalid selector\";\nl[51]=\"invalid selector\";l[52]=\"invalid selector\";l[17]=\"javascript error\";l[405]=\"unsupported operation\";l[34]=\"move target out of bounds\";l[27]=\"no such alert\";l[7]=\"no such element\";l[8]=\"no such frame\";l[23]=\"no such window\";l[28]=\"script timeout\";l[33]=\"session not created\";l[10]=\"stale element reference\";l[21]=\"timeout\";l[25]=\"unable to set cookie\";l[26]=\"unexpected alert open\";l[13]=n;l[9]=\"unknown command\";k.prototype.toString=function(){return this.name+\": \"+this.message};var p;a:{var q=d.navigator;if(q){var r=q.userAgent;if(r){p=r;break a}}p=\"\"}function t(a){return-1!=p.indexOf(a)};function aa(a,b){for(var e=a.length,c=f(a)?a.split(\"\"):a,g=0;g<e;g++)g in c&&b.call(void 0,c[g],g,a)};function u(){return t(\"iPhone\")&&!t(\"iPod\")&&!t(\"iPad\")};function v(){return(t(\"Chrome\")||t(\"CriOS\"))&&!t(\"Edge\")};var w=t(\"Opera\"),x=t(\"Trident\")||t(\"MSIE\"),z=t(\"Edge\"),A=t(\"Gecko\")&&!(-1!=p.toLowerCase().indexOf(\"webkit\")&&!t(\"Edge\"))&&!(t(\"Trident\")||t(\"MSIE\"))&&!t(\"Edge\"),ba=-1!=p.toLowerCase().indexOf(\"webkit\")&&!t(\"Edge\");function B(){var a=d.document;return a?a.documentMode:void 0}var C;\na:{var D=\"\",E=function(){var a=p;if(A)return/rv:([^\\);]+)(\\)|;)/.exec(a);if(z)return/Edge\\/([\\d\\.]+)/.exec(a);if(x)return/\\b(?:MSIE|rv)[: ]([^\\);]+)(\\)|;)/.exec(a);if(ba)return/WebKit\\/(\\S+)/.exec(a);if(w)return/(?:Version)[ \\/]?(\\S+)/.exec(a)}();E&&(D=E?E[1]:\"\");if(x){var F=B();if(null!=F&&F>parseFloat(D)){C=String(F);break a}}C=D}var G;var H=d.document;G=H&&x?B()||(\"CSS1Compat\"==H.compatMode?parseInt(C,10):5):void 0;var ca=t(\"Firefox\"),da=u()||t(\"iPod\"),ea=t(\"iPad\"),I=t(\"Android\")&&!(v()||t(\"Firefox\")||t(\"Opera\")||t(\"Silk\")),fa=v(),J=t(\"Safari\")&&!(v()||t(\"Coast\")||t(\"Opera\")||t(\"Edge\")||t(\"Silk\")||t(\"Android\"))&&!(u()||t(\"iPad\")||t(\"iPod\"));function K(a){return(a=a.exec(p))?a[1]:\"\"}(function(){if(ca)return K(/Firefox\\/([0-9.]+)/);if(x||z||w)return C;if(fa)return u()||t(\"iPad\")||t(\"iPod\")?K(/CriOS\\/([0-9.]+)/):K(/Chrome\\/([0-9.]+)/);if(J&&!(u()||t(\"iPad\")||t(\"iPod\")))return K(/Version\\/([0-9.]+)/);if(da||ea){var a=/Version\\/(\\S+).*Mobile\\/(\\S+)/.exec(p);if(a)return a[1]+\".\"+a[2]}else if(I)return(a=K(/Android\\s+([0-9.]+)/))?a:K(/Version\\/([0-9.]+)/);return\"\"})();var L,M=function(){if(!A)return!1;var a=d.Components;if(!a)return!1;try{if(!a.classes)return!1}catch(g){return!1}var b=a.classes;a=a.interfaces;var e=b[\"@mozilla.org/xpcom/version-comparator;1\"].getService(a.nsIVersionComparator),c=b[\"@mozilla.org/xre/app-info;1\"].getService(a.nsIXULAppInfo).version;L=function(a){e.compare(c,\"\"+a)};return!0}(),N=x&&!(8<=Number(G)),ha=x&&!(9<=Number(G));I&&M&&L(2.3);I&&M&&L(4);J&&M&&L(6);var ia={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},O={IMG:\" \",BR:\"\\n\"};function P(a,b,e){if(!(a.nodeName in ia))if(3==a.nodeType)e?b.push(String(a.nodeValue).replace(/(\\r\\n|\\r|\\n)/g,\"\")):b.push(a.nodeValue);else if(a.nodeName in O)b.push(O[a.nodeName]);else for(a=a.firstChild;a;)P(a,b,e),a=a.nextSibling};function Q(a,b){b=b.toLowerCase();return\"style\"==b?ja(a.style.cssText):N&&\"value\"==b&&R(a,\"INPUT\")?a.value:ha&&!0===a[b]?String(a.getAttribute(b)):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var ka=/[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)/;\nfunction ja(a){var b=[];aa(a.split(ka),function(a){var c=a.indexOf(\":\");0<c&&(a=[a.slice(0,c),a.slice(c+1)],2==a.length&&b.push(a[0].toLowerCase(),\":\",a[1],\";\"))});b=b.join(\"\");return b=\";\"==b.charAt(b.length-1)?b:b+\";\"}function S(a,b){N&&\"value\"==b&&R(a,\"OPTION\")&&null===Q(a,\"value\")?(b=[],P(a,b,!1),a=b.join(\"\")):a=a[b];return a}function R(a,b){b&&\"string\"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}\nfunction T(a){return R(a,\"OPTION\")?!0:R(a,\"INPUT\")?(a=a.type.toLowerCase(),\"checkbox\"==a||\"radio\"==a):!1};var la={\"class\":\"className\",readonly:\"readOnly\"},U=\"allowfullscreen allowpaymentrequest allowusermedia async autofocus autoplay checked compact complete controls declare default defaultchecked defaultselected defer disabled ended formnovalidate hidden indeterminate iscontenteditable ismap itemscope loop multiple muted nohref nomodule noresize noshade novalidate nowrap open paused playsinline pubdate readonly required reversed scoped seamless seeking selected truespeed typemustmatch willvalidate\".split(\" \");function V(a,b){var e=null,c=b.toLowerCase();if(\"style\"==c)return(e=a.style)&&!f(e)&&(e=e.cssText),e;if((\"selected\"==c||\"checked\"==c)&&T(a)){if(!T(a))throw new k(15,\"Element is not selectable\");b=\"selected\";e=a.type&&a.type.toLowerCase();if(\"checkbox\"==e||\"radio\"==e)b=\"checked\";return S(a,b)?\"true\":null}var g=R(a,\"A\");if(R(a,\"IMG\")&&\"src\"==c||g&&\"href\"==c)return(e=Q(a,c))&&(e=S(a,c)),e;if(\"spellcheck\"==c){e=Q(a,c);if(null!==e){if(\"false\"==e.toLowerCase())return\"false\";if(\"true\"==e.toLowerCase())return\"true\"}return S(a,\nc)+\"\"}g=la[b]||b;a:if(f(U))c=f(c)&&1==c.length?U.indexOf(c,0):-1;else{for(var m=0;m<U.length;m++)if(m in U&&U[m]===c){c=m;break a}c=-1}if(0<=c)return(e=null!==Q(a,b)||S(a,g))?\"true\":null;try{var y=S(a,g)}catch(ma){}(c=null==y)||(c=typeof y,c=\"object\"==c&&null!=y||\"function\"==c);c?e=Q(a,b):e=y;return null!=e?e.toString():null}var W=[\"_\"],X=d;W[0]in X||!X.execScript||X.execScript(\"var \"+W[0]);\nfor(var Y;W.length&&(Y=W.shift());){var Z;if(Z=!W.length)Z=void 0!==V;Z?X[Y]=V:X[Y]&&X[Y]!==Object.prototype[Y]?X=X[Y]:X=X[Y]={}};; return this._.apply(null,arguments);}.apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);}\n).apply(null, arguments)","args":[{"element-6066-11e4-a52e-4f735466cecf":"4c9dbc40-2130-46b7-a477-8446b75a4807"},"readOnly"]}
Backtrace:: unknown command: Cannot call non W3C standard command while in W3C mode (Selenium::WebDriver::Error::UnknownCommandError)
from Ordinal0 [0x00007FF66AAB8F72+4099954]
from Ordinal0 [0x00007FF66A98E439+2876473]
from Ordinal0 [0x00007FF66A800227+1245735]
from Ordinal0 [0x00007FF66A757300+553728]
from Ordinal0 [0x00007FF66A75824E+557646]
from Ordinal0 [0x00007FF66A9AAA66+2992742]
from GetHandleVerifier [0x00007FF66ABFB5D3+1202179]
from GetHandleVerifier [0x00007FF66AC10371+1287585]
from GetHandleVerifier [0x00007FF66ABFC227+1205335]
from Ordinal0 [0x00007FF66A99F3A1+2945953]
from Ordinal0 [0x00007FF66A9AC8A9+3000489]
from Ordinal0 [0x00007FF66A9C14D8+3085528]
from BaseThreadInitThunk [0x00007FFD1ED07BD4+20]
from RtlUserThreadStart [0x00007FFD1F36CE51+33]
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/response.rb:72:in `assert_ok'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/response.rb:34:in `initialize'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/http/common.rb:88:in `new'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/http/common.rb:88:in `create_response'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/http/default.rb:114:in `request'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/http/common.rb:64:in `call'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/bridge.rb:167:in `execute'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/w3c/bridge.rb:567:in `execute'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/w3c/bridge.rb:305:in `execute_script'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/atoms.rb:32:in `execute_atom'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/remote/w3c/bridge.rb:476:in `element_attribute'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/common/element.rb:116:in `attribute'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/elements/element.rb:315:in `block in attribute_value'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/elements/element.rb:804:in `element_call'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/elements/element.rb:315:in `attribute_value'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/attribute_helper.rb:74:in `block in define_boolean_attribute'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/elements/element.rb:719:in `wait_for_writable'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/elements/element.rb:838:in `check_condition'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/elements/element.rb:802:in `element_call'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/watir-6.17.0/lib/watir/user_editable.rb:10:in `set'
from google_edge.rb:9:in `<main>'
2020-09-02 10:32:17 INFO Selenium <- {"value":{"error":"unknown command","message":"unknown command: Cannot call non W3C standard command while in W3C mode","stacktrace":"Backtrace:\n\tOrdinal0 [0x00007FF66AAB8F72+4099954]\n\tOrdinal0 [0x00007FF66A98E439+2876473]\n\tOrdinal0 [0x00007FF66A800227+1245735]\n\tOrdinal0 [0x00007FF66A757300+553728]\n\tOrdinal0 [0x00007FF66A75824E+557646]\n\tOrdinal0 [0x00007FF66A9AAA66+2992742]\n\tGetHandleVerifier [0x00007FF66ABFB5D3+1202179]\n\tGetHandleVerifier [0x00007FF66AC10371+1287585]\n\tGetHandleVerifier [0x00007FF66ABFC227+1205335]\n\tOrdinal0 [0x00007FF66A99F3A1+2945953]\n\tOrdinal0 [0x00007FF66A9AC8A9+3000489]\n\tOrdinal0 [0x00007FF66A9C14D8+3085528]\n\tBaseThreadInitThunk [0x00007FFD1ED07BD4+20]\n\tRtlUserThreadStart [0x00007FFD1F36CE51+33]\n"}}
>Exit code: 1


Titus Fortner

unread,
Sep 2, 2020, 2:50:47 PM9/2/20
to Watir General
Ah, ok, this is definitely a bug. Selenium 3.x is not properly handling the new chromium edge.

You can file an issue with this information on Selenium github tracker.

The best way forward right now is to update to Selenium 4 alpha.
4.0.0.alpha6 requires you to use `:edge_chrome` instead of just `:edge`; this will change whenever we release 4.0.0.alpha7

Titus Fortner

unread,
Sep 2, 2020, 2:52:56 PM9/2/20
to Watir General
Oh, except I need to release a version of Watir that allows using Selenium 4alpha

Champ

unread,
Sep 2, 2020, 7:54:27 PM9/2/20
to Watir General
Thank you for the update. 

Champ

unread,
Sep 8, 2020, 1:25:52 PM9/8/20
to Watir General
Is there a plan to release new version of watir that allows using Selenium 4alpha soon?

On Wednesday, September 2, 2020 at 2:52:56 PM UTC-4 titusf...@gmail.com wrote:

Titus Fortner

unread,
Sep 8, 2020, 1:59:32 PM9/8/20
to watir-general
Yes, things just got tricky with a dev dependency I wanted to fix first before releasing. I'll bump this up in priority. Thanks. 

Champ

unread,
Nov 25, 2020, 12:02:45 PM11/25/20
to Watir General
Hello, is there any update on this?
Reply all
Reply to author
Forward
0 new messages