Python Selenium - How Can I Click On The Third Last Element From A Group Of Elements In A Table?
Good day everyone, Can someone explain to me how I cant get the number of elements in a table? I am running through multiple tables that all have different lengths and I always nee
Solution 1:
To locate the third last row element with id starting as ContentPlaceHolder1_gridview1_refid_ you can use the following xpath:
browser.find_element_by_xpath("//*[@id='ContentPlaceHolder1_gridview1']/tbody/tr[last()-3]").click()
Post a Comment for "Python Selenium - How Can I Click On The Third Last Element From A Group Of Elements In A Table?"