Skip to content

Method seeCssPropertiesOnElements not working #2182

Closed

Description

@PiQx

What are you trying to achieve?

I call method seeCssPropertiesOnElements. I get the following error
image
This element have backgroundProperty
image

Provide test source code if related

  within(contentEditor.formBlock.root, () => {
    I.seeCssPropertiesOnElements(contentEditor.formBlock.highlightedBlockFormItem, {background: '#fffd54'});
  });

Details

  • CodeceptJS version: 2.4.3
  • NodeJS Version: 10.16.0
  • Operating System: ubuntu
  • puppeteer

Activity

  1. garbuzzzz commented on Jan 8, 2021

    @garbuzzzz

    Use:
    const value = await I.grabCssPropertyFrom(contentEditor.formBlock.highlightedBlockFormItem, 'background')
    console.log(value);
    to see what exists in this property. You may see something like that:
    "rgb(255, 183, 93) none repeat scroll 0% 0% / auto padding-box border-box" by one string. Sad but true.

  2. sumeet6181 commented on May 31, 2022

    @sumeet6181

    Hi team,
    I am trying to verify font-weight of the element but it is giving an error
    image

    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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