Dman 0 Posted March 11, 2016 Report Share Posted March 11, 2016 (edited) Hey Dan, Having a really weird issue with compiled bots, the bot will run perfectly fine and open exbrowser locally. However the moment we put it on a VPS it will open chrome and then it immediately closes itself. Any thoughts on how to debug this ? NM figured it out chrome was out of memory Edited March 11, 2016 by Dman Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 11, 2016 Report Share Posted March 11, 2016 Hey Dan, Having a really weird issue with compiled bots, the bot will run perfectly fine and open exbrowser locally. However the moment we put it on a VPS it will open chrome and then it immediately closes itself. Any thoughts on how to debug this ? NM figured it out chrome was out of memory How did you fix that? i am having that issue as well. Quote Link to post Share on other sites
Dman 0 Posted March 11, 2016 Report Share Posted March 11, 2016 Make sure chrome is fully updated, then we just rebooted the VPS Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 11, 2016 Report Share Posted March 11, 2016 Make sure chrome is fully updated, then we just rebooted the VPS Hmmn. I tried that before.. But i will try it again now. tnx Quote Link to post Share on other sites
Learjet 27 Posted March 11, 2016 Report Share Posted March 11, 2016 Hi Dan, Which command do I use to find text on a page? The issue is the source code may change from site to site so finding via xpath will not work. I need to find the text "Add a comment..." and then use the Sendkeys feature to create a message in that field. Thanks! Peace,LJ Quote Link to post Share on other sites
Dman 0 Posted March 11, 2016 Report Share Posted March 11, 2016 I believe you would use x://button[contains(.,'Add a comment...')]] Quote Link to post Share on other sites
Bot-Factory 602 Posted March 12, 2016 Report Share Posted March 12, 2016 Hey Dan, Nice update coming. Do you think you will be able to add a http post/get request on exbrowser.I know it's a browser but just wondering if it's possible.The reason for this is to share the same cookie between browser and http request. Get Html Page (Headless Http Request to load a page, with UserAgent and Cookie Support) Dan Quote Link to post Share on other sites
Bot-Factory 602 Posted March 13, 2016 Report Share Posted March 13, 2016 ReCaptcha Source Code for ExBrowser Plugin. Nick released a very nice source code couple of days ago. So if you didn't see it yet, please take a look: http://imautobots.com/downloads/exbrowser-recaptcha-solver/ Not an affiliate link! Quote Link to post Share on other sites
ptlrc 2 Posted March 13, 2016 Report Share Posted March 13, 2016 it did not show pop up for update when i launch it, and the old version do not work now Quote Link to post Share on other sites
Bot-Factory 602 Posted March 13, 2016 Report Share Posted March 13, 2016 it did not show pop up for update when i launch it, and the old version do not work nowFor support please use: support(att)bot-factory.com You can always download the latest version from the license server. If you don't know how that works, there are tutorials in the video section:http://botfactory.helpdocs.com/ CheersDan Quote Link to post Share on other sites
ptlrc 2 Posted March 14, 2016 Report Share Posted March 14, 2016 load cookie seems not work on java based sites Quote Link to post Share on other sites
Bot-Factory 602 Posted March 14, 2016 Report Share Posted March 14, 2016 load cookie seems not work on java based sitesSupport ticket with more informations and example please. Thank youDan Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 14, 2016 Report Share Posted March 14, 2016 Hey Guys, How to add multiple contains on xpath? For example this code //a[contains(@href,"user")] I want to add a class there to select. Quote Link to post Share on other sites
sunny9495 42 Posted March 14, 2016 Report Share Posted March 14, 2016 (//a[contains(@href,"user")])[1] - Try This One Ubot NinjaHey Guys, How to add multiple contains on xpath? For example this code //a[contains(@href,"user")] I want to add a class there to select. Quote Link to post Share on other sites
Bot-Factory 602 Posted March 14, 2016 Report Share Posted March 14, 2016 Hey Guys, How to add multiple contains on xpath? For example this code //a[contains(@href,"user")] I want to add a class there to select. Please google "xpath multiple conditions", there are lot's of examples you can try.Dan Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 14, 2016 Report Share Posted March 14, 2016 Got an issue with exbrowser. Maybe some of you guys can help. I navigate this page to exbrowser navigate https://www.google.com.ph/webhp?hl=en&gws_rd=cr&ei=rfrmVvzSHYaOmwXL4IH4Dg#q=video+rental+new+york&hl=en&tbs=lf:1,lf_ui:2&tbm=lcl&start=20&rlfi=hd:;si:5299590999437726051 I click on the bravo video & electronics inc or any listing that have "Claim this business" link by exbrowser click or click manually.There should be a window that will appear after you click a listingI need to scrape the url inside “Claim this business” anchor text but exbrowser cant detect it.It cant detect the whole side window. The only way to detect it is to right click on "Claim this business" link and click inspect element. Here's the code i use to test if it can detect the claim this business or not. alert($plugin function("ExBrowser.dll", "$ExBrowser Element Exist", "x://a[contains(@data-href,\"/local/add\")]")) Any workaround to this? Thanks Quote Link to post Share on other sites
Bot-Factory 602 Posted March 14, 2016 Report Share Posted March 14, 2016 plugin command("ExBrowser.dll", "ExBrowser Navigate", $plugin function("ExBrowser.dll", "$ExBrowser Scrape List Elements Attribute", "x://a[contains(text(),\"Claim this business\")]", "href")) Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 14, 2016 Report Share Posted March 14, 2016 plugin command("ExBrowser.dll", "ExBrowser Navigate", $plugin function("ExBrowser.dll", "$ExBrowser Scrape List Elements Attribute", "x://a[contains(text(),\"Claim this business\")]", "href")) Thanks! I need to get used to xpath! Quote Link to post Share on other sites
Bot-Factory 602 Posted March 15, 2016 Report Share Posted March 15, 2016 Little Tip: If you can't type into an element, try to Use "move mouse" command Use "click" command. To move the mouse to the element and click it. And then use type text. Site like Google for example have some javascript to check if someone actually moved the mouse to the field :-) Dan Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 15, 2016 Report Share Posted March 15, 2016 Is there a way to disable the image on the browser?I cant find it on the options folder.. Also, I sugges to add minimize browser option so it will be minimized automatically.Helps when running threads. Quote Link to post Share on other sites
jeepinjeff 4 Posted March 15, 2016 Report Share Posted March 15, 2016 So, I started working on a script with ExBrowser finally. I like using the xpaths and it seems like it's going pretty well. BUT - I hit a snag and wanted to see if any of you guys out there had any suggestions. I have an email out to Dan as well, but I figured in the interim, it wouldn't hurt to put it out here as well. Here goes... I'm working on a script with ExBrowser and when I click on a button, I get an error stating that an unexpected modal window has occurred. Upon looking into the HTML of the page, there should be a window that pops up confirming that I would like to continue, but the browser never shows it. The browser icon blinks in my toolbar, but if i hover over it, there's no popup window to see. (Using Firefox, btw)What should I do to make this work or what's going wrong?Thanks!JeffThe button that's being clicked (<input id="dup-step1-deploy-btn" type="button" onclick="Process.runDeployment()" value=" Run Deployment ">) calls this:============================= Process.runDeployment = function() { var $form = $('#dup-step1-input-form'); $form.parsley('validate'); if (! $form.parsley('isValid')) { return; } var msg = "Continue with the following settings?\n\n"; msg += "WARNING: Be sure these parameters are correct!\n"; msg += "Entering the wrong information WILL overwrite existing information.\n"; msg += "Make sure to have backups of all your data before proceeding.\n\n"; var answer = confirm(msg); if (answer) { $.ajax({ type: "POST", timeout: 10000000, dataType: "json", url: window.location.href, data: $form.serialize(), beforeSend: function() { Process.showProgressBar(); $form.hide(); $('#dup-step1-result-form').show(); }, success: function(data, textStatus, xhr){ if (typeof(data) != 'undefined' && data.pass == 1) { $("#ajax-dbhost").val($("#dbhost").val()); $("#ajax-dbport").val($("#dbport").val()); $("#ajax-dbuser").val($("#dbuser").val()); $("#ajax-dbpass").val($("#dbpass").val()); $("#ajax-dbname").val($("#dbname").val()); $("#ajax-dbcharset").val($("#dbcharset").val()); $("#ajax-dbcollate").val($("#dbcollate").val()); $("#ajax-logging").val($("#logging").val()); $("#ajax-json").val(escape(JSON.stringify(data))); setTimeout(function() {$('#dup-step1-result-form').submit();}, 1000); $('#progress-area').fadeOut(700); } else { Process.hideProgressBar(); } }, error: function(xhr) { var status = "<b>server code:</b> " + xhr.status + "<br/><b>status:</b> " + xhr.statusText + "<br/><b>response:</b> " + xhr.responseText; $('#ajaxerr-data').html(status); Process.hideProgressBar(); } }); } }; Quote Link to post Share on other sites
Bot-Factory 602 Posted March 16, 2016 Report Share Posted March 16, 2016 So, I started working on a script with ExBrowser finally. I like using the xpaths and it seems like it's going pretty well. BUT - I hit a snag and wanted to see if any of you guys out there had any suggestions. I have an email out to Dan as well, but I figured in the interim, it wouldn't hurt to put it out here as well. Here goes... I'm working on a script with ExBrowser and when I click on a button, I get an error stating that an unexpected modal window has occurred. Upon looking into the HTML of the page, there should be a window that pops up confirming that I would like to continue, but the browser never shows it. The browser icon blinks in my toolbar, but if i hover over it, there's no popup window to see. (Using Firefox, btw) What should I do to make this work or what's going wrong?Thanks!Jeff The button that's being clicked (<input id="dup-step1-deploy-btn" type="button" onclick="Process.runDeployment()" value=" Run Deployment ">) calls this: ============================= Process.runDeployment = function() { var $form = $('#dup-step1-input-form'); $form.parsley('validate'); if (! $form.parsley('isValid')) { return; } var msg = "Continue with the following settings?\n\n"; msg += "WARNING: Be sure these parameters are correct!\n"; msg += "Entering the wrong information WILL overwrite existing information.\n"; msg += "Make sure to have backups of all your data before proceeding.\n\n"; var answer = confirm(msg); if (answer) { $.ajax({ type: "POST", timeout: 10000000, dataType: "json", url: window.location.href, data: $form.serialize(), beforeSend: function() { Process.showProgressBar(); $form.hide(); $('#dup-step1-result-form').show(); }, success: function(data, textStatus, xhr){ if (typeof(data) != 'undefined' && data.pass == 1) { $("#ajax-dbhost").val($("#dbhost").val()); $("#ajax-dbport").val($("#dbport").val()); $("#ajax-dbuser").val($("#dbuser").val()); $("#ajax-dbpass").val($("#dbpass").val()); $("#ajax-dbname").val($("#dbname").val()); $("#ajax-dbcharset").val($("#dbcharset").val()); $("#ajax-dbcollate").val($("#dbcollate").val()); $("#ajax-logging").val($("#logging").val()); $("#ajax-json").val(escape(JSON.stringify(data))); setTimeout(function() {$('#dup-step1-result-form').submit();}, 1000); $('#progress-area').fadeOut(700); } else { Process.hideProgressBar(); } }, error: function(xhr) { var status = "<b>server code:</b> " + xhr.status + "<br/><b>status:</b> " + xhr.statusText + "<br/><b>response:</b> " + xhr.responseText; $('#ajaxerr-data').html(status); Process.hideProgressBar(); } }); } }; Solved via Support Ticket. CheersDan Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 18, 2016 Report Share Posted March 18, 2016 Suggestion:On type text command add an option to always clear the textfield before typing the text to make sure the field is clear so we dont need to add another command to clear the element text. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted March 18, 2016 Author Report Share Posted March 18, 2016 I would still use it as a separate command, or as an advanced option to clear first. as there are instances where typing towards the area would be done without clearing the field first. for use of typeahead options as well. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 18, 2016 Report Share Posted March 18, 2016 I would still use it as a separate command, or as an advanced option to clear first. as there are instances where typing towards the area would be done without clearing the field first. for use of typeahead options as well. yes. what i am suggesting is like the option on wait for element where it have a dropdown option for appear/dissapear.In this case clear or not clear text is the option. 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.