Question
Tata consultancy services(TCS)
IN
Last activity: 6 Nov 2018 20:02 EST
how to send keys to chrome
I want to use send keys to chrome browser like IE I cannot get the browser window control to do same.. so is there any alternative
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
You will need to switch to the Windows Control tab when interrogating. Here you can create a control from the Chrome Legacy Window. Just right click on it and select Create Control. Remove the default Control ID match rule or else it will most likely only match until you close the browser.
You can rename the resulting control - it will have a generic name. In this example I have named it browserWindow.
This control will allow you to send keys to the browser screen. You will not be able to guarantee which control will process the keys however.
Tata consultancy services(TCS)
IN
I have tried this already but send keys does not seem to work though the function is enabled.. I am trying to send TAB key. is there any alternate measure where I can send keys using the chrome.exe directly
Tata consultancy services(TCS)
IN
I can find the SendKey Method in the testmethods of the control but cannot find it in the Object explorer methods. Please tell me the way for it
EY
US
Hi Jeff, I'm not able to see any window listed on the windows tab after click list windows. Do you have any idea what's the problem? My studio version is 8.0.1071
-
John Pritchard-Williams Cloe Walker Ravi Kumar Pisupati Kensho Tsuchihashi Yogesh Wankhede and 5 More
Updated: 3 Apr 2017 7:55 EDT
Pegasystems Inc.
US
I am not sure what you are doing but this works just fine for me. SendKeys is available in the Object Explorer as you can see in this graphic:
I set up a small test form that would take a string and when I put {TAB} in the textbox it sends a tab to Chrome as expected.
Covenant Transportation Group Inc
US
Hey Jeff,
Any idea why nothing would be showing up in the Windows tab while interrogating in chrome? I swap to the tab and click the 'List Windows' button, but nothing shows up.
This is making it a little difficult to follow along with this solution haha. I know this question is pretty old, so if there is a newer, better solution these days that would be great too.
Thanks!
Pegasystems Inc.
US
There has been a change to support for Chrome and as a result this post no longer applies. This change was made in 8.0.1027. Here are the release notes for it:
This hotfix adds support for running multiple Universal Web Adapters simultaneously to automate the Google Chrome browser. Here are some additional benefits:
- Chrome can be running when you start a Chrome Universal Web Adapter. The adapter catches up with the top-level documents that are already running.
- There are now multiple ways to close a document within a Chrome browser. For instance, you can stop the browser, stop just matched documents, stop all tracked documents, or do nothing. For more information, see the BrowserStopMethod property.
- Tabs are now accurately tracked while interrogating and at runtime. Controls correctly highlight the selected tab’s controls as the interrogation cursor moves over each Chrome window.
- Because all documents are visible to all Chrome Universal Web Adapters, use the new AcceptedDomains property to specify which domains the adapter should recognize. This lets you focus the adapter on only the documents that you want it to process.
Note these other changes:
There has been a change to support for Chrome and as a result this post no longer applies. This change was made in 8.0.1027. Here are the release notes for it:
This hotfix adds support for running multiple Universal Web Adapters simultaneously to automate the Google Chrome browser. Here are some additional benefits:
- Chrome can be running when you start a Chrome Universal Web Adapter. The adapter catches up with the top-level documents that are already running.
- There are now multiple ways to close a document within a Chrome browser. For instance, you can stop the browser, stop just matched documents, stop all tracked documents, or do nothing. For more information, see the BrowserStopMethod property.
- Tabs are now accurately tracked while interrogating and at runtime. Controls correctly highlight the selected tab’s controls as the interrogation cursor moves over each Chrome window.
- Because all documents are visible to all Chrome Universal Web Adapters, use the new AcceptedDomains property to specify which domains the adapter should recognize. This lets you focus the adapter on only the documents that you want it to process.
Note these other changes:
- The List Browsers and Frames button is now the List Windows and Documents button. When you click this button, the system displays all tracked documents with the parent for each tracked document as the browser form that the document resides in. This indicates that the relationship between a top-level document and its form is dynamic. You can tear off a tab into a new form or drag a tab from one form onto another and join it to that form.
- To implement this feature, Studio/Runtime no longer injects native modules into the Chrome process. Instead, the Pega Robotic Automation Chrome extension is loaded in Chrome. This means that the following form-level functions, which require native injection, are no longer supported for the Chrome browser:
- Reparenting
- PerformClick
- SendKeys
- Focus/Focused
- GetFormAbove/GetFormBelow/GetActiveForm
- All events
Pegasystems Inc.
US
If you really need to use sendkeys for chrome you could try having a monitor all adapter that points to chrome this should allow you to interrogate the frame so you can sendkeys.
Covenant Transportation Group Inc
US
Hey that sounds promising, any tips on how to do this? I'm relatively new to the software :(
I got what im trying to do working with IE and SendKeys, but I'm wanting to try and get it working with Chrome, to avoid a windows security popup that I cant seem to interrogate and automate when the user trys to log in with IE.