Код: Выделить всё
nfo_link = page.locator('the xpath').get_attribute('href')
nfo_link = 'https://somesite.com' + nfo_link
logger_play.info('nfo_link: %s', nfo_link)
ожидание селектора
Я пробовал:
Код: Выделить всё
if (page.locator('the xpath').get_attribute('href')) == None:
pass
else:
nfo_link = page.locator('the xpath').get_attribute('href')
Подробнее здесь: https://stackoverflow.com/questions/707 ... aywright-p
Мобильная версия