Is it possible to automate a login page using vba which has a mousedown and mouseup clicks . When i click a login button it has a mousedown click as it doesn't have any button in order to automate using vba.
Please let me know if its possible to do so in vba using some functions
Please copy the URL and paste in internet tab: "http://discovery.ariba.com/rfx/3796429". After clicking the URL you will enter to Ariba Discovery site and there you have this Ship to Service location field. In that ship to service location field there are multiple locations and we need to click on "Show more". To click show more if we see the html code it's not a button in order to automate the click. It's awmouseup and aw is the page name i guess. I would recommend you yo use google chrome and try inspecting the html code. I need to automate the click using VBA code.
ie.document.getElementById("_sbsyf").click
should do it
Related
Using PF10 (in a JoinFaces project), I'd like the Upload File dialog for choosing a file to show up when the page loads (i.e., without waiting for the user to click on the Choose button of <p:fileUpload/>). How can I do that?
You could use client side API show() function for this. But it seems more and more browsers are blocking triggering a click by script on an input type="file". See https://github.com/primefaces/primefaces/issues/7772
You could take your chances and try to hijack a mouse move event to trigger a click on the upload input, which is answered on this question: In JavaScript can I make a "click" event fire programmatically for a file input element? But I don't really like that hack.
Our website is currently being created on WordPress, and we will soon have a large resource centre for PDF downloads. We need to be able to capture user data before customers download the PDF files - however we need to keep the forms hidden and only display the download title, before clicking on the link.
Is there a plugin or some code already created that can do the following:
Using download monitor (or another plugin), add an extra checkbox field labelled 'Request a form'
If the 'Request a form' checkbox is ticked, when a user clicks on that download link, an overlay form will appear
Once they've filled in the form details their download will automatically be emailed to them.
Any help would be much appreciated, or any other suggestions!
Looking for the same thing, any progress? Im looking for the same Form to Download Link protection, for each link to a download file to pop-up a contact form before you can download.
Using Google Apps ScriptI created a panel with a submitbutton and an anchor .
If the user clicks on the button I want to activate the anchor and perform its actions as if it has been clicked itself.
So I thought generating a mouseclick on the anchor by CreateEvent would be sufficient.
But I can't find a way to generate that clickevent.
How can I do that(or achieve my goal differently) ?
You'll want to just assign the same client / server handlers that the anchor has to the submit button. Try a regular button instead of submit if a form isn't involved. Can't create a mouse click event through code either.
I am trying to make a youtube downloader. This works via the webbrowser , so for example the user types in the link of the youtube video in my textbox1 and the webbrowser redirects to "mp4.ee" and inserts the link and then it automatically clicks download. However once you click download on mp4.ee, another download button appears. And here lies my problem, if I click on the second download link it will ask me to save the file however I want to find out the link of the second download button since I want my program to download the file automatically with it's downloader.
My codes:
Code to insert link into mp4.ee and press download:
WebBrowser1.Document.GetElementById("Form").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("Button").InvokeMember("click")
Application.DoEvents()
With this code it click the second download button which then asks you to save the file however I want to find out the link this button contains in string format:
WebBrowser1.Document.GetElementById("PopupWindowButton").InvokeMember("click")
You can use JQUERY.
$("#Form").val(""+value); //get value
$("#Button").click(function() // event click of button
{});
see this try.jquery.com functions
I am looking for a way to navigate to a URL using a button in my Google Apps Script UiApp. I have added an on click server handler to the button, and once the event is triggered I would like to navigate to a different URL.
Is there a way I can do this in a server side handler ?
Many thanks
Relax_Im_A_Quant there is no way to have a server handler send the user to another URL. They have to click on a link.
However, there is a way to achieve similar results and may suit your needs.
You can add, remove and change the visibility of the elements in your UiApp.
For example, have a search box that starts visible and a results panel that starts not visible. When the server handler is called the search box is changed to not visible, the results panel changed to visible and the results are added to the results panel. You can turn off the visibility of a whole panel and turn on the visibility of a another.
In one of my apps that creates a document for the user, it would add a link to the document to the UiApp and then make it visible when the 'create document' button was pressed. It would prompt the user to click the link after it appeared -- taking them to the document (a new URL).