Код: Выделить всё
AM
PM
-All-
< /code>
Я могу найти (найти) и нажать на элемент времени (он должен быть выбран (фактически открыт, я думаю), прежде чем ни один из двух вариантов может быть манипулирован), но я не могу получить доступ к одному из двух вариантов.> #################################################################################
# Test Code
try:
exit_button = await page.find("/html/body/div[3]/div/div[3]/div[6]/div[3]/form/select")
sleep(1)
await exit_button.mouse_click()
if time_no ==1:
time_xpath = ("#frmLoadDay > select:nth-child(3) > option:nth-child(1)")
else:
time_xpath = "/html/body/div[3]/div/div[3]/div[6]/div[3]/form/select/option[2]"
time_selection = await page.find(time_xpath)
await time_selection.mouse_click()
self.queue.put("J100 - Found the time")
print("J check point 3")
return True, page, driver
except Exception as e:
print("J130 - Unable to Exit Using Xpath:", e)
return False, page, driver
j130 - Невозможно выйти с использованием xpath: не смог найти позицию для
Я не знаю, что я простал. возьми. Любая помощь будет оценена. Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/797 ... ing-python
Мобильная версия