color()
This selector lets you set color values on color picker on web page with attribute and value pairs and proximity selectors.
Examples
Section titled “Examples”await color({'id':'colorId'}).exists()await color({id:'colorId'},below('text')).exists()await color(below('text')).exists()await color(below('text')).select('#f236cf')await color({'id':'colorId'}).select('#f236cf')Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
attrValuePairs | Object | Pairs of attribute and value like {“id”:“name”,“class”:“class-name”} |
_options | Object | |
args | relativeSelector | Proximity selectors |
Returns
Section titled “Returns”| Type | Description |
|---|---|
| ColorWrapper |