codedamn

Get attribute value

Created by Rahul Mula about 2 months ago

0

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

1 Comment

    0

    from playwright.sync_api import Page

    def solution(page: Page) -> Page: # write your solutions here 👇 # ... page.goto("https://bootswatch.com/default") 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

    @rookielearner02

    srisha joshi

    @rookielearner02

Your comment