"Right Click" in Selenium IDE to bring up the Context Menu - contextmenu

How can you bring up the context menu (as if you were right clicking on an element on a page) so you can see the context menu in the browser?
I see the contextMenu and contextMenuAt commands are available, but they always seem to pass the "T" flag so that the link opens in a new tab. I don't want that. I want the menu to come up so I can simulate a 'k' keypress and have the file download to my desktop.
How do you pass a switch/param to contextMenu and/or contextMenuAt so that you can actually do more than just open whatever in a new tab?

Related

When tinymce uses a new window to open a hyperlink, can you just click to jump instead of ctrl key and click?

In tinymce, I want to click a hyperlink to jump to a new window without adding ctrl. Is there any way?

youtube right click menu

I just logged into youtube and found out that they replaced my context right click menu with their own. If I want to use regular one, I have to double click my right mouse button.
Is there any way to turn that off? I just want my old regular right click context menu

imacros changing focus to second firefox window

We are trying to create a script that can click on a button that appears in a second window (not a tab in the same window) but do not seem to be able to get iMacros to change its focus to a new window.
Can iMacros cross browser windows in a single script?
The webpage flow is:
- browser window directed to a URL
- Click a button in that page
- a new window is opened
- click a button in that window
You can try to make the browser show this pop-up in a new tab of the same window.
Let's suppose that your button html code looks like this:
<button id="popupbut" onclick="window.open('http://popupUrlHere', '', 'width=300,height=300,left=50,top=50,menubar=no');">New window</button>
So, here is a macro to do the above mentioned thing:
SET !EXTRACT_TEST_POPUP NO
TAG XPATH="id('popupbut')" EXTRACT=HTM
SET popupUrl EVAL("'{{!EXTRACT}}'.match(/(http:.+?)['"]/)[1];")
TAB OPEN
TAB T=2
URL GOTO={{popupUrl}}
I think this direction should be right.

Adding "Paste" to the Shell Context Menu

I am using this routine to pop up the Shell Context Menu for a file name which is working well, except for one thing.
How to pop-up the Windows context menu for a given file using Delphi?
When I click "Copy" the menu closes as expected. If I move to another Folder or stay in the same one, when I right-click again for the Context Menu, it has no "Paste" option. Not even a grayed out one. I checked on the Poster's blog as mentioned in his Edit at the bottom, but that new routine crashes with Incorrect Parameter.
Can someone please assist with adding "Paste" to the original routine in the above link
Thanks
Look for TClipboard (library/uses ClipBrd). Using this you can manage a cliboard on Delphi.
More information: Basic CLipboard Operations
Obs.: You can use "Actions" too, depending your needs. See ActionManager component, and Action properties of your popupmenu.

How to set Menu Help Text in Window Custom ShellExtension popup menu Item

I need to set the menu help text of my shell context menu popup menu item just like winzip shellContext menu. I tried IContextMenu_GetCommandString but it is only setting menu help for sub menus of my main popup menu. Please help me and let me know how to set the menu help for my main poup menu?
Thanks
In case you haven't solved this already, here is what worked for me.
You need to insert your popup menu into the explorer menu using InsertMenuItem, as described here. This allows you to give your popup menu an ID.
The shell passes that ID into IContextMenu_GetCommandString when querying the items, by way of checking for that ID you can return any help string you need.
However, it may simply not be displayed if you right-click on a folder in the (left) folders pane of explorer, and not in the files pane to the right. On my system, if one or more elements are selected in the files pane, the properties (type, size, name and some more stuff) are displayed in the status bar, even if I right-click on any folder in the folders pane.
This seems to be standard behaviour - at least on my system it's the same for all installed custom extensions and even for the default explorer menus.

Resources