Forum Discussion

kaiiii's avatar
Regular Contributor
5 years ago

Unable to Select matching value from a dropdown in assertion condition

I am comparing excel sheet value with a object value, but I need to check matching value and then  select item from dropdown. I am using below assertion code   Avaiable_Option_List = Project.Varia...
  • tristaanogre's avatar
    5 years ago

    I'm assuming that you are comparing are strings.  So, I would use an aqString.Contains to see if the one object contains the text of the other.  You can't compare "customer1234" to "customer*" as strings because, as strings, they don't match.  But you CAN do


    aqString.Contains('customer1234', 'customer') and, if it returns anything other than -1, than they "match".