While doing Practice2 of Lesson 4 , during web recording and typing the content(Weather in london) and pressing enter and then selecting send hotkey button , this text(enter) is being added into my search text(The hotkey which is being typed. In this case it is enter). How do I prevent this?
Yep I am doing the same way as you have mentioned. But according to the Practise exercise 2 of Chapter 4 we have to use the send hotkey control from recording menu to capture send hotkey activity after typing ‘weather in london’ and pressing enter.
Thanks for the .xaml file. I have attached mine .xaml file as well. Request you to have a look . The only difference I can see between your and mine recording is that while sending hotkeys they are not being taken as Type input. Also the special key checkbox is not checked when recording is done.
Instead of entering anything in the dialog, move your mouse outside the dialog and hit “Enter”. In my case, that gets the search to New York weather, and the rest of the workflow performs as expected.
Save and edit the sequence. In the section of the recording sequence titled “Send hotkey ‘iexplore.exe Google’”, look at the dialog box - it now has an arrow for the dropdown.
Click the dropdown, and choose “enter” from the list, then press “Enter” on your keyboard. This section of the sequence should now look like this:
Now all you have to do is customize the sequence as described in the walkthrough, that is, change the output of 'Get full text ‘SPAN wob_tm’ to a variable you create called ‘temperature’, and add a message box next, right before the “Close browser” activity. Here’s the result:
So it works. I just created this from start to finish while I was entering this reply, so it does work. The key to this is the workaround described in 2) above.
@badita, I think this may actually be a bug. Perhaps it is only in some Windows versions.
The behaviour you’ve mentioned is explained in our Academy foundation course. Basically, if you have simulate type on, it will literally type [k(enter)] into whatever fields you have active. However, with it set to off, it will work as an Enter key press.