Skip to content

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

@alpriya87

Description

@alpriya87

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions