Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1653

[UFT] Compare value of List with DataTable

$
0
0
Hi,
in my application I have a ListBox, I get all items with:
Code:
allGroups = SwfWindow("myApp").SwfList("listBoxGroup").GetROProperty("all items")
that it returns me:
"item1
item2
item3
item4"

In my DataTable I insert in one cell this values
"item1
item2
item3
item4"

If I use an easy IF condition, it doesn't work:
Code:
If allGroups = DataTable.Value("groups_to_expected", "Step 1") Then
     ....my code
End If

The conditions is always FALSE.

Why?
Could be an error with new line char?

Thanks.

Viewing all articles
Browse latest Browse all 1653

Trending Articles