Getting notifications title with webdriverio + appium (javascript)

Hello, I’m using:

  • “webdriverio”: “^6.10.5”
  • “appium”: “^1.19.1”

and I’m trying to grab the notifications’ titles.

I use client.openNotifications() and it opens the notifications bar without any problem but I cannot get the textviews that appear in there.

I’ve tried client.$$("android.widget.TextView") to get the elements but i’m getting “invalid locator”. I also tried client.elements but it gives me “elements function not defined”.

According to javascript exemple I should be able to use elements function but i cannot.

Anyone have experienced the same?