MCPcopy
hub / github.com/TechXueXi/TechXueXi / xpath_getText

Method xpath_getText

SourcePackages/pdlearn/mydriver.py:333–338  ·  view source on GitHub ↗
(self, xpath)

Source from the content-addressed store, hash-verified

331 self.driver.find_element_by_xpath(xpath).click()
332
333 def xpath_getText(self, xpath):
334 self.condition = EC.visibility_of_element_located(
335 (By.XPATH, xpath))
336 WebDriverWait(driver=self.driver, timeout=15,
337 poll_frequency=1).until(self.condition)
338 return self.driver.find_element_by_xpath(xpath).text
339
340 def check_delay(self):
341 delay_time = random.randint(2, 5)

Callers 4

answer_questionFunction · 0.95
dailyFunction · 0.95
weeklyFunction · 0.95
zhuanxiangFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected