"поле ввода не найдено"
код:
Код: Выделить всё
page.evaluate(f"""
var thisInput = document.getElementById('Token');
if (thisInput) {{
thisInput.value = '{solution}';
thisInput.dispatchEvent(new Event('change'));
console.log("token set successfully.");
}} else {{
console.error("input field not found.");
}}
""")
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/790 ... nput-field
Мобильная версия