This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 3
May 2016

This is a scenario in java where I click a button as follows:

MobileElement element = driver.findElementByXPath(xpath);
element.tap(1, 1);


I need to highlight a button in red colored rectange on click. How to do it?

  • created

    May '16
  • last reply

    Dec '18
  • 2

    replies

  • 1.1k

    views

  • 3

    users

It can only be done if u r element is under WebView
for all elements under native context we cannot run any js to highlight element....
this is uiautomation framework limitation....

2 years later

I have an app created under iOnic framework-Hybrid, Highlighting element is possible? How?
I know how to do in Web.