Skip to content

e2e tests: clicks are not working when using mobileOptions capabilities #2309

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

Closed
tbosch opened this issue Jun 3, 2015 · 8 comments
Closed
Assignees
Labels
area: testing Issues related to Angular testing features, such as TestBed effort2: days type: bug/fix
Milestone

Comments

@tbosch
Copy link
Contributor

tbosch commented Jun 3, 2015

Calls to browser.click() are doing nothing when I run benchmarks / e2e tests using protractor and have the capabilities below. There are no errors in the browser log, clicking on the buttons manually works, and removing the mobileEmulation entry from the capabilities also makes the tests work again.

This is probably a bug in chromedriver, but needs more investigation and a simple reproduction case to file an issue there.

{
  browserName: 'chrome',
  chromeOptions: {
    'mobileEmulation':   {
      'deviceMetrics': {
        'width': 600,
        'height': 960,
        'pixelRatio': 2
      }
    }
  }
}

tbosch added a commit to tbosch/angular that referenced this issue Jun 3, 2015
@naomiblack naomiblack modified the milestones: M9: TypeScript and Build Stability, M10 Jun 3, 2015
@naomiblack naomiblack added type: bug/fix area: testing Issues related to Angular testing features, such as TestBed effort2: days P2: required labels Jun 3, 2015
@juliemr
Copy link
Member

juliemr commented Jun 4, 2015

Note that this works for chrome 43 and 45 (canary).

@tbosch
Copy link
Contributor Author

tbosch commented Jun 5, 2015

I am using the following command:

./node_modules/.bin/protractor protractor-js.conf.js --benchmark --specs=dist/js/cjs/benchmarks/e2e_test/tree_perf.js

Note that the benchmarks don't throw, but just don't click on the button, i.e. the tree does not show and hide while the benchmark is running.

@juliemr
Copy link
Member

juliemr commented Jun 8, 2015

Reproduced with plain old selenium-webdriver using selenium-webdriver node module 2.45, selenium 2.45, and chromedriver 2.14, and Chrome > 43. See https://github.com/juliemr/webdriver-bugs/blob/master/mobileclick.js

New versions of selenium and chromedriver are out today. I'm going to try updating and see if that fixes.

@juliemr
Copy link
Member

juliemr commented Jun 13, 2015

See angular/protractor#2245

@juliemr
Copy link
Member

juliemr commented Jun 13, 2015

With updated selenium and chromedriver, this passes on Chrome 44 beta but fails on Chrome 45 canary because the click goes to the wrong element.

Issue submitted to ChromeDriver: https://code.google.com/p/chromedriver/issues/detail?id=1127

@juliemr
Copy link
Member

juliemr commented Jun 13, 2015

Closing since the issue is now filed with chromedriver.

@juliemr juliemr closed this as completed Jun 13, 2015
@nexstreamray
Copy link

nexstreamray commented Dec 15, 2017

Hey @juliemr, the clicks are still not working on current chrome driver.
Any updates for this issue?

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: testing Issues related to Angular testing features, such as TestBed effort2: days type: bug/fix
Projects
None yet
Development

No branches or pull requests

4 participants