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.

Find elements will auto scroll them into my headerbar. #319

@chrismatheson

Description

@chrismatheson

Hi,

Im having a problem with my tests just now and im not sure how to go abotu fixing it. This may be awebdriver problem rather than a protractor one, im no sure.

My site has a fixed nav bar at the top, and on some elements when i use findElement() it will scroll them to the "top" of the page, which is underneath my header bar so when i try to click() them i get the following error

UnknownError: unknown error: Element is not clickable at point (728, 7). Other element would receive the click:

...

i was wondering if there is a way to specify the "padding" space my site requires or do i need to manually scroll after every findElement() ??

Any help or pointers to other reading material would be fantastic.

P.S when i finally solve this i intend to raise a PR adding to FAQ's for the next poor fellow :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions