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

How do you make sure a radio button is grayed out when the value is not changed ? #71

Open
alpriya87 opened this issue Jan 23, 2022 · 0 comments

Comments

@alpriya87
Copy link

alpriya87 commented Jan 23, 2022

Let's says i have a radio button that is grayed out, the test is to make sure that the button is grayed out. Below doesnt return the value since it is expecting some value from the output.

    // check btn was clicked (this page expected btn to change text of output)
    const outputSpan = await page.$("shadow/.output");
    const text = await page.evaluate((output) => output.innerText, outputSpan);
    // prints the text from the output
    console.log(text);

Is there a way to find out if the button is grayed out.

<input _ngcontent-qre-c24="" type="checkbox" id="nonParSelector" class="grv-checkbox grv-margin__left--small" disabled="">
If it is not grayed it looks like this

<input _ngcontent-kof-c24="" type="checkbox" id="nonParSelector" class="grv-checkbox grv-margin__left--small">
Thank you

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

1 participant