iMacros TAG CONTENT doesn't works - imacros

I want to put text into the input on the page, but it doesn't belong to any valid form. How I can do it?
I tried:
TAG SELECTOR='<selector>' CONTENT='<content>'
and
EVENT TYPE=KEYPRESS SELECTOR="selector" KEYS=[keycodes]
But it doesn't seem to work

First of all,
CSS Selectors are only available in EVENT command with imacros add-on for firefox. But one need iMacros pro v11 to use CSS Selectors in TAG command.
So why cant you just do this
First, use imacros plugin in firefox for this, then go to Record -> Record Options -> Enable Experimental Event Recording Mode.
Then click record button and click the input box where you want to paste, the selector for the input tag will be recorded like so.
EVENT TYPE=MOUSEDOWN SELECTOR="html>body>div:nth-of-type(2)>div:nth-of-type(2)>input" BUTTON=0
Now what you actually need is only the selector address, this will be the path of the input tag where you want to place your text. So next you will paste the selector from the previous step into the below code.
SET !CLIPBOARD "text that is going to be placed in the input tag"
EVENT TYPE=KEYPRESS SELECTOR="html>body>div:nth-of-type(2)>div:nth-of-type(2)>input" CHAR="v" MODIFIERS="ctrl"
So lets check the above code on what is going on.
Line1: We set the clipboard variable of imacros to whatever text you want to insert.
Line2: Then the event tag is going to select the input tag will the selector that we manually inserted, Then we trigger a Ctrl + v through Imacros and the text is gonna get pasted.
I hope my explanation was clear and consise and hope it helped with your issue.
References:
How to select all copy and paste in imacros
How to extract text using CSS Selectors
imacros selector discussion

Related

Uncheck checkbox after alert message

I created dynamic action in oracle apex i.e when selecting more than one check box it displays that "to select only one checkbox" if i click ok button of this message the checkboxes should be unchecked
After the confirm DA, add another DA with plsql code
:PXX_CHECKBOX_ITEM := null;
items to submit ->
:PXX_CHECKBOX_ITEM
What Valerio wrote would work, but I am guessing this is to do with the apex.item stuff you have been dealing with.
You will need to add another DA that is triggered by clicking the ok button. Then you need to have the DA run Javascript code. Since I saw you were asking about how to run javascript, in this case you need to go into the true actions of the dynamic action and set the Action to Execute Javascript code.(For other Javascript code you can click on Page XX: Name of page in the Rendering tab on the left, and if you scroll down on the right there should be a section for Javascript)
And the Javscript code you need to execute to uncheck should be $s or something similair. https://apex.oracle.com/pls/apex/germancommunities/apexcommunity/tipp/6341/index-en.html is a good starting point on just these basics.
I actually tend to avoid interactive reports, I prefer Interactive Grids. But you do you. If you do get into Interactive grids I recommend you go through this: https://github.com/mgoricki/orclapex-ig-cheat-sheet

Vs 2017 rdlc: html in textbox is ignored

I'm trying to create a new report (rdlc) and I'd like to use html (b tag). Unfortunately, the tag is ignored and the tag is rendered as is. According to my searches, there should be an option for setting the contents of a textbox as html, but i can't see that option in the designer.
Does anybody know if this feature is still supported. If so what am I missing?
Right click on «Expr» not at text box,
Choose Place Holder Properties
In Markup Type Section Select HTML - Interpreter HTML tags as style
OK.
If Place holder properties option not coming after Right Click then try to select «Expr» and Right click on «Expr».
if you send <B>Imran Ali Khan</B> then It will be Imran Ali Khan

Submit form with iMacros

I know this might seem a lazy question, but I did not find a straight to the point answer yet.
When I type "submit form with imacros" on Google, nothing is clear to me.
And the official iMacros documentation talks about filling forms, but not about submitting them.
I saw that some examples use javascript:
URL GOTO=javascript:window.document.form.submit();
Other examples use CLICK with coordinates.
So, how do you submit forms with iMacros?
The most basic way to submit a form is via the submit button supplied at the page.
The easiest way to do so is to record clicking on it (FireFox iMacro addon -> Record tab -> Record , play with record options only if needed). The output will be saved under #Current.iim and will look like this:
VERSION BUILD=8970419 RECORDER=FX
TAB T=1
URL GOTO=http://demo.imacros.net/Automate/TestForm1
TAG POS=1 TYPE=BUTTON FORM=ACTION:/Automate/FormSubmitConfirm ATTR=TXT:Click<SP>to<SP>order<SP>now
iMacro will use attributes like html type, form action and the text on the button to identify it against others. Once recorded you can start messing around with attributes if you have additional needs.
Solutions like CLICK or javascript have a tendency to almost never work (for me personally) and are used in more extreme cases where the buttons change names/ids/locations in an unpredictable way.
If you want to press enter to submit then you can do this this works in CHROME imacros for me ..
EVENT TYPE=KEYPRESS SELECTOR="#react-root>SECTION>MAIN>DIV>DIV>ARTICLE>DIV:nth-of-type(2)>SECTION:nth-of-type(3)>FORM>TEXTAREA" CHAR="\r"

Sitecore content editor deep linking

In Sitecore 6, is there a way to deep link into the content editor? I'd like to bookmark something like
https://mysite.com/sitecore/shell/Applications/Content%20editor.aspx?item=/sitecore/Content/Data/foo
And have that bookmark go directly to that item in the content editor. Any ideas?
What you need to do is to use the fo parameter and item id instead of path, e.g.:
http://localhost/sitecore/shell/Applications/Content%20Editor.aspx?fo={4142d44b-2237-4795-b219-85e70420fced}
The ro QueryString parameter works, somewhat; for example: https://mysite.com/sitecore/shell/Applications/Content%20editor.aspx?ro=/sitecore/Content/Data/foo works, except it puts that item at the root of the content editor.
Anyone know how to show the whole tree with the specified item open?

Adding buttons for HTML elements to the Sitecore rich text editor

I would like to add a button to the Sitecore rich text editor toolbar, specifically one that inserts the H2 element.
I know the H2 element can be inserted using the paragraph styles pulldown menu, but all my editors are now using the bold button for their headings because they don't "see" the paragraph styles pulldown. So, I want to make the H2 easily available using a toolbar button. (And maybe even removing the bold buttons, since it's not semantic at all.)
But no matter how I go through the documentation, I cannot find a good explanation on how to do this.
In addition to the guide Yan posted, here's another guide.
I found a couple of walkthroughs for this...
Sitecore v6.3 and previous: link
Sitecore v6.4: link
Make sure that you select the core database (bottom right of Sitecore desktop) so that you can see the /sitecore/system/Settings/Html Editor Profiles area.
In my article here the first step of wiring up an event to a button is in javascript. From there you can insert text or tags. You can also get the selected text and wrap it in tags. You don't need to compile anything I was just showing how you would if you needed to, but you can entirely cut that piece out and just use the editor to send whatever text you want back to the wysiwyg editor.