testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

[docs] Additional information about the method `getStyleProperty` and property `style`

Open Aleksey28 opened this issue 2 years ago • 0 comments

What is your Scenario?

There is some misunderstanding about the method getStyleProperty in the documentation. It's written that 'the computed value of the CSS' with the link on method getComputedStyle. But if we use properties of two or more words in the 'camelCase' format like 'background Color' as with method getComputedStyle, we'll get the undefined value.

Documentation link: https://testcafe.io/documentation/402670/reference/test-api/domnodestate#members-specific-to-element-nodes

image image

What are you suggesting?

It's needed to note in the documentation, that we should use names in the 'kebab-case' format.

Discussion link: https://teams.microsoft.com/l/message/19:[email protected]/1644226835582?tenantId=e4d60396-9352-4ae8-b84c-e69244584fa4&groupId=f74b7d18-34a4-4c78-b7d5-b56e55ce3236&parentMessageId=1644226835582&teamName=Teams%20Collaborations&channelName=TestCafe&createdTime=1644226835582

What alternatives have you considered?

No response

Additional context

No response

Aleksey28 avatar Feb 08 '22 13:02 Aleksey28