diff --git a/noip-renew.py b/noip-renew.py index ad3d7a9..9df9b0b 100755 --- a/noip-renew.py +++ b/noip-renew.py @@ -151,7 +151,7 @@ def get_host_link(host, iteration): @staticmethod def get_host_button(host, iteration): - return host.find_element_by_xpath(".//following-sibling::td[4]/button[contains(@class, 'btn')]") + return host.find_element(By.XPATH, "//td[6]/button[contains(@class, 'btn-success')]") def get_hosts(self): host_tds = self.browser.find_elements_by_xpath("//td[@data-title=\"Host\"]")