This is the test page I'm using
A clock component is used to inject the values after the page has been completely loaded.
Note: the values are already available on the webpage, you can see them after button click.
Tested successfully using a Nexus 5X running Android 7.
Q1: How can I push this button?
<div class="buttonBar"> <button type="submit" class="button" title="Send the message"> <span class="caption">Send</span> <span class="ico">the message</span> </button> <p id="something"></p> </div>
A: The provided solution works only for elements, which have an id, here you can use the document.getElementById() method to get the element.
In your case the button does not have an id (the button is the part in blue), therefore you have to use another method to identify the button, for example the method document.getElementsByClassName().
Q2: How can I get a multiline text? I tried \n, \r\n, <br> without success.
A: See this stackoverflow answer. Use <br> in your text as newline character and use the following modified inject procedure to replace <br> to get a new line
Q3: How can I check a radio button with no id?
A: See this stackoverflow question and answer.
I can help you: for one hour I charge 25 USD.
Please contact me at info [at] puravidaapps [dot] com for details!
For questions about App Inventor, please use the App Inventor forum. Thank you.
If you find this example helpful and you are using it in one of your projects,
be nice and donate a small amount!
or donate some mBTC to Address:
Thank you! Taifun
This work by Pura Vida Apps is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License
with attribution (name=Pura Vida Apps and link to the source site) required.