Skip to content
Home
Code Generation
Agile Testing
Company
Success Stories
Blogs
Menu
Home
Code Generation
Agile Testing
Company
Success Stories
Blogs
Sign up
Home
Features
Company
Success Stories
Sign up
Menu
Home
Features
Company
Success Stories
Sign up
Test Studio
Validate element properties
validateActive → check if element is enabled for interaction
validateChecked → checks whether a checkbox, radio button, or option in a select element is currently selected
validateEditable → check if element is enabled for interaction
validatefcolor → check “color” attribute of the element matches the rgb value in testdata
validatebgcolor → check “background-color” attribute of the element matches the rgb value in testdata
validateFontFam → compare the css attribute “font-family” with the test data
validateFontSize → compare the css attribute “font-size” with the test data
validateHref → compare the element attribute “href” with the test data
validateSrc → compare the element attribute “src” with the test data
validateCount → compare the number of times the element occurs on the page with the test data
validatePageUrl → compare the current page url with the testdata
validateMulti →
Expected format to provide multiple values is (“Value1~Value2~Value3~Value4”) in test data
Select all elements that match the locator
Filter out the ones that are not visible on the page
Confirm that the number of elements found and the number of values to be compared match –
else fail the validation
Retrieve the value for each element and confirm that it matches at least 1 value in the test data list –
else fail the step
Have other questions? Access our full knowledge base!
VIEW ALL ARTICLES