Skip to content

Add 'find_element(s)' to public API - #965

Merged
aaltat merged 3 commits into
robotframework:masterfrom
pekkaklarck:SL.find_elememt
Oct 23, 2017
Merged

aaltat merged 3 commits into
robotframework:masterfrom
pekkaklarck:SL.find_elememt

Conversation

@pekkaklarck

@pekkaklarck pekkaklarck commented Oct 20, 2017 •

Copy link
Copy Markdown
Member

See #882.

Also little cleanup to internal find_element(s) API.

We cannot promise that we keep these objects stable in the
future. Better not to have them in the public API either.
Related to robotframework#882.
"""
return self._element_finder.find(locator, parent=parent)

def find_elements(self, locator, parent=None):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this have similar sphinx style parameter definitions as find_element in above?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It wouldn't hurt. More important change would be adding return type information, but it should mention that return type is a list of WebElement objects, not just that the type is a list.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You had some other syntax changes to type info. Can you take care of all of them at the same time?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes I can. I will merge this PR and write separate PR for fixing it.

@aaltat
aaltat merged commit 13f07f7 into robotframework:master Oct 23, 2017
@pekkaklarck
pekkaklarck deleted the SL.find_elememt branch October 23, 2017 11:43
@pekkaklarck
pekkaklarck restored the SL.find_elememt branch October 23, 2017 11:43
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.

2 participants