Hi Dojo Community,
I was wondering if it is possible to grab the text from text boxes widgets that are created during automation ?
I have tried a for loop for the widgets as so:
foreach(Widget a in AWS.Widgets)
{
if (skip != 0)
{
if (a.Type == UIBlockType.TextBox)
{
engine.Log(a.Text);
}
skip++;
}
}
Thanks in advance
Hi Amer,
The Widgets should contain this value you add to the display.
But keep in mind they only happen if you first shown your UI first and the Widgets are part of this build UI.
To access the values, an event handler needs to be present. Either on change of the value of the textbox or on a push of the button. Then the value in the Widget in question will be present.
Of course I don't full see the complete implementation. But the previous conditions need to be present before the Widgets get filled in.
Hope this helps investigating the issue you having.
Hi Thomas,
On the steps before hand is the ui is displayed and the user creates more textboxes as is required and after filling in as many as needed a button is pressed after this button I am trying to collect all widgets in a loop afterwards I am only checking the widgets that are textboxs and if they are a textbox I am trying to get the text which does not seem possible.