Raith Posted June 3, 2015 Share Posted June 3, 2015 (edited) Hi folks. I'm learning how to properly use AutoIT to create automations, for program clicking and such, it is easy because I can just snap references using the Window Tool. However, I'm trying something else, and I want to work on this and see if it will work. My idea is essentially this:Log into Facebook (facebook.com)Access a particular URL path (https://www.facebook.com/groups/?category=membership)Click into the objects to do a "mass removal" of groupsI am hitting a problem where, for example, the group buttons are spans such as:<i class="_54-i img sp_U0hSS2umViQ sx_04bb31"></i>So far, my app goes as far as this:#include <IE.au3>Local $oIE = _IECreate("www.facebook.com")Local $userName = _IEGetObjByName($oIE, "email")Local $password = _IEGetObjByName($oIE, "pass")Local $button = _IEGetObjByID($oIE, "u_0_n")_IEFormElementSetValue($userName, 'emailHere')_IEFormElementSetValue($password, 'passHere')_IEAction ($button,"click")Edit - I have been playing with other things too and sometimes get this error: $_IESTATUS_COMError (-2147352567)I searched through Google on what it means and I simply don't know. Also, if I add the following to the above code, I am not even getting logged into facebook. _IENavigate($oIE, "https://www.facebook.com/groups/?category=membership") Can someone assist as to how I would properly do something like this? Thanks! Edited June 3, 2015 by Raith Link to comment Share on other sites More sharing options...
junkew Posted June 3, 2015 Share Posted June 3, 2015 See examples iuiautomationSee ie.au3 ff.au3 chrome.au3See java.udf FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Raith Posted June 3, 2015 Author Share Posted June 3, 2015 See examples iuiautomationSee ie.au3 ff.au3 chrome.au3See java.udf I know about ie.au3 and chrome.au3, I will check the others. Thank you for your suggestions. Link to comment Share on other sites More sharing options...
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