Unskilled Posted January 9, 2014 Posted January 9, 2014 Hello everyone, I am sure someone,somewhere,sometime asked this exact question but I just can`t find it. I have a little bit of skill in programming. I need to make a script that will open multiple tabs in IE and login to the pages accordingly,this is what I came up with; Call ("Login") Func Login () ;google Global $oIE = _IECreate ("https://accounts.google.com/ServiceLogin?service=mail&continue=https://mail.google.com/mail/&hl=hr") Local $username = _IEGetObjByName ($oIE,"Email") Local $password = _IEGetObjByName ($oIE,"Passwd") Local $login = _IEGetObjByName ($oIE,"signIn") _IEFormElementSetValue ($username ,"yourusername") _IEFormElementSetValue ($password , "yourpassword") _IEAction ($login, "click" ) ;yahoo Global $oIE = _IECreate ("https://login.yahoo.com/config/login?.src=fpctx&.intl=us&.done=https%3A%2F%2Fwww.yahoo.com%2F) Local $username1 = _IEGetObjByName ($oIE,"username") Local $password1 = _IEGetObjByName ($oIE,"password") Local $login1 = _IEGetObjByName ($oIE,"password") _IEFormElementSetValue ($username1 ,"yourusername") _IEFormElementSetValue ($password1 , "yourpassword") _IEAction ($login1 , "click" ) ;EndFunc Obviously the script works but opens multiple IE browsers not tabs. Google and yahoo are used for refference only. Any help is appreciated. Thanks in advance I can do everything and nothing
Danp2 Posted January 9, 2014 Posted January 9, 2014 You can open a new tab using __IENavigate (note the double underscore; search the forum for some examples). Latest Webdriver UDF Release Webdriver Wiki FAQs
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