-2

I want to click the "continue" which is given on the end of this page, note that the site is not mine, its someone else's. The element is located after the pagination,

I tried to click it this way :

//Method 1
document.querySelector(".se-pagination-button.se-pagination-button--next").click();

//Method 2
document.querySelector(".se-pagination-layout").lastElementChild.click();

But unfortunately it did not work for me. Is there anyway I can click it ? Because when you click it through the mouse or pad, it triggers a function. But not when I want to click it through the JavaScript.

21
  • 1
    Can you give more context than just a link? Commented Dec 14, 2018 at 15:46
  • That is not a button, nor a link, its a div. Commented Dec 14, 2018 at 15:48
  • 2
    @DavidRaluy: Yes, that's what he said. Commented Dec 14, 2018 at 15:49
  • @WEB_UI That's the link of the page, and the located "DIV" element. When you click it with pad, then it works but not with JS. Commented Dec 14, 2018 at 15:51
  • 1
    Could try casting is as a html element: stackoverflow.com/questions/38234810/… if you actually decided to post some html it would be really helpful - Something on my website doesn't work, can I just paste a link to it? Commented Dec 14, 2018 at 16:17

1 Answer 1

1

That website is a hot mess of different systems, but they use Vue.

So what you are looking for is:

document.querySelector(".se-pagination-button.se-pagination-button--next").__vue__._events.tap[0]()

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.