allcapone1912 7 Posted March 26, 2016 Report Share Posted March 26, 2016 have some problem with changing attribute via ExBrowser for hotmail.com sign up page current code: plugin command("ExBrowser.dll", "ExBrowser CleanUp") plugin command("ExBrowser.dll", "ExBrowser Launcher", "Firefox", "", "") plugin command("ExBrowser.dll", "ExBrowser Navigate", "https://signup.live.com/signup") plugin command("ExBrowser.dll", "ExBrowser Wait For Dom Ready", 10) plugin command("ExBrowser.dll", "ExBrowser Type Text (Human Delay)", "x://input[@id=\'MemberName\']", $account data("Username"), 1, 100) plugin command("ExBrowser.dll", "ExBrowser Click", "x://input[@id=\'Password\']") wait($rand(3,5)) loop(5) { if($plugin function("ExBrowser.dll", "$ExBrowser Element Exist", "x://a[@id=\'suggLink\']")) { then { reset account("Any") plugin command("ExBrowser.dll", "ExBrowser Change Attribute", "x://input[@id=\'MemberName\']", "value", $account data("Username")) } } } so, what i need is to change username if current one is not available but dont find the solution with ExBrowserif username1 is not validate change to username2 ... I would appreciate someone for help Quote Link to post Share on other sites
allcapone1912 7 Posted April 6, 2016 Author Report Share Posted April 6, 2016 nobody gave me any ideasjust curious: it is not possible or just nobody saw my post? Quote Link to post Share on other sites
Learjet 27 Posted April 6, 2016 Report Share Posted April 6, 2016 This will get you past the email field: plugin command("ExBrowser.dll", "ExBrowser CleanUp") plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", "", "") plugin command("ExBrowser.dll", "ExBrowser Navigate", "https://signup.live.com/signup") wait(20) plugin command("ExBrowser.dll", "ExBrowser Move Mouse", "x://a[@id=\"liveEasiSwitch\"]") plugin command("ExBrowser.dll", "ExBrowser Click", "x://a[@id=\"liveEasiSwitch\"]") plugin command("ExBrowser.dll", "ExBrowser Type Text (Human Delay)", "x://input[@id=\'MemberName\']", "{$account data("Username")}{$rand(212,987)}", 1, 100) plugin command("ExBrowser.dll", "ExBrowser Send Special Key", "x://body", "Tab") plugin command("ExBrowser.dll", "ExBrowser Click", "x://input[@id=\'Password\']") wait($rand(3,5)) stop script loop(5) { if($plugin function("ExBrowser.dll", "$ExBrowser Element Exist", "x://a[@id=\'suggLink\']")) { then { reset account("Any") plugin command("ExBrowser.dll", "ExBrowser Change Attribute", "x://input[@id=\'MemberName\']", "value", $account data("Username")) } } } The easy way to get through stuff like this is to do it manually, write it down, then code your actions one by one, helped me out immensely using this little trick. Do one step and put 'stop script' after it and move along one step at a time. Peace,LJThat 20 second pause is annoying so you can probably trim that down a bit... Quote Link to post Share on other sites
allcapone1912 7 Posted April 10, 2016 Author Report Share Posted April 10, 2016 This will get you past the email field: plugin command("ExBrowser.dll", "ExBrowser CleanUp") plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", "", "") plugin command("ExBrowser.dll", "ExBrowser Navigate", "https://signup.live.com/signup") wait(20) plugin command("ExBrowser.dll", "ExBrowser Move Mouse", "x://a[@id=\"liveEasiSwitch\"]") plugin command("ExBrowser.dll", "ExBrowser Click", "x://a[@id=\"liveEasiSwitch\"]") plugin command("ExBrowser.dll", "ExBrowser Type Text (Human Delay)", "x://input[@id=\'MemberName\']", "{$account data("Username")}{$rand(212,987)}", 1, 100) plugin command("ExBrowser.dll", "ExBrowser Send Special Key", "x://body", "Tab") plugin command("ExBrowser.dll", "ExBrowser Click", "x://input[@id=\'Password\']") wait($rand(3,5)) stop script loop(5) { if($plugin function("ExBrowser.dll", "$ExBrowser Element Exist", "x://a[@id=\'suggLink\']")) { then { reset account("Any") plugin command("ExBrowser.dll", "ExBrowser Change Attribute", "x://input[@id=\'MemberName\']", "value", $account data("Username")) } } } The easy way to get through stuff like this is to do it manually, write it down, then code your actions one by one, helped me out immensely using this little trick. Do one step and put 'stop script' after it and move along one step at a time. Peace,LJThat 20 second pause is annoying so you can probably trim that down a bit... Thanks for your reply but still script is not working, again the problem is in Change Attribute Element part of your code that dont work: plugin command("ExBrowser.dll", "ExBrowser Change Attribute", "x://input[@id=\'MemberName\']", "value", $account data("Username")) the Xpath expresion "x://input[@id=\'MemberName\']" is correct and work for ExBrowser Type Text (Human Delay) but its not working for ExBrowser Change Attribute The problem should be in hotmail page source, ive look throw the html page source and there username not apear there in any way Quote Link to post Share on other sites
Bot-Factory 602 Posted April 10, 2016 Report Share Posted April 10, 2016 Thanks for your reply but still script is not working, again the problem is in Change Attribute Element part of your code that dont work: plugin command("ExBrowser.dll", "ExBrowser Change Attribute", "x://input[@id=\'MemberName\']", "value", $account data("Username")) the Xpath expresion "x://input[@id=\'MemberName\']" is correct and work for ExBrowser Type Text (Human Delay) but its not working for ExBrowser Change Attribute The problem should be in hotmail page source, ive look throw the html page source and there username not apear there in any way If type text works, just use type text. There is no advantage in using change element really.It always depends on how the site is coded. Some sites only work with type text. Because there is javascript that checks user inputs.On some sites you have to move the mouse to the element first. On some sites you have to click into the element first. Just test all the available options and pick the one that works. And type text is the clearner approach. It uses a direct API. Change attribute is using javascript. PS: For ExBrowser support, please use support(ad)bot-factory.com if you need direct help. Or post your question in the ExBrowser thread. If you open a new thread, it's very easy to miss that. Hope that helpsDan Quote Link to post Share on other sites
daverawcus 6 Posted October 19, 2017 Report Share Posted October 19, 2017 This fixed my Problem type text Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.