S
S
Snapdrawer2017-06-01 06:48:34
Python
Snapdrawer, 2017-06-01 06:48:34

Element is not clickable at point (X, Y), what should I do?

The page has a .top-panel, which is attached to the page when scrolling. Because of this, the test crashes with the error:
Element is not clickable at point (X, Y)
By adding pointer-eventto the panel, the problem is solved, but the panel itself breaks. How to solve such a problem? If I'm not mistaken, it is possible to manage styles using Ruby \ Java, but I did not find such an opportunity in codeception.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2018-09-17
@dimonchik2013

How are the commands for banning and muting and getting an ID?

Q
qwerty333, 2017-11-09
@Snapdrawer

def scroll_to(element)
element = element.root_element if element.respond_to?(:root_element)
Capybara.evaluate_script <<-SSS
function() {
var element = document.evaluate('#{element.path}', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
window.scrollTo(0, element.getBoundingClientRect().top + pageYOffset - 200);
}();
SSS
end

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question