Zips up flame suit. There is a chance this has already been answered but I was unable to find it.
I have been attempting to press the 'End' key while running my scripts against a WD endpoint and have thus far been unsuccessful.
I have a bunch of text boxes that need to scroll to the bottom before the buttons will activate and when executing locally I am able to satisfy this need via the 'End' key.
I have tried all of the following with no luck:
repo.documentsPage.doc1_box.PressKeys("{RControlKey down}{End down}{RControlKey up}{End up}");
Error: The escape group {RControlKey down} is not supported by the web driver.
repo.documentsPage.doc1_box.PressKeys("{End}");
Error: The escape group {End} is not supported by the web driver.
Keyboard.PrepareFocus(repo.documentsPage.doc1_box);
Keyboard.Press(System.Windows.Forms.Keys.End, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
Error: Cannot perform a local keyboard action on a mobile element.
I hope I am just over looking something simple, and I am using the wrong key words in my Google search but I have come up with nothing else to try here (regarding an 'End' key press).
So I ask the forum and it's infinite wisdom if they could assist me with this.
Thanks!
Press 'End' key during WebDriver execution
- BrotherCarson
- Posts: 5
- Joined: Mon May 15, 2017 8:21 pm
- Location: Dallas, TX
- BrotherCarson
- Posts: 5
- Joined: Mon May 15, 2017 8:21 pm
- Location: Dallas, TX
Re: Press 'End' key during WebDriver execution
Ranorex version: 9.0.0
Local and remote OS: Win 7
Whoops forgot to post this.
Local and remote OS: Win 7
Whoops forgot to post this.
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Press 'End' key during WebDriver execution
Hi BrotherCarson,
Thank you for your post.
Unfortunaltey, the excape groups for pressing the "End" key are not supported on a webdriver endpoint.
However, you can implement a workaround using Selenium code:
Please let us know if this helps, or if you need assistance implementing this code.
Kind Regards,
Stephan
Thank you for your post.
Unfortunaltey, the excape groups for pressing the "End" key are not supported on a webdriver endpoint.
However, you can implement a workaround using Selenium code:
Please let us know if this helps, or if you need assistance implementing this code.
Kind Regards,
Stephan
- BrotherCarson
- Posts: 5
- Joined: Mon May 15, 2017 8:21 pm
- Location: Dallas, TX
Re: Press 'End' key during WebDriver execution
Yep, worked like a charm! Thanks for the assist.Support Team wrote: ↑Mon Mar 25, 2019 1:36 pm
Please let us know if this helps, or if you need assistance implementing this code.
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Press 'End' key during WebDriver execution
Hi,
That's great!
I'm glad I could help.
Regards,
Stephan
That's great!
I'm glad I could help.
Regards,
Stephan