Skip to content

click image cant use locator src-need fix #181

Closed
@qitaos

Description

@qitaos

@rtomac @emanlove when i user click image src=xxx.jpg, there is a error message "ValueError: Element locator with prefix 'src' is not supported".
But the document is "Clicks an image found by locator.

    Key attributes for images are `id`, `src` and `alt`. See
    `introduction` for details about locating elements."

It means i can use src for locators.
Well, I checked the elementfinder.py in Selenium2Library.locators, and I add one line "'src': self._find_by_default," in init, then it works.
Can you fix this bug in next version? Tks

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