Open Akopov4 opened 5 months ago
from playwright.sync_api import Playwright @fixture def get_playwright() -> Generator[Playwright, Any, None]: with sync_playwright() as playwright: yield playwright def test_playwright(get_playwright, headless=False): playwright1 = get_playwright browser = playwright1.chromium.launch(headless=headless) context = browser.new_context() page = context.new_page() base_url = 'https://www.bing.com/?cc=ua' page.goto(base_url) row = page.query_selector(f'css=tr >> text=""') row.query_selector(".deleteBtn").click() print('') assert 5 != 1
No Pylance Errors should be
"query_selector" is not a known member of "None" "click" is not a known member of "None"
vscode_log.txt
requirements.txt
sounds like duplicate of https://github.com/microsoft/pylance-release/issues/5718
Better support for fixtures that return generatros
Accidentally closed this issue
Environment data
Code Snippet
Repro Steps
Expected behavior
No Pylance Errors should be
Actual behavior
"query_selector" is not a known member of "None" "click" is not a known member of "None"
Logs
vscode_log.txt
Requirements
requirements.txt