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

Protractor browser.getCurrentUrl() stopped working with latest chrome v70.x #5077

Open
@maulikpatel890

Description

@maulikpatel890

Hello,

After chrome browser has upgraded to version v70.x, our existing protractor tests are stopped working. The issue happens with below scenario:

  1. Click on the button in the application which opens another URL in the new tab of chrome.
  2. I am using below to verify if correct URL is opened in the new tab.
    expect(browser.getCurrentUrl()).toContain("URL abc");
    The tests hang on here. In the older version of chrome, the same test is working abosolutely fine.

Please see below supporting details. I could not see any trace log as it hangs.
Kindly help us as soon as possible.

'acceptInsecureCerts' => false,
'acceptSslCerts' => false,
'applicationCacheEnabled' => false,
'browserConnectionEnabled' => false,
'browserName' => 'chrome',
'chrome' => { chromedriverVersion: '2.44.609545 (c2f88692e98ce7233d2df7c724465ecacfe74df5)',
userDataDir: '/var/folders/tc/lrcs5wtx3hncrdznh3v62v8w0000gn/T/.org.chromium.Chromium.f0eeNy' },
'cssSelectorsEnabled' => true,
'databaseEnabled' => false,
'goog:chromeOptions' => { debuggerAddress: 'localhost:53836' },
'handlesAlerts' => true,
'hasTouchScreen' => false,
'javascriptEnabled' => true,
'locationContextEnabled' => true,
'mobileEmulationEnabled' => false,
'nativeEvents' => true,
'networkConnectionEnabled' => false,
'pageLoadStrategy' => 'normal',
'platform' => 'Mac OS X',
'rotatable' => false,
'setWindowRect' => true,
'takesHeapSnapshot' => true,
'takesScreenshot' => true,
'unexpectedAlertBehaviour' => 'ignore',
'version' => '70.0.3538.110',
'webStorageEnabled' => true,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions