sat6804 Absent Member.
Absent Member.
1774 views

How to delete text box values using silk test classic tool

Jump to solution

Hi ,

 Can You any one help me, How to delete text box values using silk test classic tool, In user name field first  time i entered type keys value after that i'm deleting particular value, but delete code is not working .. I'm using the following code

        [ ] Desktop.Find("//BrowserApplication").Find("//BrowserWindow").Find("//SLApplication").Find("//SLTextBox[@automationId='tbUserName']").TypeKeys("<Delete>")


        [ ] Desktop.Find("//BrowserApplication").Find("//BrowserWindow").Find("//SLApplication").Find("//SLTextBox[@automationId='tbUserName']").TypeKeys("sath")


        [ ] Desktop.Find("//BrowserApplication").Find("//BrowserWindow").Find("//SLApplication").Find("//SLPasswordBox[@automationId='pbPasswordBox']").TypeKeys("<Delete>")


        [ ] Desktop.Find("//BrowserApplication").Find("//BrowserWindow").Find("//SLApplication").Find("//SLPasswordBox[@automationId='pbPasswordBox']").TypeKeys("Kumar<Tab>")

0 Likes
2 Solutions

Accepted Solutions
Highlighted
Micro Focus Contributor
Micro Focus Contributor

RE: How to delete text box values using silk test classic tool

Jump to solution

Hi Sat6804,

Have you tried using the SetText("") method?

This could be implemented via  [ ] Desktop.Find("//BrowserApplication").Find("//BrowserWindow").Find("//SLApplication").Find("//SLTextBox[@automationId='tbUserName']").SetText("")

Kind Regards,

Chris

0 Likes
sat6804 Absent Member.
Absent Member.

RE: How to delete text box values using silk test classic tool

Jump to solution

Thanks Chris, but even  I have used clear method for deleting the existing values

0 Likes
2 Replies
Highlighted
Micro Focus Contributor
Micro Focus Contributor

RE: How to delete text box values using silk test classic tool

Jump to solution

Hi Sat6804,

Have you tried using the SetText("") method?

This could be implemented via  [ ] Desktop.Find("//BrowserApplication").Find("//BrowserWindow").Find("//SLApplication").Find("//SLTextBox[@automationId='tbUserName']").SetText("")

Kind Regards,

Chris

0 Likes
sat6804 Absent Member.
Absent Member.

RE: How to delete text box values using silk test classic tool

Jump to solution

Thanks Chris, but even  I have used clear method for deleting the existing values

0 Likes
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.