Click on any one of "1 2 3 4 5 ..." on a page by using Selenium in Python
(e.g., Splinter):
I have HTML that looks like the three following sample statements:
<a
href="javascript:__doPostBack('ctl00$FormContent$gvResults','Page$10')">...</a>
<a
href="javascript:__doPostBack('ctl00$FormContent$gvResults','Page$12')">12</a>
<a
href="javascript:__doPostBack('ctl00$FormContent$gvResults','Page$13')">13</a>
(I'd presently be on pg. 11.)
I don't know the Py/Selenium/Splinter syntax for selecting one of the page
numbers in a list and clicking on it to go to that page. (Also, I need to
be able to identify the element in the argument as, for example, 'Page$10'
or 'Page$12', as seen in the __doPostBack notation. Maybe just a 'next
page', in so many words, would be fine, but I don't even know how to do
that.)
Thank you for any help.