mobify / nightwatch-commands

A set of Mobify specific custom commands for Nightwatch.js
60 stars 18 forks source link

New Command: attributeContains #13

Closed qa-derrick closed 10 years ago

qa-derrick commented 10 years ago

currently I am unable to determine if the value of an attribute contains "/images/myImage.png" as image paths change for environments I would like to use contains rather than equals.

example would be: .verify.attributeContains(selectors.headerLogo + ' img', 'src', '/images/myImage.png')

qa-derrick commented 10 years ago

duplicates issue #15