HI everyone,
I tried to get the text in textbox, but I am failed!
My scenario is like this:
When the web page is opened, some data will be retrived from DB and fill in the textbox, now I'd like to verify the text in the textbox, but can not get it. Below is my test code
After executed the code, the string sex is still empty, but actually it's not and should be "F". Further more I can see the text on webpage, just can not get from the test code.
I tried to get the text in textbox, but I am failed!
My scenario is like this:
When the web page is opened, some data will be retrived from DB and fill in the textbox, now I'd like to verify the text in the textbox, but can not get it. Below is my test code
silApp.RefreshVisualTrees();
string sex=silApp.FindName("patientinfo").Find.ByName("tbSex").TextBlockContent);
After executed the code, the string sex is still empty, but actually it's not and should be "F". Further more I can see the text on webpage, just can not get from the test code.