Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

protractor.Button no longer available in Protractor 4+ #3427

Closed
rdbaron opened this issue Jul 29, 2016 · 0 comments · Fixed by #3433
Closed

protractor.Button no longer available in Protractor 4+ #3427

rdbaron opened this issue Jul 29, 2016 · 0 comments · Fixed by #3433
Assignees

Comments

@rdbaron
Copy link

rdbaron commented Jul 29, 2016

Bug report

  • Node Version: 6.2.2
  • Protractor Version: 4.0.2
  • Browser(s): chrome
  • Operating System and Version windows/macOS/linux

conf.js:

exports.config = {
  framework: 'jasmine2',
  specs: ['./test.js'],
  jasmineNodeOpts: { defaultTimeoutInterval: 360000 },
  allScriptsTimeout: 360000,
  capabilities: {
    'browserName': 'chrome',
    'chromeOptions': {
      args: ['--no-sandbox']
    }
  },

  onPrepare: function () {
    browser.driver.manage().window().maximize()
  }
}

test.js:

describe('angularjs homepage todo list', function() {
  it('should be able to right click', function() {
    browser.get('https://angularjs.org')

    browser.actions().mouseMove(element(by.model('todoList.todoText'))).perform()
    browser.actions().click(protractor.Button.RIGHT).perform()
    browser.sleep(5000)
  })
})

Running protractor conf.js:

Works with Protractor 3.3, here's the output when running with Protractor 4.0.2:

Failures:
1) angularjs homepage todo list should be able to right click
  Message:
    Failed: Cannot read property 'RIGHT' of undefined
@heathkit heathkit added this to the Upcoming milestone Jul 29, 2016
@cnishina cnishina self-assigned this Jul 29, 2016
@cnishina cnishina modified the milestones: 4.0.3, Upcoming Aug 1, 2016
cnishina added a commit that referenced this issue Aug 4, 2016
- rename to ProtractorBrowser to be able to export selenium-webdriver Browser as Browser
- export all selenium-webdriver items and subfolders in ptor
- update dependency tests for selenium
- add tests when protractor is installed

closes #3427 
closes #2092
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants