52 qr_buttons = options.driver.find_element(by=By.ID, value="qr-buttons")
53 if qr_buttons.is_displayed():
54 qr_buttons.find_element(by=By.LINK_TEXT, value="X").click()
55 options.driver.find_element(by=By.CSS_SELECTOR, value=("input#check%s"%postID)).click()56 if password != "":
57 delPasswordInput = options.driver.find_element(
58 by=By.CSS_SELECTOR,
65 threadID = threadRE.findall(cur_url)[0][1]
66 self.driver.find_element(
67 by=By.CSS_SELECTOR,
68 value=("input#check%s"%threadID)).click() 69 cur_url = self.driver.current_url
70 self.driver.find_element(
71 by=By.CSS_SELECTOR,
The modulo operator %
should have whitespace on both the sides.