Skip to content

Clarified get_matching_xpath_count returns str#714

Closed
GLMeece wants to merge 1 commit into
robotframework:masterfrom
GLMeece:patch-2
Closed

Clarified get_matching_xpath_count returns str#714
GLMeece wants to merge 1 commit into
robotframework:masterfrom
GLMeece:patch-2

Conversation

@GLMeece

@GLMeece GLMeece commented Dec 15, 2016

Copy link
Copy Markdown
Contributor

Updated documentation to include the return type (string) of the XPath count.

Many users would assume that the "count" is an integer. However, since the count value is cast to a string upon return, this is not the case. Since this behavior has been in the code for quite awhile, likely as not users have coded around it. However, for accuracy's sake (as well as for those just learning RF).

Updated documentation to include the return type (string) of the XPath count.
@aaltat

aaltat commented Dec 16, 2016

Copy link
Copy Markdown
Contributor

Do you want to add your name to the CHANGES.rst and could you open a issue?

@pekkaklarck

Copy link
Copy Markdown
Member

Simple doc fixes could, in my opinion, be mergen also without issues.

Also, I agree int would be better type but changing would be backwards incompatible. Updating docs is a very good idea. Thanks for PR!

@GLMeece

GLMeece commented Dec 16, 2016

Copy link
Copy Markdown
Contributor Author

For formality's sake, I have created an issue, which includes Pekka's suggestion to have it optionally return an int as a keyword arg (still keeping a string return as the default).

@aaltat

aaltat commented Dec 21, 2016

Copy link
Copy Markdown
Contributor

Should we close this one and consentrate on #717

@aaltat

aaltat commented Jan 22, 2017

Copy link
Copy Markdown
Contributor

Closed to favor #735

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.

3 participants