Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Feature Idea: A way to simulate a user hitting the enter key

feature-idea

#1

I want to test search functionality and there is no “submit” button.

I understand there is a .submit() method, but I am not using a form. I found a selenium method called .keyPressNative() but it doesn’t seem to be supported.

Would appreciate it greatly if someone could point me in the right direction.

Thanks!


New Relic edit

  • I want this, too
  • I have more info to share (reply below)
  • I have a solution for this

0 voters

We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.


How to send "ctrl + a" key in the script
How to send "ctrl + a" key in the script
#2

hi @lefurjah,

currently we cannot simulate the user hitting specific keys. However I will lodge a feature request on your behalf so that this idea can be considered by our product management team.

I would love to hear if anyone in the community has found a way around this.


#3

@tdoherty: Thanks for that. I appreciate it.


#4

Hi @lefurjah,

I assume you have an “input box” (i.e. an input tag).
When you use sendKeys() to type into that box, try to append \n: ChromeDriver should interpret it as typing ENTER on the keyboard.

Let me know.
Otherwise we can find some other way.


#5

Hi,
Is there a command one can pass to mimic “select all” step in the scripting.
I tried various options like send keys ("\a") , send keys (“ctrl+a”) but none worked out. Looks like the options available in selenium don’t work in relic scripting
Also found out that new relic doesn’t have any support on this.


Any update on this or workaround for this issue?
Thanks


#6

No update to share right now, @Edur.Boyinipalli! Thanks for checking in—please be sure to participate in our poll above. That way our Product Manager can see how this feature will benefit you and your team.

Thanks!


#7

Thanks for getting back. I did vote in the poll.


#8

Thank You. This tip was awesome !!!