SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.7k stars 8.19k forks source link

[🐛 Bug]: Select Dropdown not working on IE on windows 10 #10131

Closed MartynasITT closed 2 years ago

MartynasITT commented 2 years ago

What happened?

When running tests on Browserstack on IE 11 it just fails to select anything from dropdown. Works on other browsers. Error is: 

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?

Select drop = new Select(seleniumCore.findElement(stateDropdown));
 drop.selectByValue(state);

Relevant log output

TestDMToolFunctionality>BaseTest.afterMethod:323 The following asserts failed:
        Exception occurred Unable to execute request for an existing session: getElementDomAttribute
Build info: version: '4.0.0', revision: '3a21814679'
System info: host: '207-254-7-208', ip: '', os.name: 'windows', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_181'
Driver info: driver.version: unknown
Build info: version: '4.0.0', revision: '3a21814679'
System info: host: 'FPKVENDORION017', ip: '', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.11'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Command: [f3f2e7a26d64ab0c49dac977e6c94a2e0b61ea89, getElementDomAttribute {id=b2b89a14-57f7-4006-8387-cd6f7a9946ab, name=multiple}]
Capabilities {browserAttachTimeout: 0, browserName: internet explorer, elementScrollBehavior: 0, enableElementCacheCleanup: true, enablePersistentHover: true, ie.browserCommandLineSwitches: , ie.enableFullPageScreenshot: true, ie.ensureCleanSession: false, ie.fileUploadDialogTimeout: 3000, ie.forceCreateProcessApi: false, ie.forceShellWindowsApi: false, ignoreProtectedModeSettings: false, ignoreZoomSetting: false, initialBrowserUrl: http://localhost:55042/, javascriptEnabled: true, nativeEvents: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, requireWindowFocus: false, unexpectedAlertBehaviour: dismiss, unhandledPromptBehavior: dismiss, version: 11}
Element: [[RemoteWebDriver: internet explorer on WINDOWS (f3f2e7a26d64ab0c49dac977e6c94a2e0b61ea89)] -> xpath: //div[@aria-label='form-select-item']//select]
Session ID: f3f2e7a26d64ab0c49dac977e6c94a2e0b61ea89
[ERROR]   TestDMToolFunctionality.testErrorMessagesInAddressEditModal:121 The following asserts failed:
        Exception occurred Unable to execute request for an existing session: getElementDomAttribute
Build info: version: '4.0.0', revision: '3a21814679'
System info: host: '207-254-7-208', ip: '', os.name: 'windows', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_181'
Driver info: driver.version: unknown
Build info: version: '4.0.0', revision: '3a21814679'
System info: host: 'FPKVENDORION017', ip: '', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.11'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Command: [f3f2e7a26d64ab0c49dac977e6c94a2e0b61ea89, getElementDomAttribute {id=b2b89a14-57f7-4006-8387-cd6f7a9946ab, name=multiple}]
Capabilities {browserAttachTimeout: 0, browserName: internet explorer, elementScrollBehavior: 0, enableElementCacheCleanup: true, enablePersistentHover: true, ie.browserCommandLineSwitches: , ie.enableFullPageScreenshot: true, ie.ensureCleanSession: false, ie.fileUploadDialogTimeout: 3000, ie.forceCreateProcessApi: false, ie.forceShellWindowsApi: false, ignoreProtectedModeSettings: false, ignoreZoomSetting: false, initialBrowserUrl: http://localhost:55042/, javascriptEnabled: true, nativeEvents: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, requireWindowFocus: false, unexpectedAlertBehaviour: dismiss, unhandledPromptBehavior: dismiss, version: 11}
Element: [[RemoteWebDriver: internet explorer on WINDOWS (f3f2e7a26d64ab0c49dac977e6c94a2e0b61ea89)] -> xpath: //div[@aria-label='form-select-item']//select]
Session ID: f3f2e7a26d64ab0c49dac977e6c94a2e0b61ea89

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

github-actions[bot] commented 2 years ago

@MartynasITT, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

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!

github-actions[bot] commented 2 years ago

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.

MartynasITT commented 2 years ago

image

MartynasITT commented 2 years ago
protected By stateDropdown = By.xpath("//div[@aria-label='form-select-item']//select");
MartynasITT commented 2 years ago

Same problem with IOS devices too so this problem is exclusive to selenium 4.0 because on latest Selenium 3 version it works fine.

diemol commented 2 years ago

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.

diemol commented 2 years ago

Also, you might want to contact BrowserStack customer support, perhaps they have more hints for you.

titusfortner commented 2 years ago

This sounds a lot like the dependency issue we've seen before. Make sure that all libraries, including appium, are compatible with Selenium 4.

MartynasITT commented 2 years ago

Anything incompatible here?

4.0.0 com.eWM.automation.framework eWM_Framework 0.0.1-SNAPSHOT 1.8 1.8 1.9.2 UTF-8 src/main/resources **/log4j.properties org.apache.maven.plugins maven-compiler-plugin 3.8.1 1.8 1.8 org.apache.maven.plugins maven-resources-plugin 3.2.0 org.apache.maven.plugins maven-surefire-plugin 3.0.0-M4 true -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar" src\test\resources\testsuites\IP_Regression.xml org.aspectj aspectjweaver ${aspectj.version} org.apache.commons commons-io 1.3.2 org.seleniumhq.selenium selenium-java 4.0.0 com.relevantcodes extentreports 2.41.2 org.projectlombok lombok 1.18.22 provided com.jayway.jsonpath json-path 2.6.0 com.googlecode.json-simple json-simple 1.1.1 org.apache.httpcomponents httpclient 4.5.13 io.qameta.allure allure-testng 2.16.1 compile log4j log4j 1.2.17 org.testng testng 7.4.0 org.slf4j slf4j-api 2.0.0-alpha5 org.slf4j slf4j-log4j12 2.0.0-alpha5 com.beust jcommander 1.81 org.aspectj aspectjweaver 1.9.2 runtime javax.xml.bind jaxb-api 2.4.0-b180830.0359 com.microsoft.sqlserver mssql-jdbc 9.4.0.jre8 org.apache.pdfbox pdfbox 2.0.24 com.fasterxml.jackson.core jackson-databind 2.13.0 true io.qameta.allure allure-maven 2.10.0
diemol commented 2 years ago

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.

arvind1998 commented 2 years ago

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?

diemol commented 2 years ago

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.

titusfortner commented 2 years ago

Looking for a stack trace on this error.

titusfortner commented 2 years ago

oops closed by accident

titusfortner commented 2 years ago

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.

MartynasITT commented 2 years ago

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.

titusfortner commented 2 years ago

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

MartynasITT commented 2 years ago

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.

MartynasITT commented 2 years ago

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.

titusfortner commented 2 years ago

Do you have a log or stack trace?

MartynasITT commented 2 years ago

https://automate.browserstack.com/s3-upload/bs-selenium-logs-use/s3/ede6699f89e08d05fb120e03c661bda116c36f21/ede6699f89e08d05fb120e03c661bda116c36f21-selenium-logs.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA2XUQHUQMCEH5SPMK%2F20211228%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211228T132625Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=02c2e1a2fda899bd10b1215c717a8db26a56fd591acc3b03c5e5b3090f334693

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.

titusfortner commented 2 years ago

It is still showing OSS, not w3c:

07:37:28.884 INFO [ProtocolHandshake.createSession] - Detected dialect: OSS

agniecha commented 2 years ago

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.

titusfortner commented 2 years ago

You can use chromedriver to control opera if you need

agniecha commented 2 years ago

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.

titusfortner commented 2 years ago

Change all references in that code to chrome, then in ChromeOptions set the binary to the location of the opera browser.

agniecha commented 2 years ago

Tricky part is that I'm using testcontainers to run these tests on azure.

titusfortner commented 2 years ago

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.

arvind1998 commented 2 years ago

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.

titusfortner commented 2 years ago

If you are getting w3c, use the latest IE driver version

arvind1998 commented 2 years ago

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.

titusfortner commented 2 years ago

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

titusfortner commented 2 years ago

I don't think Sauce supports this, yet.

diemol commented 2 years ago

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.

titusfortner commented 2 years ago

I thought this was referring to Edge in IE mode, which isn't supported, yet.

github-actions[bot] commented 2 years ago

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.