With recent Cloud test runs, we are seeing intermittent issue with click action on element does not do anything with no exception thrown.
According to the test results the next step after click action fails with elementNotFound exception.
We have tried following options but with no desired result:
WebElement click
TouchAction class
Any suggestions or any related information available on forum on how we can tackle this kind of intermittent behavior of click action, would be great help.
Hello Kazu, javascript will not work for any action on a native app. Is there anything else you suggest in terms of :
Thanks,
Dhru
Ah, native context.
In my experience, I haven’t met raising such error for click if find element
method found it…
More actions, you can try out W3C actions with newer Appium versions
http://appium.io/docs/en/commands/interactions/actions/
# frozen_string_literal: true
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'test_helper'
require 'functional/common_w3c_actions'
# $ rake test:func:android TEST=test/functional/android/webdriver/w3c_actions_test.rb
# rubocop:disable Style/ClassVars
class AppiumLibCoreTest
This file has been truncated. show original
# frozen_string_literal: true
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Scroll action for Android and iOS following W3C spec
def w3c_scroll(driver)
window = driver.window_rect
action_builder = driver.action
input = action_builder.pointer_inputs[0]
This file has been truncated. show original
are examples in Ruby for some interactions.
You can find selenium client’s w3c action info in the internet.
to slow down lit bit?
Do you mean if you can handle actions more slowly etc?
You can add pause/duration in the w3c actions to control it.