Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Why my playwright python code does not locate 'input'?

$
0
0

I'm trying to locate 'input' and fill some value, but the locator does not work properly.

from playwright.sync_api import sync_playwrightfrom nested_lookup import nested_lookup#Binancewith sync_playwright() as pw:    browser = pw.chromium.launch(headless=False)    context = browser.new_context(viewport={"width": 1920, "height": 1080})    page = context.new_page()    url = 'https://www.rootdata.com/Fundraising'    page.goto(url)    page.wait_for_timeout(3000)    input_element = page.locator('input[id="input-1723"]')    input_element.fill('Any Value')

I would like to know how should I fix the code to achieve the desired result.


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>