When i tried to do input("#searchForm:userName", "karate"), its no" /> When i tried to do input("#searchForm:userName", "karate"), its no" /> When i tried to do input("#searchForm:userName", "karate"), its no"/>

how to escape special characters in Karate UI Locators

23 Views Asked by At

I have a input text field with a below tag. <input id = "searchForm:userName",....>

When i tried to do input("#searchForm:userName", "karate"), its not able to identity the locators.

I believe it's due to the colon(:) in the id value. I have solved the same scenario with other locator type in different locations. But for this one there are no alternate locators to use for this input tag. Can you please suggest how to overcome this scenario?

0

There are 0 best solutions below