Internet Explorer - Rich Text Editor - Select All/Replace

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Franklin
Newbie
Posts: 16
Joined: Mon Dec 14, 2015 5:14 pm

Internet Explorer - Rich Text Editor - Select All/Replace

Post by Franklin » Mon Dec 14, 2015 6:07 pm

Hello,

Ran into an issue I could use some advice on how to approach. The web form is using a rich text editor.
The goal is to Select all text, delete and replace with new/updated text.

No problems getting to the editor field. In most cases, I've used CTRL + Shift + End to select all text and then send a delete.
However, this does not work if the Rich Text editor has a HTML table in it.

I want to be able to use (CTRL A + Delete) feature to clear all data in the rich text editor.

I am using Internet Explorer 11 to navigate to the site. I can manually perform the actions I require, however I cant seem to automate select all & delete. I've attempted several different ways to accomplish this:

This entry works for non HTML Tables:
Press CTRL
Press Shift
Press End
Release CTRL
Release Shift
Press Del

To delete the HTML tables, I've found I can manually do it two ways:
1. Using quick shortcut keys, I can manually send a CTRL + A then delete. It works.

In the Script, this doesn't work:
Press LALT
Press ea
Release LALT
Press Delete

2. Using IE Menus, I can use the ALT +E then A (Edit Menu, Select All) Then ALT + E then T ( Edit Menu, Cut)

In the Script, this doesn't work:
Press LALT
Press ea
Release LALT
Press LALT
Press et
Release LALT

I cannot automate either one of the two methods. Is Focus being lost?

Can anyone shed some light on how to accomplish the menial task?

User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Internet Explorer - Rich Text Editor - Select All/Replac

Post by JRL » Tue Dec 15, 2015 2:44 am

The Press command doesn't work with alphanumeric characters, you need to use the Send> command instead.

Code: Select all

Press LALT
Send>ea
Release LALT

Franklin
Newbie
Posts: 16
Joined: Mon Dec 14, 2015 5:14 pm

Re: Internet Explorer - Rich Text Editor - Select All/Replac

Post by Franklin » Wed Dec 16, 2015 2:39 pm

Thank you for the kind response.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts