Can anyone help me to create an automation to submit content to this form?
form link: IAEN - Instituto de Altos Estudios Nacionales - Universidad de postgrado
What is the problem ? it’s very easy
Add screenshot of your work, because it’s a simple macro this
Thanks dear,
here is my JSON code and it’s not working when playing it
code:
{ "Name": "again 1", "CreationDate": "2019-10-26", "Commands": [ { "Command": "open", "Target": "http://estadoycomunes.iaen.edu.ec/index.php/EstadoyComunes/comment/add/228/0", "Value": "" }, { "Command": "click", "Target": "id=title", "Value": "" }, { "Command": "type", "Target": "id=title", "Value": "What type of Tribute should I send?" }, { "Command": "selectWindow", "Target": "title=Editor del código fuente HTML", "Value": "" }, { "Command": "click", "Target": "xpath=//*[@id=\"commentBody_code\"]/span[1]", "Value": "" }, { "Command": "type", "Target": "id=htmlSource", "Value": "<img src="https://www.thepinkandpassionateflorist.co.uk/images/gallery-3.jpg" alt="Funeral flowers" width="300" height="200" /><p class="content-page_article-text">Choosing the right flowers for a funeral is often dictated by one's relationship to the recently deceased or bereaved. Our guide to <a href="https://www.thepinkandpassionateflorist.co.uk" target="_self"><strong>Funeral Flowers</strong></a> provides insight and guidance to help you choose the correct item for the occasion. In some cases a theme for the funeral flowers may be requested, such as a colour scheme or perhaps a specific variety of flower, it may be advisable to check with the family so that you can select a Tribute item accordingly.</p><p class="content-page_article-text">Casket Sprays or Funeral Crosses are usually selected by close family members or by those undertaking the preliminary funeral arrangements.</p><span class="content-page_article-title">Our Funeral Tributes</span><p class="content-page_article-text">The eFlorist Tributes range caters for a wide variety of colour themes and floral schemes across a range of different funeral Tributes and should cater to every requirement and budget. There are many types of Funeral and Sympathy flowers to choose from.</p><p class="content-page_article-text">Choosing the correct Tribute can be a daunting prospect; this guide aims to provide some insight into the different types of funeral flowers and Tributes that are available from flowers for funerals. Our dedicated support team are on hand if you need further advice by simply calling <a href="tel:01913733623">0191 373 3623</a>.</p>" }, { "Command": "clickAndWait", "Target": "id=insert", "Value": "" } ] }
I create the macro for you, working like a charm ans support multiline message.
Macro Code
{
"Name": "AutoPoster",
"CreationDate": "2019-10-26",
"Commands": [
{
"Command": "bringBrowserToForeground",
"Target": "",
"Value": ""
},
{
"Command": "open",
"Target": "http://estadoycomunes.iaen.edu.ec/index.php/EstadoyComunes/comment/add/228/0",
"Value": ""
},
{
"Command": "waitForPageToLoad",
"Target": "10000",
"Value": ""
},
{
"Command": "type",
"Target": "id=posterName",
"Value": "YourPosterName"
},
{
"Command": "type",
"Target": "id=posterEmail",
"Value": "YourPosterEmail@email.temp"
},
{
"Command": "type",
"Target": "id=title",
"Value": "YourTitle"
},
{
"Command": "selectFrame",
"Target": "index=0",
"Value": ""
},
{
"Command": "editContent",
"Target": "id=tinymce",
"Value": "YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> "
}
]
}
Image
Still having the problem but thanks for your great support and I managed to be successful by my own code…
I use firefox to automate, what browser do you use?
With xtype you can solve any problem of form not detect, i can try in other mode to solve.
I am on Google Chrome
Thanks dude, it works very well on firefox
have you xmodules installed ?
It’s free I can automate in a different way but require xmodules
If you have installed xmodules (free or paid version) and it works i can automate in a different mode with keyboard emulation.
Yes, I have installed xmodules
Try in this mode (xmodules required to bypass frame).
I work with firefox only but i think it’s the same in Chrome.
To bypass the frame i skip field via tab key and detect field add message with xtype that do not require frame.
{
"Name": "AutoPoster",
"CreationDate": "2019-10-26",
"Commands": [
{
"Command": "bringBrowserToForeground",
"Target": "",
"Value": ""
},
{
"Command": "open",
"Target": "http://estadoycomunes.iaen.edu.ec/index.php/EstadoyComunes/comment/add/228/0",
"Value": ""
},
{
"Command": "waitForPageToLoad",
"Target": "10000",
"Value": ""
},
{
"Command": "type",
"Target": "id=posterName",
"Value": "YourPosterName"
},
{
"Command": "type",
"Target": "id=posterEmail",
"Value": "YourPosterEmail@email.temp"
},
{
"Command": "type",
"Target": "id=title",
"Value": "YourTitle"
},
{
"Command": "echo",
"Target": "Detect Focus For posterName Field Using Tab Key",
"Value": "#shownotification"
},
{
"Command": "click",
"Target": "id=posterName",
"Value": ""
},
{
"Command": "XType",
"Target": "${KEY_TAB}",
"Value": ""
},
{
"Command": "XType",
"Target": "${KEY_TAB}",
"Value": ""
},
{
"Command": "XType",
"Target": "${KEY_TAB}",
"Value": ""
},
{
"Command": "echo",
"Target": "Detect Focus For Cuerpo Field Using Tab Key",
"Value": "#shownotification"
},
{
"Command": "XType",
"Target": "YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> YOUR MESSAGE HERE LINE <br> ",
"Value": ""
}
]
}
Image
Can’t put any hypertext link
like:<a href="https://www.thepinkandpassionateflorist.co.uk"></a>
This problem must be solved escaping some characters.
Add the url and html code from Kantu Table Views, it’s automatically convert in json the special caracthers.
I tryed and working
Hey newuserkantu, I’m looking for some people who like helping others.
I’m trying to solve a problem as well as maybe start a collective of macro creators and music lovers. Let me know if you would like to get involved or help. Thanks!