question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I.click() fails on elements out of view

See original GitHub issue

What are you trying to achieve?

I am trying to click an element that it out of view (scrolling is needed to see the element). With 0.6.3 , it was working like that - it was scrolling automatically when needed.

What do you get instead?

unknown error: Element is not clickable at point (a,b)

Details

  • CodeceptJS version: 1.0.3
  • NodeJS Version: 6.11.0
  • Operating System: Win10x64
  • Protractor || WebDriverIO || Nightmare version (if related)
  • Configuration file:
{
  "output": "./output",
  "helpers": {
    "WebDriverIO": {
      "url": "http://localhost",
      "browser": "chrome",
      "windowSize": "",
      "timeouts": {
        "script": 60000,
        "page load": 10000,
        "implicit": 50
      }
    },
    "User": {
      "require": "./user_helper.js"
    }
  },
  "include": {
    "I": "./steps_file.js",
    "Activities": "./pages/Activities.js"
  },
  "mocha": {},
  "bootstrap": false,
  "teardown": null,
  "hooks": [],
  "tests": "./*_test.js",
  "timeout": 10000,
  "name": "Codeceptjs Tests"
}

Do I have to scroll now every time to click an element out of view?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
imdedioscommented, May 29, 2021

I am having problems with Chrome, I did try with Firefox and is working correctly

0reactions
reubenmillercommented, Feb 26, 2018

Closing ticket due to inactivity. Before reopening please try using the latest version which is v1.1.5 (at the time of writing), and check if the issue still exists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I.click() fails on elements out of view · Issue #745 · codeceptjs ...
I am trying to click an element that it out of view (scrolling is needed to see the element). With 0.6.3 , it...
Read more >
Element not visible error (not able to click an element)
1 Answer 1 · make sure the element you want to click is actually visible. · wait for the visibility of the element:...
Read more >
Cannot click WebElement that is outside visible area of ...
I can interact with the element while it's off screen and get the value of isSelected() for example but cannot click it. To...
Read more >
Interacting with Elements - Cypress Documentation
We do not scroll elements into view on regular DOM queries like cy.get() or .find() . The reason we scroll an element into...
Read more >
Fight The Element Detached From DOM Error Using jQuery ...
To solve this, we can use jQuery " click() " method instead of cy. click() command. The jQuery method does not have the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found