In playwright-python I know I can get an elementHandle using querySelector().
Example (sync):
from playwright import sync_playwright
with sync_playwright() as p:
for browser_type in [p.chromium, p.firefox, p.webkit]:
browser = browser_type.launch()
page = browser.newPage()
page.goto('https://duckduckgo.com/')
element = page.querySelector('input[id=\"search_form_input_homepage\"]')
How do I get the an element relative to this based on this elementHandle? I.e. the parent, grandparent, siblings, children handles?