-
Notifications
You must be signed in to change notification settings - Fork 104
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
"Wait for Condition" not working if Selenium Lib is installed #2373
Comments
Thank you for the report. The keyword names for "Wait for Condition" seem to not be unique. |
Yeah both libraries have "Wait For Condition" and "Get Title" keywords. |
To double up on what @amankul mentioned, the fact the libraries share multiple keyword names seems to break the ConditionInputs. Title, Element Count, Text all will fail because SeleniumLibrary shares keywords of the same name that these conditions try to execute. |
Most likely you can overcome the problem with setting library search order: https://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Set%20Library%20Search%20Order But in any case we should fix the problem in our library side. |
@allcontributors please add @amankul for bugs. |
I've put up a pull request to add @amankul! 🎉 |
Describe the bug
"Wait for condition" is wrapper around our assertion keywords without using Get -
Example -
Browser.Wait for condition Title == ${title}
Gives the following error -
Note - there is no way for user to specify the lib name in the condition argument.
E.g Browser.Wait for condition Browser.Title == ${title}
Yields me -
ValueError: Argument 'condition' got value 'Browser.Title' that cannot be converted to ConditionInputs: ConditionInputs does not have member 'Browser.Title'. Available: 'attribute', 'attribute_names', 'bounding_box', 'browser_catalog', 'checkbox_state', 'classes', 'client_size', 'element_count', 'element_states', 'page_source', 'property', 'scroll_position', 'scroll_size', 'select_options', 'selected_options', 'style', 'table_cell_index', 'table_row_index', 'text', 'title', 'url' and 'viewport_size'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
test should pass without errors
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: