runsoftware 14 Posted April 5, 2015 Report Share Posted April 5, 2015 can it handle two or more clients sending data to the same server at the same time? Link to post Share on other sites
Bot-Factory 602 Posted April 6, 2015 Report Share Posted April 6, 2015 can it handle two or more clients sending data to the same server at the same time? Yes, that's possible. As long as you build the server code correctly. It will run in separated threads, so you have to ensure that everything is handled correctly within the define that is called on the backend server. But if that is the case, then Yes two or more clients sending data at the same time is no problem. Dan Link to post Share on other sites
Bot-Factory 602 Posted April 6, 2015 Report Share Posted April 6, 2015 >>Tutorial Update<< Scraping Tutorial available now.If you are not a member of the Free CBrowser Tutorial Series yet, join NOW!>>CLICK HERE TO GET THE FREE TUTORIALS<< Members can login to Botfactory and access the new content via "Purchase History"For Tutorial Request please go to:>>Click Here<< Link to post Share on other sites
Shan 0 Posted April 7, 2015 Report Share Posted April 7, 2015 Thanks Dan for your kind reply. I now know why it takes me much to compile, since my upload speed sucks:) I shouldn't select those plugins I don't need. Ubot studio uploads all the plugins you have selected to the ubot server. Every single time you compile.So the more plugins the longer it takes. Link to post Share on other sites
Bot-Factory 602 Posted April 7, 2015 Report Share Posted April 7, 2015 Thanks Dan for your kind reply. I now know why it takes me much to compile, since my upload speed sucks:) I shouldn't select those plugins I don't need. http://www.ubotstudio.com/forum/index.php?/topic/16142-free-ubot-launcher/ This great and free tool will start ubot with only the plugins that are used in your ubot file. Dan Link to post Share on other sites
jamesfar 15 Posted April 8, 2015 Report Share Posted April 8, 2015 Anyone had succeed uploading to youtube using phantomjs in cbrowser? Link to post Share on other sites
wiseguys 3 Posted April 9, 2015 Report Share Posted April 9, 2015 (edited) Can somebody please help me fill a textarea using the $CBrowser Change Attribute Function? none of the following work for http://ubotstudio.com/playground/simple-form Can't figure it out, thanks! (using cBrowser Chrome) Edited April 9, 2015 by wiseguys Link to post Share on other sites
Bot-Factory 602 Posted April 9, 2015 Report Share Posted April 9, 2015 Can somebody please help me fill a textarea using the $CBrowser Change Attribute Function? none of the following work for http://ubotstudio.com/playground/simple-form Can't figure it out, thanks! (using cBrowser Chrome)navigate("http://ubotstudio.com/playground/simple-form","Wait")type text(<name="ctl00$ContentPlaceHolder1$Username">,"Hallo","Standard")plugin command("Communication.dll", "CBrowser Container", "Chrome", "", "") { plugin command("Communication.dll", "CBrowser Navigate", "http://ubotstudio.com/playground/simple-form") plugin command("Communication.dll", "CBrowser Type Text", "<name=\"ctl00$ContentPlaceHolder1$Username\">", "Hello") alert("x")} CheersDan Link to post Share on other sites
sunny9495 42 Posted April 9, 2015 Report Share Posted April 9, 2015 Hope this helps plugin command("Communication.dll", "CBrowser Container", "Chrome", "", "") { plugin command("Communication.dll", "CBrowser Navigate", "http://ubotstudio.com/playground/simple-form") plugin command("Communication.dll", "CBrowser Wait For Element", "<innertext=\"Copyright UBot Studio 2014 | UBot Media\">", 30) plugin command("Communication.dll", "CBrowser Wait For Dom Ready", 20) wait(5) plugin command("Communication.dll", "CBrowser Change Attribute", "<id=\"ctl00_ContentPlaceHolder1_Username\">", "value", "sunny9495") plugin command("Communication.dll", "CBrowser Change Attribute", "<id=\"ctl00_ContentPlaceHolder1_Password\">", "value", "password") plugin command("Communication.dll", "CBrowser Change Attribute", "<id=\"ctl00_ContentPlaceHolder1_Firstname\">", "value", "Naveen") plugin command("Communication.dll", "CBrowser Change Attribute", "<id=\"ctl00_ContentPlaceHolder1_Lastname\">", "value", "Kumar") plugin command("Communication.dll", "CBrowser Change Attribute", "<id=\"ctl00_ContentPlaceHolder1_aboutme\">", "value", "This is about me.") plugin command("Communication.dll", "CBrowser Click", "<value=\"Submit\">") } Link to post Share on other sites
wiseguys 3 Posted April 9, 2015 Report Share Posted April 9, 2015 (edited) Sunny, unfortunately that code doesn't fill out the 'about me' textarea, just the textboxes. The only attribute I can successfully modify on a textarea is the placeholder value so far which doesn't really help me much. Edited April 9, 2015 by wiseguys Link to post Share on other sites
wiseguys 3 Posted April 9, 2015 Report Share Posted April 9, 2015 navigate("http://ubotstudio.com/playground/simple-form","Wait")type text(<name="ctl00$ContentPlaceHolder1$Username">,"Hallo","Standard")plugin command("Communication.dll", "CBrowser Container", "Chrome", "", "") { plugin command("Communication.dll", "CBrowser Navigate", "http://ubotstudio.com/playground/simple-form") plugin command("Communication.dll", "CBrowser Type Text", "<name=\"ctl00$ContentPlaceHolder1$Username\">", "Hello") alert("x")} CheersDan Thanks Dan, but I can get it working with $CBrowser Type Text but that is extremely CPU intensive when working with many browsers compared to just changing the attribute. I'm just not having any success with $CBrowser Change Attribute I've sent you an email to dan@bot-factory.com to discuss another matter. Link to post Share on other sites
Bot-Factory 602 Posted April 9, 2015 Report Share Posted April 9, 2015 Thanks Dan, but I can get it working with $CBrowser Type Text but that is extremely CPU intensive when working with many browsers compared to just changing the attribute. I'm just not having any success with $CBrowser Change Attribute I've sent you an email to dan@bot-factory.com to discuss another matter. Don't know why using type text should give you CPU issues on a modern PC, but you can use change attribute as well: plugin command("Communication.dll", "CBrowser Container", "Chrome", "", "") { plugin command("Communication.dll", "CBrowser Navigate", "http://ubotstudio.com/playground/simple-form") plugin command("Communication.dll", "CBrowser Change Attribute", "<name=\"ctl00$ContentPlaceHolder1$Username\">", "value", "Hello") alert("x")} Link to post Share on other sites
jamesfar 15 Posted April 9, 2015 Report Share Posted April 9, 2015 Sunny, unfortunately that code doesn't fill out the 'about me' textarea, just the textboxes. The only attribute I can successfully modify on a textarea is the placeholder value so far which doesn't really help me much. Confirmed. Still blank Link to post Share on other sites
Bot-Factory 602 Posted April 9, 2015 Report Share Posted April 9, 2015 Sorry guys, I missed the textarea part. A textarea element has to value attribute. There is no attribute you can change via change attribute to change the text.Not sure how they do it with the native browser though. But I don't know a way to change the text of a textarea field via change attribute.I think the easiest is really via type text.Or try it via javascript maybe. Dan Link to post Share on other sites
wiseguys 3 Posted April 9, 2015 Report Share Posted April 9, 2015 Sorry guys, I missed the textarea part. A textarea element has to value attribute. There is no attribute you can change via change attribute to change the text.Not sure how they do it with the native browser though. But I don't know a way to change the text of a textarea field via change attribute. I think the easiest is really via type text.Or try it via javascript maybe. Dan Textarea does have a value attribute, if you try to modify it with the normal ubot change attribute command it works just fine, it's only the CBrowser change attribute that doesn't work at the moment, might simply be a bug. Currently trying it across 30 threads/instances of Chrome and it's pegging my CPU usage at 100% when using the $CBrowser type text command on a 150-word variable on an i7 3.9GHz Link to post Share on other sites
Bot-Factory 602 Posted April 9, 2015 Report Share Posted April 9, 2015 Textarea does have a value attribute, if you try to modify it with the normal ubot change attribute command it works just fine, it's only the CBrowser change attribute that doesn't work at the moment, might simply be a bug. Currently trying it across 30 threads/instances of Chrome and it's pegging my CPU usage at 100% when using the $CBrowser type text command on a 150-word variable on an i7 3.9GHz From the W3 documentation there is no value attribute:http://www.w3schools.com/tags/tag_textarea.asphttp://www.w3.org/TR/html-markup/textarea.html Just because the ubot change attribute uses value, doesn't mean that they are changing a value. Well, at least not in terms of native HTML code. Not sure if awesomium adds some special vodoo here. Dan Link to post Share on other sites
wiseguys 3 Posted April 9, 2015 Report Share Posted April 9, 2015 From the W3 documentation there is no value attribute:http://www.w3schools.com/tags/tag_textarea.asphttp://www.w3.org/TR/html-markup/textarea.html Just because the ubot change attribute uses value, doesn't mean that they are changing a value. Well, at least not in terms of native HTML code. Not sure if awesomium adds some special vodoo here. Dan Sorry got mixed up as well, the correct attribute would be innerText or innerHTML which also don't work in CBrowser for some reason. Link to post Share on other sites
wiseguys 3 Posted April 9, 2015 Report Share Posted April 9, 2015 Fixed it using Javascript, not perfect but will have to do for now. plugin command("Communication.dll", "CBrowser Run Javascript", "document.getElementById(\'ctl00_ContentPlaceHolder1_aboutme\').value = \'TextGoesHere\';") Link to post Share on other sites
jamesfar 15 Posted April 9, 2015 Report Share Posted April 9, 2015 Fixed it using Javascript, not perfect but will have to do for now.plugin command("Communication.dll", "CBrowser Run Javascript", "document.getElementById(\'ctl00_ContentPlaceHolder1_aboutme\').value = \'TextGoesHere\';")Did not working on youtube comment textarea Link to post Share on other sites
wiseguys 3 Posted April 9, 2015 Report Share Posted April 9, 2015 (edited) Did not working on youtube comment textarea The Youtube comment box isn't a <textarea> and isn't assigned an ID that can be found using that JS command. Edited April 9, 2015 by wiseguys Link to post Share on other sites
wiseguys 3 Posted April 11, 2015 Report Share Posted April 11, 2015 Getting this error when trying to log in to Yahoo using PhantomJS http://i.imgur.com/HtW2oJi.png Not sure if its Yahoo's issue or a limitation of PhantomJS. I don't really have my head wrapped around the whole PhantomJS thing along with its limitations quite yet so I'm not sure if im trying to do the impossible or making an obvious mistake. Currently just selecting elements by their CSS path which seems to be working, I just can't log-in to the site. Thanks. Link to post Share on other sites
sunny9495 42 Posted April 11, 2015 Report Share Posted April 11, 2015 This was a great plugin,but still there are a few cbrowser bugs,that has to solve. Like wiseguys ,i too had issues,like cbrowser out of memory error while trying to save image using chrome,i ping diswizz about this error,i hope these bugs will be solved in the coming update. Link to post Share on other sites
jamesfar 15 Posted April 11, 2015 Report Share Posted April 11, 2015 How do you guys multithreading with cbrowser? I always got blank page and then ubot crash EDIT : Works if added wait 5 seconds command before thread command New Problem : Data Leaked between threads Anyone has same situation? Link to post Share on other sites
wiseguys 3 Posted April 12, 2015 Report Share Posted April 12, 2015 How do you guys multithreading with cbrowser? I always got blank page and then ubot crash EDIT : Works if added wait 5 seconds command before thread command New Problem : Data Leaked between threads Anyone has same situation? Data should be specific to each launched browser considering they are sandboxed. What kind of issue are you having? Link to post Share on other sites
jamesfar 15 Posted April 12, 2015 Report Share Posted April 12, 2015 Data should be specific to each launched browser considering they are sandboxed. What kind of issue are you having? Problem :- Data Leaked- Cbrowser Crashed SOLVED NOW Solution :- Put wait before thread around 5 seconds- Don't do auto free memory loops- Don't use other thread except thread for Cbrowser Hope helps for others Link to post Share on other sites
Recommended Posts