Hi. I am working with UFT on a web application and need help figuring out how to get pressing the Enter key in UFT after filling in a field.
Steps:
- Enter data into the search WebElement.
- Press Enter.
Expected Result: After pressing the Enter key, the application should display the input data. However, the Enter key press is not working in UFT.
'1. Using Shell
Browser("iSEM").Page("iSEM").WebElement("WebElement").Click
Set WshShell = CreateObject("WScript.Shell")
Browser("iSEM").Page("iSEM").WebEdit("Search").Set "Admin1"
WshShell.SendKeys("ENTER")
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "ENTER"
Set WshShell = Nothing
Browser("iSEM").Page("iSEM").WebElement("WebElement_2").ClickResult: It will enter Admin1 {ENTER} in search fill
'2. Sendkey