Forum Discussion
kumar_perlaa
12 years agoContributor
Thanks for the reply. I have followed your intructions,but I am unable to capture the background color of textbox.
Here is the new code:
Here is the new code:
function BackGroundColor()
{
var ULEditBoxObj = getBackGrounddColorObj();
var ULEditBoxObj1 = ULEditBoxObj.WinFormsObject("TextBoxMaskBox", "");
var ULValue = ULEditBoxObj1.wText; // Existing Value of TB
var ULValue = aqConvert.VarToStr(ULValue +1)
Log.Message("U/L New Value-->:" +ULValue);
ULEditBoxObj1.SetFocus();
ULEditBoxObj1.Keys(ULValue);
var color = BuiltIn.clGreen;// Green color value(255)
var ULColor = ULEditBoxObj1.BackColor.DarkGreen.get_DarkGreen();
// var ULColor = aqConvert.VarToInt(ULColor); -->No use of this StMT. Getting error msg here also
if(ULColor == color) //Error MSG-->Object Does not support this proerty/method
{
Log.Message("Green Color");
}
else
{
Log.Message("Color is not green");
}
}
Related Content
- 5 years ago
- 9 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago