Skip to content
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

Merged
merged 8 commits into from
May 22, 2015

Conversation

vidyaravind
Copy link

No description provided.

@@ -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) {
Copy link
Member

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

Copy link
Member

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

Copy link
Member

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for TextEquals

Copy link
Author

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
Copy link
Member

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

grawk added a commit that referenced this pull request May 22, 2015
Added implementation,testcases for validate text and validate attribute
@grawk grawk merged commit 98e6b11 into paypal:develop May 22, 2015
@grawk grawk mentioned this pull request Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants