| || |
CurrentStyle.Background color is not getting updated
I enter some value in webedit and submit the page
since its wrong value the background color of webedit changes say yellow.
But when i use WebEdit.CurrentStyle.BackgroundColor its not showing the updated value for background color yellow
of course i put this statement after submit.
I checked page source and i found that the style of webedit was changed but why qtp is not showing this updated background color.
I need to use this background color to confirm style has changed.
Any idea why this is happening.
Hi if you are not getting WebEdit.CurrentStyle.BackgroundColor you can try to differentiate class name of the webedit before and after clicking on the Submit button.
In my case it worked as below,
Before submit the class name is -- >x-form-text x-form-field x-form-valid
After submit the class name is -- >x-form-text x-form-field x-form-invalid