Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Can not get new value of disabled input after value update #34545

Open
silverio82 opened this issue Jan 29, 2025 · 1 comment
Open

[Bug]: Can not get new value of disabled input after value update #34545

silverio82 opened this issue Jan 29, 2025 · 1 comment

Comments

@silverio82
Copy link

Version

1.50.0

Steps to reproduce

I use next code for check input value with "disabled" element property after value was changed:

        await expect(async () => {
            let actual = await page.inputValue('[data-testid="amount"]')
            ... code which compares expected result with actual. Never mind with expect, if or other conditions.
        }).toPass({timeout: 10000})

But it always result previous value before update.
With not disabled input field it works okay.

And even in DOM I can see that value property changed. But instead of it returns previous value before update
Note: value of disabled field becomes updated after other fields changes.

Expected behavior

Return new value of disabled input when is was changed

Actual behavior

It returns value before input update

Additional context

No response

Environment

System:
    OS: macOS 15.2
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 96.60 MB / 16.00 GB
  Binaries:
    Node: 20.16.0 - /usr/local/opt/node@20/bin/node
    npm: 10.8.1 - /usr/local/opt/node@20/bin/npm
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: ^1.49.1 => 1.49.1 
    playwright: ^1.50.0 => 1.50.0
@agg23
Copy link
Contributor

agg23 commented Jan 30, 2025

Please provide a minimal reproduction that I can run to see the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants