Quantcast
Channel: Silk Test - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 625

Use wildcard in locator and get incorrect textcontents

$
0
0

I am using silk4j 19.5 and recording on Chrome 71

 

I noticed the followings assertion always fail when I use "*" in the locator.  I used object spy to dectected this specific object locator. It is "//BrowserApplication[2]//BrowserWindow//DIV[@textContents='-']".   It returns "OUTR" instead of "-" when I use * in the locator, I checked object tree and checked on the UI, there is no such object containing "OUTR" as textcontents. Anyone has any idea?

 

DomElement combidLoc = desktop.<DomElement>find("//BrowserApplication[2]//BrowserWindow//DIV[@textContents='*']");

Assert.assertEquals("-", combidLoc.getProperty("textContents"));

 

Thanks

Jian


Viewing all articles
Browse latest Browse all 625

Latest Images

Trending Articles

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>