-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: build atoms with current trunk in selneium #384
base: master
Are you sure you want to change the base?
Conversation
@@ -114,4 +114,4 @@ Z.s=function(a,b,c){var d=w(a);if(!d.documentElement)return null;nc&&hc(d?d.pare | |||
d.createNSResolver?d.createNSResolver(d.documentElement):Z.J,d.evaluate(b,a,e,c,null);throw m;}}catch(m){throw new P(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+m);}};Z.K=function(a,b){if(!a||1!=a.nodeType)throw new P(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element.");}; | |||
Z.o=function(a,b){var c=function(){var d=Z.s(b,a,9);return d?d.singleNodeValue||null:b.selectSingleNode?(d=w(b),d.setProperty&&d.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):null}();null===c||Z.K(c,a);return c}; | |||
Z.j=function(a,b){var c=function(){var d=Z.s(b,a,7);if(d){for(var e=d.snapshotLength,f=[],g=0;g<e;++g)f.push(d.snapshotItem(g));return f}return b.selectNodes?(d=w(b),d.setProperty&&d.setProperty("SelectionLanguage","XPath"),b.selectNodes(a)):[]}();p(c,function(d){Z.K(d,a)});return c};var dd={className:wc,"class name":wc,css:xc,"css selector":xc,relative:Y,id:$c,linkText:X,"link text":X,name:{o:function(a,b){b=x(v(b),"*",null,b);return wa(b,function(c){return Ec(c,"name")==a})},j:function(a,b){b=x(v(b),"*",null,b);return ra(b,function(c){return Ec(c,"name")==a})}},partialLinkText:ad,"partial link text":ad,tagName:ed,"tag name":ed,xpath:Z};function cd(a){for(var b in a)if(a.hasOwnProperty(b))return b;return null} | |||
function bd(a,b){var c=cd(a);if(c){var d=dd[c];if(d&&ha(d.o))return d.o(a[c],b||ic.document)}throw new P(61,"Unsupported locator strategy: "+c);};da("_",function(a,b,c,d){var e=bd,f={};f[a]=b;try{var g;d?g=vc(d.WINDOW):g=window;var h=g;var n;c?n=vc(c.ELEMENT,h.document):n=h.document;var u=e(f,n);var l={status:0,value:sc(u)}}catch(z){l={status:null!==z&&"code"in z?z.code:13,value:{message:z.message}}}return rc(l)});; return this._.apply(null,arguments);}).apply(window, arguments);} | |||
function bd(a,b){var c=cd(a);if(c){var d=dd[c];if(d&&ha(d.o))return d.o(a[c],b||ic.document)}throw new P(61,"Unsupported locator strategy: "+c);};da("_",function(a,b,c,d){var e=bd,f={};f[a]=b;try{var g;d?g=vc(d.WINDOW):g=window;var h=g;var n;c?n=vc(c.ELEMENT,h.document):n=h.document;var u=e(f,n);var l={status:0,value:sc(u)}}catch(z){l={status:null!==z&&"code"in z?z.code:13,value:{message:z.message}}}return rc(l)});; return this._.apply(null,arguments);}).apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or I wondered if we only should modify this file only or can be removed. SeleniumHQ/selenium#12549.
This is a new file added in Selnium 4.11 based atoms in https://github.com/appium/appium-remote-debugger/pull/268/files#diff-d78e75f95db0fc8e13d20f695ad56d938f636bbce81324754640d2a54d657688
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this was more complicated.
appium/appium#18951
appium/appium-xcuitest-driver#1884
SeleniumHQ/selenium#12549
for example when I reverted only this file, a click action caused:
Selenium::WebDriver::Error::UnknownError: An unknown server-side error occurred while processing the command. Original error: Remote debugger error with code 'undefined': TypeError: undefined is not an object (evaluating 'ia.JSON.stringify')
from UnknownError: An unknown server-side error occurred while processing the command. Original error: Remote debugger error with code 'undefined': TypeError: undefined is not an object (evaluating 'ia.JSON.stringify')
Perhaps we should learn more about atoms code..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rules_closure-0.12.0
had no diff.
#383
Not for this, but I saw updated atoms affected JS handling for a website, such as failing to load content after some actions in the atoms. Perhaps we also need to update possible atoms issues as well. (not as this PR)