AppiumTestDistribution / appium-wait-plugin

Plugin to automatically manage all element waits and enables to write wait-free appium tests.
MIT License
60 stars 10 forks source link

Add possibility to configure plugin for element clickability #78

Closed lhimo closed 1 year ago

lhimo commented 1 year ago

I am trying to click on an element which is visible, but its attribute enabled is false. The plugin is therefore waiting for it to become true, so the test fails.

Is it possible to configure the plugin to check only if an element exists, regardless of its enabled attribute?

saikrishna321 commented 1 year ago

Will enable ways to set the values to skip this check.

lhimo commented 1 year ago

Thanks for checking this so quickly! I'm getting this on macOS, but maybe I'm doing something wrong:

~ [ appium --allow-insecure=adb_shell --log-timestamp  --use-plugins=element-wait --plugin-element-wait-element-enabled-check-exclusion-cmds-list=['click']                                              ] 11:57 am
zsh: no matches found: --plugin-element-wait-element-enabled-check-exclusion-cmds-list=[click]
~ [ appium --allow-insecure=adb_shell --log-timestamp  --use-plugins=element-wait --plugin-element-wait-element-enabled-check-exclusion-cmds-list=\[\'click\'\]                                          ] 11:57 am

[ERROR] Unrecognized arguments: --plugin-element-wait-element-enabled-check-exclusion-cmds-list=['click']
saikrishna321 commented 1 year ago

Check with latest version. Readme is updated