XsiSec Absent Member.
Absent Member.

how to clear content in field of RumbaTextField

hello everyone,

I am using Rumba also an terminal.


this is my command


desktop.<RumbaTextField>find("/WPFWindow[@caption='Terminal - Micro Focus Rumba']//FormsHost//RumbaScreen//RumbaTextField[@priorlabel='Part']").sendKeys("6151000");

though I need to clear the content before I sendKeys("6151000");

I tried with 

desktop.<RumbaTextField>find("/WPFWindow[@caption='Terminal - Micro Focus Rumba']//FormsHost//RumbaScreen//RumbaTextField[@priorlabel='Part']").clear();

(above try it's not not a method).

what method is possible to use?

I have checked in the list



I know i could hard-code it like backspace + del buttons but it feels not right to do that its need to be a method similar to clear?

Thank you in advance

Tags (1)
1 Reply
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

RE: how to clear content in field of RumbaTextField


You will likely need to call SendKeys() against the RumbaTextField and pass it the keyboard Mnemonic to clear the field, which might depend on the host type. Could try the following:

desktop.<RumbaTextField>find("/WPFWindow[@caption='Terminal - Micro Focus Rumba']//FormsHost//RumbaScreen//RumbaTextField[@priorlabel='Part']").sendKeys("@C"); //Clear

desktop.<RumbaTextField>find("/WPFWindow[@caption='Terminal - Micro Focus Rumba']//FormsHost//RumbaScreen//RumbaTextField[@priorlabel='Part']").sendKeys("@D"); //Delete

Hope it helps..

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.