-
Notifications
You must be signed in to change notification settings - Fork 11
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
Element-wait plugin not retrying when element not found #117
Comments
you can find log here : https://gist.github.com/rimeak/8e7273e5520663942cdc3ee7aa7d8773 |
@rimeak |
@rimeak is it possible to give a sample project to reproduce this issue ? |
Sure @saikrishna321, here is a sample project : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using the element-wait plugin with Robot Framework and Appium2 to automate mobile testing. I've created a configuration file .appiumrc.json with the following settings:
{
"server": {
"plugin": {
"element-wait": {
"timeout": 2000000,
"intervalBetweenAttempts": 200,
"excludeEnabledCheck": ["click", "false"]
}
},
"use-plugins": ["element-wait"]
}
}
When executing tests, the Appium server starts with the plugin, and the timeout and interval settings are correctly applied. However, when attempting to find an element using the AppiumDriver.findElements() method, if the element is not found on the first attempt, the test immediately fails without retrying.
I expected the plugin to retry finding the element based on the configured timeout and interval settings, similar to how the Wait Until Page Contains Element keyword works in Robot Framework. However, it seems that the plugin is not retrying the element search.
Steps to Reproduce:
Set up Appium server with the element-wait plugin configured as described above.
Write a test case to find an element that may not be immediately available.
Execute the test case and observe that the test fails without retrying the element search.
Environment:
Operating System: Windows
Appium Version: 2.5.1
Device Under Test: android emulator
Expected Behavior:
I expect the element-wait plugin to retry finding the element according to the configured timeout and interval settings, allowing for more robust and reliable element detection during test execution.
The text was updated successfully, but these errors were encountered: