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

hi i am unable to click camera button using sendkeyevents so please help me

  • created

    Jan '19
  • last reply

    Jan '19
  • 1

    reply

  • 115

    views

  • 2

    users

  • 1

    link

So what i used in my test project was, launch any sample app in inspector and then minimise the app and click on refresh snapshot.

You will see a camera icon on the andorid phone, via inspector find the element on home screen on the phone and use xpath or any other type to click it.

I used this.

driver.findElement(By.xpath("//android.widget.TextView[@content-desc=‘Camera’]")).click();

Hope this helps.