-
Notifications
You must be signed in to change notification settings - Fork 11
Description
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.