Suppose I right-click on an image or a link (or some other element) in the browser. How can I arrange to have a script invoked afterwards that receives data about the clicked element?
Thanks for any discussion.
Related
I want to see what HTTP request was made (through the network tab in dev tools) in a specific tab. The problem is the tab is automatically opened on a click of a button to provide you a download form and is immediately closed.
Trying to spy SAP system through BluePrism for SAP Automation.
When I click Identify button from BluePrism application modeller and move my mouse over to the T-Code textbox , then the text Box is highlighted using a red color box which says the TCode element is recognize by BluePrism tool in SAP test system. however the same is NOT identified for SAP Production system.
We checked both SAP system has same settings maintained to enable SAP GUI Scripting.
Appreciate help!
I don't know if it solves your specific problem, nevertheless:
Pressing alt multiple times will change the spy method, and you'll be able to find what you're looking for (even a method specifically for SAP).
please check if the SAP Id of the item is the same in both systems. You can do it for example by identifying item in both systems. Please return with the answer what's the difference in ID between the systems.
If you are starting out with SAP Automation in your organisation, you will probably not have GUI scripting enabled in the Production system, but it may be in the DEV system.
If you can access SAP then run RZ11 and enter sapgui/user_scripting then it will show a list of values, and the current value should be true. Compare DEV and PRD. You will probably need the SAP Basis admin to change this.
Read this blog for more details
Andy
For the best SAP automation performance with Blue Prism you need to enable both Client and Server scripting
i. Enabling Client-Side Scripting
Start the SAP Logon and log in to the SAP server.
Click the 'Customize Local Layout' toolbar button (ALT+F12).
Click Options and in the GUI Options screen select the 'Accessibility and Scripting' node
In the ‘Accessibility’ node ensure that the ‘Use Accessibility mode’ option is enabled.
In the 'Scripting' node ensure that the ‘Enable scripting’ option is the only option set. Notifications must be switched off to prevent popups from blocking the spy mode.
NOTE: If the options 'Notify when a script attaches to SAP GUI' check box and the 'Notify when a script opens a connection' are left checked then when you spy an element in the SAP interface you will see the message “A script is trying to attach to the GUI” every time you attempt to click on it. If you see the message “Scripting support is disabled by the user” then the ‘Enable scripting’ option has not been checked.
Save the settings and restart the SAP GUI. The clientside settings have now been set.
ii. Enabling Server-Side Scripting
Start the SAP Logon and log in to the SAP server.
Run the ‘RZ11’ transaction (type ‘RZ11 ‘and click the green tick button)
Type ‘sapgui/user_scripting’ in the Maintain Profile Parameters window.
Click the ‘Display’ button
Click ‘Change Value’ in the Display Profile Parameter Attributes window.
Type ‘TRUE’ in the ‘New value’ field.
Save the settings and log out from SAP Logon.
Exit from the SAP Logon program (click the red cross button in the toolbar, or click the ‘X’ window button to close the window and the application). You may be prompted to save any unsaved changes, if you haven’t done so already.
I am trying to setup xPage as Welcome page for notes client and to be deployed via policies. Only issue it opens up 2 window, one which is Bookmarks.nsf frameset and second one is the xPage. Tried many different ways to close frameset, but some internal setting doesn't like this since its a welcome page frame... any ideas or if somebody has done similar project.
I tried opening a view thru welcome page which opens up the xPage and then to close the view in Postopen event, but no luck. also tried same with Form.
Appreciate help .. badly stuck in it.
One way to do that is:
open your xpage in the client
right click on the tab and create a new bookmark for it
right click on the newly created bookmark and click "set bookmark as home page"
I don't know if you can do that via policies, but at least it works if I do it interactively
You can set this by policy by adding to the ini
StartupDB =
That will load the NSF every time the client opens. This command does not respect the enforce flag as its enforced by default, do not set the enforce flag...
You can also set the nsf to replicate by policy so remote users will be able to open it as well.
We are using PowerShell to automate testing of our website.
The process is as follows:
We open a tab containing a report and then we click on the print button which opens a new tab which contains a printer friendly version of our report but then when we try to print the printer friendly page it still has focus on the originating page and not the newly created page. How would we get a handle on the new page so we can print it and then close it.
Any help would really be appreciated
Thanks
Richard
I would just ensure the browser is set to activate the new tab when it is created. In Firefox, this is done via Tools > Options > Tabs > "When I open a link in a new tab, switch to it immediately".
I'm sure there must be a similar setting in IE.
I have a c# desktop app which connects to a site via a web browser control. The problem is I need to navigate to a specific section and download a excel file which is generated from a postback. I would like to either automate this process or bypass the file download dialog and save the file directly to a local drive.
Problem
The link is not a standard url. The site uses a postback script to get the file needed which then displays the file download dialog box. E.g. When you click on the button (javascript: postback) the file download dialog box is automatically loaded.
As stated I want to bypass the save options and automatically store the file in a predefined location. Any help would be much appreciated.
I find AutoIt http://www.autoitscript.com/site/autoit/ very useful for these kind of tasks. If you want to integrate it with your C# app, then you can call your AutoIt script via system calls. The difficulty is finding and following the link on the page, that will depend on how the page is laid out.