Hi,
I am using Ranorex 3.0.5.
Is there a way to access the BackColor property of a text box?
B
bsing wrote:The documentation indicates that BackColor is only supported by RanorexPro.
Text yourTextBox = "RxPath to your Textbox";
var color = yourTextBox.Element.GetAttributeValue("BackColor");InputTag input_text = someTableTag.FindSingle<InputTag>("./input[1]");
string color = input_text.GetStyle("backcolor").ToString();Is InputTag used for web pages/documents?
Text text = "/form[@controlname='frmMain']/container/container/element/container/container/text[@controlname='txtDetails']";
Color color = (Color) text.As<Control>().GetPropertyValue("BackColor");Ranorex.Text text = "/form[@controlname='frmMain']/container/container/element/container/container/text[@controlname='txtDetails']";
Color color = (Color) text.As<Control>().GetPropertyValue("BackColor"); Users browsing this forum: No registered users and 0 guests