Skip to content

[Documentation] - Add how to use xpath to click text #938

Closed

Description

@andreabisello

based on #533 ,
i suggest to add this example that permits to Click Element where text contains

Click Element By Text
[Arguments] ${text}
Click Element xpath=//*[contains(text(),'${text}')]

Activity

  1. aaltat commented on Oct 2, 2017

    @aaltat
    Contributor

    Would you like to provide a PR to fix the issue?

  2. andreabisello commented on Oct 2, 2017

    @andreabisello
    Author

    @aaltat sure. i would to do this, but i don't know what i should to edit because https://github.com/robotframework/SeleniumLibrary/blob/master/docs/SeleniumLibrary.html is autogenerated. How i can learn how to improve documentation? You make a big work, and i want to help too, but i don't know how to do. Can you help me? thanks.

  3. aaltat commented on Oct 2, 2017

    @aaltat
    Contributor

    The keyword documentation is generated from the source code and from the methods which implements the keywords. Example Click Element is here: https://github.com/robotframework/SeleniumLibrary/blob/master/src/SeleniumLibrary/keywords/element.py#L423

    If you edit the method doc string, it will also update the keyword documentation in the next release.

  4. andreabisello commented on Oct 2, 2017

    @andreabisello
    Author

    @aaltat very good.

  5. aaltat commented on Oct 2, 2017

    @aaltat
    Contributor

    The keyword documentation currently uses different mixture of styles, unfortunately. If you need to take an example, please see the library init.py and more details can be found from the User Guide: http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#documenting-libraries

  6. andreabisello commented on Oct 2, 2017

    @andreabisello
    Author

    @aaltat in fact i'm editing __ init __.py

  7. andreabisello commented on Oct 2, 2017

    @andreabisello
    Author

    @aaltat not sure if this is correct, but i created a pull request #940

  8. pekkaklarck commented on Oct 21, 2017

    @pekkaklarck
    Member

    This has been fixed by 4724be0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions