Seminko Posted February 5, 2016 Posted February 5, 2016 Hey fellas, I'm looking for an easy way to get an URL from an active browser. Now, I know about chrome and IE includes but the script I'm writing will be used by users with different browsers, obviously. I can imagine have both IE and Chrome includes in the script, identifying what browser the user uses etc but I was wondering if there is any other easier way. Thanks Seminko
InunoTaishou Posted February 5, 2016 Posted February 5, 2016 The only universal method I know is highlighting the address bar using F6 (when the browser is active). Since there is no control to get info from on any browsers F6 or Alt+d will select and highlight the url in the address bar, then you can send Ctrl+c to copy it Seminko 1
Seminko Posted February 5, 2016 Author Posted February 5, 2016 That's fair enough! Just tried in Chrome and IE. Do you know if it works for other browsers?
InunoTaishou Posted February 5, 2016 Posted February 5, 2016 (edited) I'm using Firefox and it works, I've used it in Internet Explorer 11, 10, and in Chrome. I don't know about any other ones but those are the 3 most popular browsers. Download and try it on Safari. I don't know about Spartan (IE's replacement) but I'm assuming it will do the same, since it's Microsoft. Edited February 5, 2016 by InunoTaishou
junkew Posted February 7, 2016 Posted February 7, 2016 Another one can be this one but F6 is a very neaty trick to reach same result FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now