0

I'm trying to selenium click on the "next" button at the bottom of the page (just as shown by cursor in image) enter image description here

Here's the link to full web: http://hr.jsbchina.cn/zp/trs/hotPostList.do

I've tried three methods:

1) The conventional click

nextbutton = browser.find_element_by_xpath('/html/body/form/table[5]/tbody/tr/td[2]/a')
nextbutton.click()
browser.implicitly_wait(10)

2) The "element_to_be_clickable"

wait = WebDriverWait(browser, 10)
wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/form/table[5]/tbody/tr/td[2]/a'))).click() 
time.sleep(10)

3) I've also tried adding the page number to the page "text field" and clicking on "Go". And I've tried resizing window size as follows:

browser.set_window_size(1920, 1080)
browser.implicitly_wait(10)

Are there any other methods to click on "next"? Because the rest can't seem to work.

1 Answer 1

2

Below locators should help you.

driver.find_element_by_link_text('next')

OR

driver.find_element_by_partial_link_text('next')
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.