watin

WatiN FindByIdStartsWith?


How to find element by start of id in WatiN?

Find.ById(x => x.StartsWith(rel)

Didn't work somehow. :/


Solution

  • You probably need to check whether x has a value before calling StartsWith()

    Find.ById(x => x != null && x.StartsWith(rel));