0

Please refer to the image

How to click on Next button one by one from number of pages using selenium in Java

Thanks in advance

Yogeshk
  • 1
  • 3
  • Possible duplicate of [How to navigate and click a button on a web page using Selenium WebDriver?](https://stackoverflow.com/questions/16003637/how-to-navigate-and-click-a-button-on-a-web-page-using-selenium-webdriver) – vinS Dec 18 '17 at 10:36
  • Please provide code of what you have tried. (read the docs on how to ask a question in stackoverflow and follow the guidelines) – Yannis Dec 18 '17 at 10:36
  • i don't have code ,i want to know how to click one by one till page ends using java selenium – Yogeshk Dec 18 '17 at 10:39
  • Please add your site url so that i can help you or share the portion of the html part of the next page block – Mahmud Riad Dec 18 '17 at 10:54

1 Answers1

0

You need to locate their element by some parameter (ID, name, etc), then tell selenium to click.

Check out

Selenium Web Driver: findElement(By.name ..... and headless browser

  • i want to know the code how to click one by one till page ends using java selenium in this image https://i.stack.imgur.com/Ptm85.png – Yogeshk Dec 18 '17 at 10:45
  • I can't write out the entire code because I don't have access to the webpage so I don't know how it's structured. Again though, just have the driver find the next button element and execute .click(). Given a basic understanding of java and selenium this shouldn't be that hard, if you don't know what I'm talking about I think you need to do some work on that. – Foster Williams Dec 18 '17 at 10:51