How to solve xpath element that have special character

I have meet the issue below . i try to click on element but in that xpath has containt $ sign . and i got the message erorr:

InvalidSelectorException: Message: Argument was an invalid selector (e.g. XPath/CSS).


      Start Application
      Input PIN     1235
      click element     xpath=//android.widget.HorizontalScrollView/$Tab[2]

Any Help please .

1 answer

  • answered 2018-01-12 05:23 Sidara KEO

    i change method by using like this