Get attribute value

Created by Rahul Mula about 2 months ago


An interactive lab from the Become a Pro at Web Automation Testing with Playwright and pytest course.

1 Comment


    from playwright.sync_api import Page

    def solution(page: Page) -> Page: # write your solutions here 👇 # ... page.goto("") animated_progress = page.locator(".progress-bar-animated") animated_progress.get_attribute("aria-valuenow") # return page for evaluation return page

    The value is 75 and it is static but the test is not passing I have checked in REPL and Inside vs code as well, the answer is 75 but the test is not accepting the 75


    srisha joshi


Your comment