3

I am automating a JS process running on a web page. If I click 'ESC key', my main page loads. I am trying to automate using Robot Framework and Python. I checked Press Key \27 but its not working. Can someone please point me how to handle it.

5
  • Did you press and release it?
    – Yu Zhang
    Jul 23, 2018 at 21:12
  • Yes, manually if I press and release 'ESC' key, it works. I am trying to find the equivalent python statement. Jul 23, 2018 at 22:42
  • Thanks for your response. I tried but no luck. Jul 26, 2018 at 11:19
  • "I am automating a JS process running on a web page. If I click 'ESC key', my main page loads. I am trying to automate using Robot Framework and Python. I checked Press Key \27 but its not working. Can someone please point me how to handle it." To above sentence, even I am facing same issue. Can you please help me to resolve this? I tried your resolutions but didn't work for me. I am using Selenium2library. Sep 23, 2021 at 15:35

2 Answers 2

3

If you are using SeleniumLibrary with Robot framework, then you use the Press Keys keyword for send ESC key on the currently active browser. If you use the excel format editor, then

Press Keys | None | ESC

OR if you are using the Text editor, then

Press Keys    None    ESC

Let me know if this worked for you.

0

This video explains Press Keys keyword for all keys, https://youtu.be/hxQr_zuIhDw

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.