Answer the question
In order to leave comments, you need to log in
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-event
to 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
How are the commands for banning and muting and getting an ID?
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 questionAsk a Question
731 491 924 answers to any question