At work we have 7 tools that I have to launch every morning. All the tools are on web pages.
So I have to open 7 links and click several buttons to launch the tools.
I would like to automate this operation. I used a C# code (similar to this one) which works fine
SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorer();
ie.Visible = true;
ie.Navigate("https://www.google.co.in");
//Wait for page to load
while (ie.Busy)
{
Threading.Thread.Sleep(100);
}
dynamic allLinks = ((mshtml.IHTMLDocument3)ie.Document).getElementsByTagName("a");
foreach (mshtml.IHTMLAnchorElement link in allLinks) {
//Do some validation to find out the required link
if (link.href.Contains("https://accounts.google.com/ServiceLogin")) {
link.click();
}
}
But actually we are not allowed anymore to use C# for licence reasons...
Is there any way to do that in HTML/Javascript ? (Open a link and click a button on it)
I'm not asking someone to do the work for me, but if you just have a nice tutorial or tip to look at it will be great.
Thank you.