Hello guys,
How to do tab 5 times, to get to a text box then use a keyboard command to type the text in a text box field, then another tab again to go to a save button then press enter the save button using only the keyboard commands?
How to do tab 5 times, to get to a text box then use a keyboard command to type the text
-
- Posts: 6
- Joined: Tue Dec 14, 2021 1:13 pm
Re: How to do tab 5 times, to get to a text box then use a keyboard command to type the text
To limit to just the Keyboard, you can do something like: (untested)
See https://www.ranorex.com/Documentation/R ... ess_12.htm
Alt #1: You could do a recording of these specific actions and turn it into user code.
Alt #2: Search the boards: search.php?keywords=PressKeys
Alt #3: Look at the technical docs https://www.ranorex.com/Documentation/R ... ess_10.htm
Code: Select all
Keyboard.Press("{Tab}, 300, 5");
Keyboard.Press("<your string value here>", 300);
Keyboard.Press("{Return});
Alt #1: You could do a recording of these specific actions and turn it into user code.
Alt #2: Search the boards: search.php?keywords=PressKeys
Alt #3: Look at the technical docs https://www.ranorex.com/Documentation/R ... ess_10.htm
-
- Posts: 6
- Joined: Tue Dec 14, 2021 1:13 pm
Re: How to do tab 5 times, to get to a text box then use a keyboard command to type the text
Still no joy, I can manually tab is 5 times and then enter the text box but that code didn't work I'm afraid
I've also tried Keyboard.Press(Keys.Tab), Keyboard.Press("{TAB}") and Keyboard.Press("{Tab down}")
I've also tried Keyboard.Press(Keys.Tab), Keyboard.Press("{TAB}") and Keyboard.Press("{Tab down}")
-
- Posts: 6
- Joined: Tue Dec 14, 2021 1:13 pm
Re: How to do tab 5 times, to get to a text box then use a keyboard command to type the text
I did notice the dilogue box isn't in focus, but how do you go about making a dialogue that has no properties in focus
Re: How to do tab 5 times, to get to a text box then use a keyboard command to type the text
Click on the caption bar, or use the Ranorex API to adjust focus to the dialog.
-
- Posts: 6
- Joined: Tue Dec 14, 2021 1:13 pm
Re: How to do tab 5 times, to get to a text box then use a keyboard command to type the text
Can you provide the code for this please?
-
- Posts: 6
- Joined: Tue Dec 14, 2021 1:13 pm
Re: How to do tab 5 times, to get to a text box then use a keyboard command to type the text
testingtesting123 wrote: ↑Mon Mar 13, 2023 10:16 amCan you provide the code for this please bearing in mind there are no elements in the DOM?