How do I auto-click the Next Button after closing a pop-up window? | XM Community
Skip to main content
Solved

How do I auto-click the Next Button after closing a pop-up window?

  • September 8, 2020
  • 2 replies
  • 204 views

Forum|alt.badge.img+2

I want to be able to:

  1. Click on a link and have the page appear as a pop-up.

  2. Close the pop-up window.

  3. Have the page automatically go to the next page.

So far, I have the following code:

Open Me
Currently, it seems to just refreshes. Any help would be appreciated!

Best answer by rondev

Replace - that.clickNextButton() with below line:
jQuery("#NextButtion").click();

2 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • September 9, 2020

Replace - that.clickNextButton() with below line:
jQuery("#NextButtion").click();


Forum|alt.badge.img+2
  • Author
  • September 9, 2020

https://www.qualtrics.com/community/discussion/comment/30091#Comment_30091Thank you! I modified the overall code a bit and this is closer to what I want. (The original code kept clicking the "Next" button for all subsequent pages.)

Open Me