ardley216 0 Posted January 18, 2016 Report Share Posted January 18, 2016 So I built a bot, and it worked fine, then the other day when ever I do anything with the browser it just freezes. I try to export and the same happens... I removed all threading and the same happens... I added in Allow Flash = No, AND set user agent... same thing happens.. And why does this continue to happen I have seen threads dating back half a decade with this exact same issue, why has it not been fixed?!?! I am running Win 10, 64Bit, 16GB ram. The bot is relatively simple, just 300 lines of code, about 100 of which is HTML. I am using 'load html' command. Other than that it is all super simple stuff. Can anyone shed any light on the issue.. its beginning to REALLY hold my business back and hack me off. Thanks for any advice in advance. Quote Link to post Share on other sites
sunny9495 42 Posted January 18, 2016 Report Share Posted January 18, 2016 Hi ardley216, Its not possible to know where is the bug without seeing the code. Quote Link to post Share on other sites
ardley216 0 Posted January 18, 2016 Author Report Share Posted January 18, 2016 ui log view("Log") ui button("Clear Log") { set(#log,$nothing,"Global") } define OTorderpage { set(#currentorder,$eval("document.orderid.orderid.value"),"Global") in shared browser { logintopipedrive() wait(0.5) click(<innertext="WooCommerce Order #{#currentorder}">,"Left Click","No") wait(1) wait for browser event("Everything Loaded","") wait for element(<class="infoBlock">,"","Appear") set(#PDorderURL,$url,"Global") wait(0.5) close page } in shared browser { navigate("http://keywordresear.ch/kwlogin/wp-admin/admin.php?page=EWD-OTP-options&DisplayPage=Orders","Wait") wait for browser event("Everything Loaded","") activity("Tracking Page loaded - SUCCESS") wait(2) if($exists(<name="loginform">)) { then { activity("NOT logged in.. Logging in...") type text(<username field>,"ardley","Standard") type text(<password field>,"?????","Standard") wait(1) click(<login button>,"Left Click","No") activity("Tracking Plugin - Login Success!") } else { activity("Already logged in to Tracking Plugin") } } wait(1.5) wait for browser event("Everything Loaded","") wait for element(<outerhtml="<p>Downloads all orders currently in the database to Excel</p>">,"","Appear") type text(<name="OrderNumber">,#currentorder,"Standard") click(<id="search-submit">,"Left Click","No") activity("Searching for Order") wait(1) wait for browser event("Everything Loaded","") wait(0.5) wait for element(<innertext="Add/Update Orders from Spreadsheet">,"","Appear") set(#orderurl,$scrape attribute($element offset(<outerhtml=w"<a class=\"row-title\" href=\"admin.php?page=EWD-OTP-options&OTPAction=EWD_OTP_Order_Details&Selected=Order&Order_ID=10\" title=\"Edit WC_{#currentorder}*\">WC_{#currentorder}*</a>">,0),"href"),"Global") activity("Order Found - {#currentorder}") activity("Action Completed With out issues.") close page } } load html("<style type=\"text/css\"> .tg \{border-collapse:collapse;border-spacing:0;\} .tg td\{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;\} .tg th\{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;\} </style> <table class=\"tg\"> <tr> <th class=\"tg-031e\"> <form name=\"orderid\"> Order ID: <input type=\"text\" name=\"orderid\"variable=\"#orderid\" fillwith=\"value\"> </form> <button onclick=\"ubot.runScript(\'OTorderpage()\')\">Load Order</button> <hr /> <form name=\"statuschange\"> <select onchange=\"ubot.runScript(\'OTstatus()\')\" name=\"proj\" width=\"50\" size=\"10\" variable=\"#status\" fillwith=\"value\"> <option selected>-----</option> <option>Processing</option> <option>Preparing Server</option> <option>Data-mining in progress</option> <option>Keyword difficulty analysis</option> <option>Report building in progress</option> <option>Keyword Package Delivery</option> <option>Completed</option> </select> </form></th> <th class=\"tg-031e\"><style type=\"text/css\"> .tg \{border-collapse:collapse;border-spacing:0;border-color:#aabcfe;\} .tg td\{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#aabcfe;color:#669;background-color:#e8edff;\} .tg th\{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#aabcfe;color:#039;background-color:#b9c9fe;\} .tg .tg-wxhi\{background-color:#a2ea9d;font-weight:bold;color:#000000;vertical-align:top\} .tg .tg-e3zv\{font-weight:bold\} .tg .tg-9hbo\{font-weight:bold;vertical-align:top\} .tg .tg-x71s\{background-color:#c0c8e7;color:#000000;vertical-align:top\} .tg .tg-yw4l\{vertical-align:top\} </style> <table class=\"tg\" style=\"undefined;table-layout: fixed; width: 980px\"> <colgroup> <col style=\"width: 188px\"> <col style=\"width: 145px\"> <col style=\"width: 647px\"> </colgroup> <tr> <th class=\"tg-e3zv\">Plugin Tracker Position</th> <th class=\"tg-e3zv\">Pipdrive Position</th> <th class=\"tg-9hbo\">Notes</th> </tr> <tr> <td class=\"tg-x71s\">Porcessing</td> <td class=\"tg-wxhi\">Processing</td> <td class=\"tg-yw4l\">This is the stage where order is received. I</td> </tr> <tr> <td class=\"tg-x71s\">Preparing Server</td> <td class=\"tg-wxhi\">Keyword Selection</td> <td class=\"tg-yw4l\">To the client we are preparing the server, to us we are choosing what keywords to give to the client. If Custom order, then we select the seed keywords while also setting the research bot to carry out research for the order</td> </tr> <tr> <td class=\"tg-x71s\">Data-mining in Progress</td> <td class=\"tg-wxhi\">Order in progress</td> <td class=\"tg-yw4l\">This is where we enter in all the keywords into the software</td> </tr> <tr> <td class=\"tg-x71s\">Keyword difficulty analysis</td> <td class=\"tg-wxhi\">Order in progress</td> <td class=\"tg-yw4l\">Nothing Happens in Pipedrive. Make sure you click this as the order happens</td> </tr> <tr> <td class=\"tg-x71s\">Report building in progress</td> <td class=\"tg-wxhi\">Report Built</td> <td class=\"tg-yw4l\">Make sure the report is built effectively, check the report makes sense.</td> </tr> <tr> <td class=\"tg-x71s\">Keyword Package Delivery</td> <td class=\"tg-wxhi\">Report Built</td> <td class=\"tg-yw4l\">Nothing Happens in Pipedrive. Make sure you click this as the order happens. Get the report download link and enter it into the software</td> </tr> <tr> <td class=\"tg-x71s\">Completed</td> <td class=\"tg-wxhi\">Completed</td> <td class=\"tg-yw4l\">The order is completed in both Sections</td> </tr> </table></th> </tr> </table> ") define StageSetter { set(#orderid,#currentorder,"Global") if($comparison(#status,"= Equals","Processing")) { then { set(#CurrentStage,0,"Global") set(#NewStage,0,"Global") } else { } } if($comparison(#status,"= Equals","Preparing Server")) { then { set(#CurrentStage,0,"Global") set(#NewStage,1,"Global") } else { } } if($comparison(#status,"= Equals","Data-mining in progress")) { then { set(#CurrentStage,1,"Global") set(#NewStage,2,"Global") } else { } } if($comparison(#status,"= Equals","Keyword difficulty analysis")) { then { set(#CurrentStage,1,"Global") set(#NewStage,2,"Global") } else { } } if($comparison(#status,"= Equals","Report building in progress")) { then { set(#CurrentStage,2,"Global") set(#NewStage,3,"Global") } else { } } if($comparison(#status,"= Equals","Keyword Package Delivery")) { then { set(#CurrentStage,3,"Global") set(#NewStage,3,"Global") } else { } } if($comparison(#status,"= Equals","Completed")) { then { set(#CurrentStage,3,"Global") set(#NewStage,4,"Global") } else { } } activity("PipeDrive Stage set Successfully!") } define OTstatus { set(#status,$eval("document.statuschange.proj.options[document.statuschange.proj.selectedIndex].value"),"Global") if($comparison(#status,"= Equals","Keyword Package Delivery")) { then { set(#PackageDownload,$prompt("Please enter in the Package Download URL: "),"Global") activity("Keyword Package URL Set") } else { } } activity("Begin: {#status}") activity("PipeDrive Update started") StageSetter() wait(0.5) in shared browser { StageMover() activity("Pipedrive update - COMPLETED!") close page } in shared browser { navigate("http://keywordresear.ch/kwlogin/wp-admin/{#orderurl}","Wait") wait(1) wait for browser event("Everything Loaded","") wait for element(<innertext="Should this order appear in the orders table in the admin area?">,"","Appear") activity("Order Tracking: Order page loaded") change dropdown(<name="Order_Status">,#status) activity("Order Status changed to: {#status}") wait(0.5) if($comparison(#status,"= Equals","Completed")) { then { type text(<name="Order_Notes_Public">,"<u><b><a href=\'{#PackageDownload}\'>Download your package here</a></u></b>","Standard") activity("Package Delivery Download Sent") } else { } } wait(0.5) click(<name="submit">,"Left Click","No") wait(1) wait for browser event("Everything Loaded","") activity("Tracking Plugin order updated - SUCCESS") wait for element(<innertext="Add New Order">,"","Appear") close page } } define StageMover { activity("Pipeprive: Loading order..") navigate(#PDorderURL,"Wait") wait(0.5) wait for browser event("Everything Loaded","") wait(1) if($exists(<id="login_form">)) { then { activity("Pipedrive: You have been logged out, logging back in.") logintopipedrive() wait(1) activity("Pipedrive: Logged back in. Loading Order") navigate(#PDorderURL,"Wait") wait for browser event("Everything Loaded","") wait(1) } else { } } wait for element(<class="infoBlock">,"","Appear") activity("Pipedrive: Order loaded") wait(0.2) click($element offset(<class="stageContent">,#NewStage),"Left Click","No") activity("Pipedrive: New stage set. SUCCESS!!") wait(0.5) } define logintopipedrive { activity("Pipedrive: Logging in to pipedrive") navigate("https://keywordresearch.pipedrive.com/pipeline/1/user/279211","Wait") wait(1) wait for browser event("Everything Loaded","") wait(2) if($exists(<id="login_form">)) { then { type text(<email field>,"ardley@hotmail.co.uk","Standard") wait(0.5) if($contains($scrape attribute(<email field>,"value"),"ardley@hotmail.co.uk")) { then { } else { activity("Pipedrive: Incorrect email ERROR") type text(<email field>,"akrdley@hotmail.co.u","Standard") wait(0.5) } } type text(<password field>,"??????","Standard") wait(0.5) focus(<email field>) wait(0.5) click(<login button>,"Left Click","No") wait(1) wait for browser event("Everything Loaded","") wait(2) if($exists(<class="loading unified-navi">)) { then { activity("Pipedrive: Loading ERROR!!") navigate("https://keywordresearch.pipedrive.com/pipeline/1/user/279211","Wait") wait(1) wait for browser event("Everything Loaded","") wait(0.5) wait for element(<id="mainmenu">,"","Appear") } else { } } wait for element(<id="mainmenu">,"","Appear") activity("Pipedrive: Loggin SUCCESS!!") } else { } } } Quote Link to post Share on other sites
ardley216 0 Posted January 18, 2016 Author Report Share Posted January 18, 2016 Seems to be an issue with 'load html' command 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.