Value exists in a web page textfield

uiautomation

#1

I want to check a value(for each value in datatable ) that exist or not in the textfield in a web page .
how to do this


#2

If you have a value from TextField and want to check if it exists in datatable’s column (e.g. “text”) then probably the easiest would be use select and check the length of result:

dt.Select("text='" + TextField +"'").Length


#3

Textfield contains number of lines and not in standard format


#4

Then iterate through your datatable and check it the TextField contains a value from current row.
Below example stores the result for each row in column “exist”

image


#5

Thank you Rafal