-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added implementation,testcases for validate text and validate attribute #29
Conversation
Conflicts: README.md lib/locreator.js test/methods.js
@@ -75,6 +75,12 @@ Locreator.prototype.addStarMethods = function locreator(locatorId, _locator, par | |||
locatorObject[locatorId + 'OptionValue'] = function (optionValue) { | |||
return drivex.selectByOptionValue(locator, optionValue, parentWebElement); | |||
}; | |||
locatorObject[locatorId + 'ValidateText'] = function (ValidateText) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about calling the method "TextEquals" instead? Trying to shorten the name if possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function argument should begin with lowercase letter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you change the name of this argument to comparisonText
or something else that succinctly describes its purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for TextEquals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing name to TextEquals and AttrEquals
#### [locatorName]TextEquals | ||
|
||
* arguments | ||
* text: the expected text on the element |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the code the parameter is value
so it should match in the doc
Added implementation,testcases for validate text and validate attribute
No description provided.