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: How to navigate to external url by click an element using id ?  #5281

@jakviru

Description

@jakviru

I am using protractor test at react js based webapplication. My test is simple, here is part of the code which i am using in my test script

var logo = element(by.id('facebook-logo')); browser.actions().mouseMove(logo).click().perform();

when i execute it i got this result in my terminal
"W/element - more than one element found for locator By(css selector, *[id="facebook-logo"]) - the first result will be used"

test passed but it is not navigating to external url.

Could you please help to solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions