Closed MartynasITT closed 2 years ago
@MartynasITT, thank you for creating this issue. We will troubleshoot it as soon as we can.
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
Hi, @MartynasITT. Please follow the issue template, we need more information to reproduce the issue.
Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.
Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.
Reply to this issue when all information is provided, thank you.
protected By stateDropdown = By.xpath("//div[@aria-label='form-select-item']//select");
Same problem with IOS devices too so this problem is exclusive to selenium 4.0 because on latest Selenium 3 version it works fine.
We need a complete script to reproduce the issue. Please provide a concise reproducible test case, that includes the page required to execute the scenario (a sample page or a public site).
A screenshot and one line of code is not enough for us to troubleshoot this. It is ok if you cannot share the original code and site, it does not need to be the exact same code, just something we can use to reproduce the issue.
Also, you might want to contact BrowserStack customer support, perhaps they have more hints for you.
This sounds a lot like the dependency issue we've seen before. Make sure that all libraries, including appium, are compatible with Selenium 4.
Anything incompatible here?
The incompatibility Titus was referring to is when sometimes Selenium 4 is mixed with Appium < 1.8.0, which does not seem to be the case in your pom.
So, please share a way to reproduce the issue.
Hi Diego, before you guys even try to reproduce this, I've asked Marty to try it out on his local machine with both Selenium 3 and 4. Also I found this. Kinda looks similar (for Chrome though), can you have a look?
It is not the same because the link talks about an issue with Chrome, and this issue is about IE. Also, the IEServer was one of the first implementations to support W3C WebDriver.
Looking for a stack trace on this error.
oops closed by accident
The only place that getElementDomAttribute
is even defined is in DriverCommand
class, so the error has to be coming from AbstractHttpCommandCodec
class's encode
method. It can't find getElementDomAttribute
in the nameToSpec
Map. But this gets loaded with W3CHttpCommandCodec
, so you'd have to somehow not be in w3c mode.
Which, I guess makes sense if you are sending a non-w3c compliant set of capabilities and Java pushes you back to JWP.
Look in your console, and you should see:
INFO: Detected dialect: W3C
Take a look at our documentation for Updating Capabilities for use with Selenium 4.
I do get INFO: Detected dialect: OSS I tried to change to example from https://www.selenium.dev/documentation/webdriver/getting_started/upgrade_to_selenium_4/#capabilities But it fails to create session so not sure how else you make it w3C compatible.
InternetExplorerOptions browserOptions = new InternetExplorerOptions(); browserOptions.setPlatformName("Windows 10"); browserOptions.setBrowserVersion("latest"); browserOptions.setAcceptInsecureCerts(true); browserOptions.setCapability("browserstack.local", "true"); browserOptions.setCapability("browserstack.ie.arch", "x32"); Map<String, Object> cloudOptions = new HashMap<>(); cloudOptions.put("name", System.getProperty("Test_Name")); browserOptions.setCapability("cloud:options", cloudOptions);
try { this.driver = new RemoteWebDriver(new URL(remoteMachineURL), browserOptions); } catch (MalformedURLException e) { e.printStackTrace(); }
From: Titus Fortner @.> Sent: Friday, December 24, 2021 9:44 PM To: SeleniumHQ/selenium @.> Cc: Gelumbauskas, Marty (AssetMark, Contractor) @.>; Mention @.> Subject: [External] Re: [SeleniumHQ/selenium] [🐛 Bug]: Select Dropdown not working on IE on windows 10 (Issue #10131)
The only place that getElementDomAttribute is even defined is in DriverCommand class, so the error has to be coming from AbstractHttpCommandCodec class's encode method. It can't find getElementDomAttribute in the nameToSpec Map. But this gets loaded with W3CHttpCommandCodec, so you'd have to somehow not be in w3c mode.
Which, I guess makes sense if you are sending a non-w3c compliant set of capabilities and Java pushes you back to JWP.
Look in your console, and you should see:
INFO: Detected dialect: W3C
Take a look at our documentation for Updating Capabilitieshttps://urldefense.com/v3/__https:/www.selenium.dev/documentation/webdriver/getting_started/upgrade_to_selenium_4/*capabilities__;Iw!!IqQPSucyZQ!J1FjMtySnGvGC0LHSyZDQ0syEb8U-x-gj9nSuja7uMEz0wXLPDUJalqGEjGj6Xp2Z04zwQNtdQ$ for use with Selenium 4.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/SeleniumHQ/selenium/issues/10131*issuecomment-1000921978__;Iw!!IqQPSucyZQ!J1FjMtySnGvGC0LHSyZDQ0syEb8U-x-gj9nSuja7uMEz0wXLPDUJalqGEjGj6Xp2Z059clDsMQ$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AW34S4Y52UTPCPDJX2QSTCTUSTEQLANCNFSM5JZRPTIQ__;!!IqQPSucyZQ!J1FjMtySnGvGC0LHSyZDQ0syEb8U-x-gj9nSuja7uMEz0wXLPDUJalqGEjGj6Xp2Z05F3R4adQ$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!IqQPSucyZQ!J1FjMtySnGvGC0LHSyZDQ0syEb8U-x-gj9nSuja7uMEz0wXLPDUJalqGEjGj6Xp2Z07E6bSRlQ$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!IqQPSucyZQ!J1FjMtySnGvGC0LHSyZDQ0syEb8U-x-gj9nSuja7uMEz0wXLPDUJalqGEjGj6Xp2Z06f5QNz-A$. You are receiving this because you were mentioned.Message ID: @.**@.>> [CAUTION: This message is from an external party. Report suspicious messages with the report phish button in your outlook ribbon bar or forward to AssetMark Support @.***> ]
This message has been encrypted using Transport Layer Security (TLS) NOTICE: All email sent to or from AssetMark, Inc., AssetMark Trust Company, divisions Aris and Savos Investments, or their affiliates, is subject to archival retention and review by someone other than the recipient. This email message is confidential, intended only for the named recipient(s) above and for the purposes indicated. If you have received this message in error, or are not the named recipient(s), please keep this information confidential, immediately notify the sender and delete this email message. AssetMark, Inc., AssetMark Trust Company, Aris, Savos Investments, or their affiliates, will not accept any liability for damage caused by a virus transmitted through this email. IMPORTANT: Email may not be secure. AssetMark, Inc., AssetMark Trust Company, Aris, Savos Investments, or their affiliates, are not liable for the protection of any emails received containing client sensitive information.
Does your cloud provider support w3c commands? If it's Sauce Labs I can help, if it's another provider, you'll need to talk to them about how to have compliant capabilities.
I'm closing this issue because we've verified it is a usage problem, not an issue in the code base, but I can reply here to additional concerns, or you can meet up with us on Slack/IRC - https://www.selenium.dev/support/#ChatRoom
Its browserstack.
From: Titus Fortner @.> Sent: Monday, December 27, 2021 4:56 PM To: SeleniumHQ/selenium @.> Cc: Gelumbauskas, Marty (AssetMark, Contractor) @.>; Mention @.> Subject: [External] Re: [SeleniumHQ/selenium] [🐛 Bug]: Select Dropdown not working on IE on windows 10 (Issue #10131)
Does your cloud provider support w3c commands? If it's Sauce Labs I can help, if it's another provider, you'll need to talk to them about how to have compliant capabilities.
I'm closing this issue because we've verified it is a usage problem, not an issue in the code base, but I can reply here to additional concerns, or you can meet up with us on Slack/IRC - https://www.selenium.dev/support/#ChatRoomhttps://urldefense.com/v3/__https:/www.selenium.dev/support/*ChatRoom__;Iw!!IqQPSucyZQ!LFL3TgQZf8dFEnxHyf15-bo8Js9mazfR_CvbpVBmNJFAQ7zD0RBPnvS49D058VIyrvHbQbpp-w$
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/SeleniumHQ/selenium/issues/10131*issuecomment-1001604893__;Iw!!IqQPSucyZQ!LFL3TgQZf8dFEnxHyf15-bo8Js9mazfR_CvbpVBmNJFAQ7zD0RBPnvS49D058VIyrvHqIiFE3g$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AW34S44X6QBDWZKVLKMNJH3UTB5BFANCNFSM5JZRPTIQ__;!!IqQPSucyZQ!LFL3TgQZf8dFEnxHyf15-bo8Js9mazfR_CvbpVBmNJFAQ7zD0RBPnvS49D058VIyrvHl4Fn-ug$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!IqQPSucyZQ!LFL3TgQZf8dFEnxHyf15-bo8Js9mazfR_CvbpVBmNJFAQ7zD0RBPnvS49D058VIyrvG8NGy6qg$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!IqQPSucyZQ!LFL3TgQZf8dFEnxHyf15-bo8Js9mazfR_CvbpVBmNJFAQ7zD0RBPnvS49D058VIyrvF5mhMqBg$. You are receiving this because you were mentioned.Message ID: @.**@.>> [CAUTION: This message is from an external party. Report suspicious messages with the report phish button in your outlook ribbon bar or forward to AssetMark Support @.***> ]
This message has been encrypted using Transport Layer Security (TLS) NOTICE: All email sent to or from AssetMark, Inc., AssetMark Trust Company, divisions Aris and Savos Investments, or their affiliates, is subject to archival retention and review by someone other than the recipient. This email message is confidential, intended only for the named recipient(s) above and for the purposes indicated. If you have received this message in error, or are not the named recipient(s), please keep this information confidential, immediately notify the sender and delete this email message. AssetMark, Inc., AssetMark Trust Company, Aris, Savos Investments, or their affiliates, will not accept any liability for damage caused by a virus transmitted through this email. IMPORTANT: Email may not be secure. AssetMark, Inc., AssetMark Trust Company, Aris, Savos Investments, or their affiliates, are not liable for the protection of any emails received containing client sensitive information.
Sadly w3c did not change anything. @.***
From: Titus Fortner @.> Sent: Friday, December 24, 2021 9:44 PM To: SeleniumHQ/selenium @.> Cc: Gelumbauskas, Marty (AssetMark, Contractor) @.>; Mention @.> Subject: [External] Re: [SeleniumHQ/selenium] [🐛 Bug]: Select Dropdown not working on IE on windows 10 (Issue #10131)
The only place that getElementDomAttribute is even defined is in DriverCommand class, so the error has to be coming from AbstractHttpCommandCodec class's encode method. It can't find getElementDomAttribute in the nameToSpec Map. But this gets loaded with W3CHttpCommandCodec, so you'd have to somehow not be in w3c mode.
Which, I guess makes sense if you are sending a non-w3c compliant set of capabilities and Java pushes you back to JWP.
Look in your console, and you should see:
INFO: Detected dialect: W3C
Take a look at our documentation for Updating Capabilitieshttps://urldefense.com/v3/__https:/www.selenium.dev/documentation/webdriver/getting_started/upgrade_to_selenium_4/*capabilities__;Iw!!IqQPSucyZQ!J1FjMtySnGvGC0LHSyZDQ0syEb8U-x-gj9nSuja7uMEz0wXLPDUJalqGEjGj6Xp2Z04zwQNtdQ$ for use with Selenium 4.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/SeleniumHQ/selenium/issues/10131*issuecomment-1000921978__;Iw!!IqQPSucyZQ!J1FjMtySnGvGC0LHSyZDQ0syEb8U-x-gj9nSuja7uMEz0wXLPDUJalqGEjGj6Xp2Z059clDsMQ$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AW34S4Y52UTPCPDJX2QSTCTUSTEQLANCNFSM5JZRPTIQ__;!!IqQPSucyZQ!J1FjMtySnGvGC0LHSyZDQ0syEb8U-x-gj9nSuja7uMEz0wXLPDUJalqGEjGj6Xp2Z05F3R4adQ$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!IqQPSucyZQ!J1FjMtySnGvGC0LHSyZDQ0syEb8U-x-gj9nSuja7uMEz0wXLPDUJalqGEjGj6Xp2Z07E6bSRlQ$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!IqQPSucyZQ!J1FjMtySnGvGC0LHSyZDQ0syEb8U-x-gj9nSuja7uMEz0wXLPDUJalqGEjGj6Xp2Z06f5QNz-A$. You are receiving this because you were mentioned.Message ID: @.**@.>> [CAUTION: This message is from an external party. Report suspicious messages with the report phish button in your outlook ribbon bar or forward to AssetMark Support @.***> ]
This message has been encrypted using Transport Layer Security (TLS) NOTICE: All email sent to or from AssetMark, Inc., AssetMark Trust Company, divisions Aris and Savos Investments, or their affiliates, is subject to archival retention and review by someone other than the recipient. This email message is confidential, intended only for the named recipient(s) above and for the purposes indicated. If you have received this message in error, or are not the named recipient(s), please keep this information confidential, immediately notify the sender and delete this email message. AssetMark, Inc., AssetMark Trust Company, Aris, Savos Investments, or their affiliates, will not accept any liability for damage caused by a virus transmitted through this email. IMPORTANT: Email may not be secure. AssetMark, Inc., AssetMark Trust Company, Aris, Savos Investments, or their affiliates, are not liable for the protection of any emails received containing client sensitive information.
Do you have a log or stack trace?
From: Titus Fortner @.> Sent: Tuesday, December 28, 2021 3:23 PM To: SeleniumHQ/selenium @.> Cc: Gelumbauskas, Marty (AssetMark, Contractor) @.>; Mention @.> Subject: [External] Re: [SeleniumHQ/selenium] [🐛 Bug]: Select Dropdown not working on IE on windows 10 (Issue #10131)
Do you have a log or stack trace?
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/SeleniumHQ/selenium/issues/10131*issuecomment-1002103745__;Iw!!IqQPSucyZQ!O54Hd-PiiRCGIzkKYC2U34-ctD4aA6hEKWyWcXt7Vw84WroMNZC-bbaa-VufmAq8DD4PypuGxA$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AW34S45AWOB72P7KHYLSI6DUTG235ANCNFSM5JZRPTIQ__;!!IqQPSucyZQ!O54Hd-PiiRCGIzkKYC2U34-ctD4aA6hEKWyWcXt7Vw84WroMNZC-bbaa-VufmAq8DD6cfiuSsA$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!IqQPSucyZQ!O54Hd-PiiRCGIzkKYC2U34-ctD4aA6hEKWyWcXt7Vw84WroMNZC-bbaa-VufmAq8DD5bBCqMfg$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!IqQPSucyZQ!O54Hd-PiiRCGIzkKYC2U34-ctD4aA6hEKWyWcXt7Vw84WroMNZC-bbaa-VufmAq8DD4f1ecV8w$. You are receiving this because you were mentioned.Message ID: @.**@.>> [CAUTION: This message is from an external party. Report suspicious messages with the report phish button in your outlook ribbon bar or forward to AssetMark Support @.***> ]
This message has been encrypted using Transport Layer Security (TLS) NOTICE: All email sent to or from AssetMark, Inc., AssetMark Trust Company, divisions Aris and Savos Investments, or their affiliates, is subject to archival retention and review by someone other than the recipient. This email message is confidential, intended only for the named recipient(s) above and for the purposes indicated. If you have received this message in error, or are not the named recipient(s), please keep this information confidential, immediately notify the sender and delete this email message. AssetMark, Inc., AssetMark Trust Company, Aris, Savos Investments, or their affiliates, will not accept any liability for damage caused by a virus transmitted through this email. IMPORTANT: Email may not be secure. AssetMark, Inc., AssetMark Trust Company, Aris, Savos Investments, or their affiliates, are not liable for the protection of any emails received containing client sensitive information.
It is still showing OSS, not w3c:
07:37:28.884 INFO [ProtocolHandshake.createSession] - Detected dialect: OSS
Hi :),
I have similar issue but with different set of dependencies versions:
I have w3c in logs and still having this error but on Opera only. Opera version: 82.0.4227.43
Test fails on selectByVisibleText
Select selectElement = new Select(webElement); selectElement.selectByVisibleText(value);
getElementDomAttribute Build info: version: '4.0.0-rc-1', revision: 'bc5511cbda' System info: host: 'Maczek.local', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '12.0.1', java.version: '17' Driver info: org.openqa.selenium.opera.OperaDriver Command: [b1c2e5e5d029fad3cea474c6bcab0653, getElementDomAttribute {id=0.8438422702232296-11, name=multiple}]
Dependencies I use:
SELENIUM_VERSION = "4.0.0-rc-1"//higher version is not working with the older firefox driver, newest driver is not working with the newest firefox WEBDRIVER_MANAGER_VERSION = "5.0.3" TEST_CONTAINERS_VERSION = "1.16.0"//higher version won't work due to session problems
Like in dependencies list states I use older selenium in order to maintain tests also for firefox.
Edit: Nevermind, I just read about incompability with w3c of new opera drvier. Probably this is it.
You can use chromedriver to control opera if you need
Could you give me a hint what you mean?
I'm using WebdriverManager to manage setup.
What I have now:
WebDriverManager.operadriver().browserVersion(OPERA_VERSION).setup(); driver = new OperaDriver(setOperaOptions());
This:
WebDriverManager.chromedriver().browserVersion(OPERA_VERSION).setup(); driver = new OperaDriver(setOperaOptions());
doesn't work.
Change all references in that code to chrome, then in ChromeOptions set the binary to the location of the opera browser.
Tricky part is that I'm using testcontainers to run these tests on azure.
I haven't done that before, but if you can figure out path to Opera on same machine as the driver, it shouldn't matter how it is executed.
It is still showing OSS, not w3c:
07:37:28.884 INFO [ProtocolHandshake.createSession] - Detected dialect: OSS
Hi @titusfortner, regarding this we've managed to get W3C working in the session using IE Driver version 3.141.59. Now there's another problem, in the Open URL step itself we get a response parameters property of command is not a valid JSON object
. So wanted to understand when does Selenium throw this error? Found this another thread for ref.
If you are getting w3c, use the latest IE driver version
Also see this sometimes Missing parameter: url in getUrl
.
What can be the reason for these errors though? When do we usually observe this? This is currently seen for getUrl, maximise, etc.
I can't explain all your errors without more information. Make sure you're getting a valid w3c session, use the latest IE driver version.
The previous error message was a known issue with the older version https://github.com/SeleniumHQ/selenium/issues/8530
I don't think Sauce supports this, yet.
Edge with W3C in Sauce should work, but this is not the place to troubleshoot it (in an issue about IE). Please reach out to Sauce Labs customer support or if it is a Selenium issue, create a new issue with all the template fields filled out.
I thought this was referring to Edge in IE mode, which isn't supported, yet.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
What happened?
Unable to execute request for an existing session: getElementDomAttribute Select drop = new Select(seleniumCore.findElement(stateDropdown)); drop.selectByValue(state);
How can we reproduce the issue?
Relevant log output
Operating System
Window10
Selenium version
Java 4.0.0
What are the browser(s) and version(s) where you see this issue?
IE 11
What are the browser driver(s) and version(s) where you see this issue?
Browserstack
Are you using Selenium Grid?
No response