setting text box value
Posted: Wed Aug 24, 2011 10:43 pm
Hi,
I have the following code running on windows 2008 with IE browser an current ranorex version.
InputTag userName = gmsLogin.FindSingle(".//input[@id='UsernameMaskTextBox']");
userName.Value= "user1";
InputTag password = gmsLogin.FindSingle(".//input[@id='PasswordMaskTextbox']");
password.Value = "Apollo";
The problem I am running into is that the background text (watermark)of the input tags is being set.
So when I click the login button the page thinks there is no username and password entered.
Any ideas to get around this?
Thanks
I have the following code running on windows 2008 with IE browser an current ranorex version.
InputTag userName = gmsLogin.FindSingle(".//input[@id='UsernameMaskTextBox']");
userName.Value= "user1";
InputTag password = gmsLogin.FindSingle(".//input[@id='PasswordMaskTextbox']");
password.Value = "Apollo";
The problem I am running into is that the background text (watermark)of the input tags is being set.
So when I click the login button the page thinks there is no username and password entered.
Any ideas to get around this?
Thanks