Skip to content
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

Does protractor support W3C #5491

Open
aravindnatesan opened this issue Jan 22, 2021 · 5 comments
Open

Does protractor support W3C #5491

aravindnatesan opened this issue Jan 22, 2021 · 5 comments

Comments

@aravindnatesan
Copy link

Hello Team,
My Protractor tests are not running in latest of MacOS platform and Safari browser. They are just running only till the combination of macOS 10.13 and Safari 11.1 versions. On enquiring with the sauce lab team they have mentioned that “Protractor framework does not support W3C, so unfortunately there isn’t a solution until Protractor supports W3C.” Hence their recommendation is to run my protractor tests using JSON Wire protocol. Below is the error when I ran my tests for Safari browser with latest macOS 10.15 and Safari version 13.1.

[15:58:23] E/runner - Unable to start a WebDriver session.
[15:58:24] E/launcher - Error: WebDriverError: Unknown timeout type in 'timeouts': 'type’
System info: host: ip: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.4', java.version: '13.0.1'
Driver info: driver.version: unknown

Capability used in my conf.js file:

{
'browserName': 'safari',
'version': '13.1',
'platform': 'macOS 10.15',
'parentTunnel': ,
"name": 'Login Tests in MacOS Safari',
shardTestFiles: true,
maxInstances: 2,
}

Note: I don’t face any issue in chrome and Firefox as they are support JSON wire protocol but not sure when they might also move to W3C

This is the same with mobile testing using Appium (Simulator & Emulators) in Sauce labs. My tests are not even getting executed but they are getting passed. I came across that Appium is also using only W3C and not JSON Wire-protocol anymore. Could you please let me know if we can expect protractor to support W3C in the up coming releases?

Please go through the below link to get some inputs for Saucelab wiki support pages. Hoping to get a better solution.

https://wiki.saucelabs.com/display/DOCS/W3C+Capabilities+Support

Node version: v14.15.1
Protractor Version: "~5.2.0"
Angular CLI Version: 8.3.10
Angular: 8.2.11
Browser: Safari V 13.1
Operating System: macOS 10.15

Below is my Config file: (There is no issue with my config file as Im able to run my tests in sauce lab for Chrome (latest), Firefox (latest) and Safari (macOS 10.13 and 11.1)

const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
sauceUser: process.env.SAUCE_USERNAME,
sauceKey: process.env.SAUCE_ACCESS_KEY,
sauceSeleniumUseHttp: true,
sauceSeleniumAddress: 'ondemand.saucelabs.com:/wd/hub',
webDriverProxy: ,
sauceProxy: ,

specs: [ ],
multiCapabilities: [
{
'browserName': 'safari',
'version': '13.1',
'platform': 'macOS 10.15',
'parentTunnel': ,
"name": 'Login Tests in MacOS Safari',
shardTestFiles: true,
maxInstances: 2,
}],
framework: 'jasmine',
};

Note: I have provided the basic core content of my conf.js As I had already mentioned the issue is not with my tests or conf.js but it’s about protractor supporting W3C.

@andredesousa
Copy link

I had this problem with mac and chrome in an old project. I did this:
capabilities: { browserName: 'chrome', chromeOptions: { 'w3c': false }, },

However, the support for safari is poor.

@StanislavKharchenko
Copy link

Support of w3c should be added in selenium 4.0, however protractor 7 support only selenium-webdriver 3.X.
The question is when protractor will be migrated to 4.0 selenium-webdriver.

@alan-agius4 @kyliau @cnishina Could you please assist? What about of protractor support? Are you planning to continue work with removing control flow, migration to selenium 4.0 as it was done in deprecated Protractor 6?

@Fuun347
Copy link

Fuun347 commented Feb 18, 2021

selenium-webdriver 4 is still in alpha. I assume the protractor team would wait for selenium to get to a solid version before they upgrade to selenium-webdriver 4

@StanislavKharchenko
Copy link

BTW, selenium 4.0 already in beta-1 state. So, the question to angular and protractor team about plans to upgrade.

@sbley
Copy link

sbley commented Feb 22, 2021

There is a comment from @cnishina on Gitter saying

Yup. We will keep everyone informed.
Probably will have more info some time Q2-ish?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants