diskwizz 24 Posted February 6, 2015 Report Share Posted February 6, 2015 Can you add a command with an option to keep the browser open? If not I guess we would have to add a loop while to keep it open.Well it's designed to quickly close and open a browser again once it's actions are done and you would need a new fresh browser. Every time the browser open's it loads in a new fresh browser instance that shares no information with the previous once. Even if you open two at once they know nothing about each other cookie etc wise. What we have experienced in the beta group is that people use Firefox or Chrome to develop the routine then on production they switch over to PhantomJS. Mainly because PhantomJS is quicker, uses less cpu and less memory. Link to post Share on other sites
diskwizz 24 Posted February 6, 2015 Report Share Posted February 6, 2015 Just put an alert at the end. And while that alert box is open, the browser stays open as well. And it's not like with the ubot browser. This browser can be accessed and used. DanThanks Dan, yes this is not an internal browser this uses browsers already installed on your machine to be used for your work. The "CBrowser Container" is designed so child commands/nodes know with wich browser to interact with. Link to post Share on other sites
stanf 43 Posted February 6, 2015 Report Share Posted February 6, 2015 if the browser is ment to close at the end of the node,how do you code the rutine?fill this text boxclick that item Link to post Share on other sites
diskwizz 24 Posted February 6, 2015 Report Share Posted February 6, 2015 (edited) if the browser is ment to close at the end of the node,how do you code the rutine?fill this text boxclick that itemWell by adding the commands inside the Container. This is a somewhat more complex example that uses Xpath, Xpath is about 40-60 times quicker then Ubot's standard Locators like "<tagname="a">". We support Ubot locators, Xpath locators and CSS locators. plugin command("Communication.dll", "CBrowser Container", "Firefox", "", "") { plugin command("Communication.dll", "CBrowser Navigate", "http://www.bing.com/") plugin command("Communication.dll", "CBrowser Type Text", , "My first external browser search") plugin command("Communication.dll", "CBrowser Click", ) loop(10) { add list to list(%UrlCollection,$plugin function("Communication.dll", "$CBrowser Scrape List Elements Attribute", , "href"),"Delete","Global") plugin command("Communication.dll", "CBrowser Click", ) } wait(3)} Don't know why but this code won't be saved in a code block. Edited February 6, 2015 by diskwizz Link to post Share on other sites
Bot-Factory 602 Posted February 6, 2015 Report Share Posted February 6, 2015 if the browser is ment to close at the end of the node,how do you code the rutine?fill this text boxclick that item You open the site in your normal google chrome browser. And then you look at the HTML Code or the Element viewer. There are also some XPATH plugins for firefox if you like that more. But there is no element select like with the regular ubot browser. But you could use the normal ubot elements in the CBrowser elements as well. But I would highly recommend using Xpath. A lot more flexible and a lot quicker. Dan Link to post Share on other sites
rocket976 62 Posted February 7, 2015 Report Share Posted February 7, 2015 Thanks for the alert tip Dan. Stanf take a look at how easy it is to get the xpath http://screencast.com/t/GQ3pJfoYx wish I used this long ago. 1 Link to post Share on other sites
steven.cross 0 Posted February 7, 2015 Report Share Posted February 7, 2015 Hi, I can't get this plugin to work with the code provided. I get a crash every time - http://screencast.com/t/mO4FUHc4xYY . I tried it with other plugins and without, in vers 4 and vers 5, compiled and in studio, with chrome and with firefox, on my pc and on vps. Same thing every time: loads the browser than crashes.Thank you Link to post Share on other sites
Bot-Factory 602 Posted February 7, 2015 Report Share Posted February 7, 2015 Hi, I can't get this plugin to work with the code provided. I get a crash every time - http://screencast.com/t/mO4FUHc4xYY . I tried it with other plugins and without, in vers 4 and vers 5, compiled and in studio, with chrome and with firefox, on my pc and on vps. Same thing every time: loads the browser than crashes.Thank youDoes that happen when you select Chrome as well?I assume you have .Net 4.5 installed right? And latest versions of Firefox and Chrome? Dan Link to post Share on other sites
steven.cross 0 Posted February 7, 2015 Report Share Posted February 7, 2015 yes...4.5 installed - tried it with both chrome and firefox as mentioned above...on my pc, laptop and vps - same thing... Link to post Share on other sites
Bot-Factory 602 Posted February 7, 2015 Report Share Posted February 7, 2015 yes...4.5 installed - tried it with both chrome and firefox as mentioned above...on my pc, laptop and vps - same thing...That's really strange then. Porbably best to PM diskwizz so that he can take a look. @ALL: Here's a quick Google scraping example: plugin command("Communication.dll", "CBrowser Container", "Chrome", "", $plugin function("Communication.dll", "Set User Agent", "ozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36")) { plugin command("Communication.dll", "CBrowser Navigate", "http://www.google.com") plugin command("Communication.dll", "CBrowser Wait For Element", , 60) plugin command("Communication.dll", "CBrowser Type Text", , "Ubot Studio") plugin command("Communication.dll", "CBrowser Wait For Dom Ready", 5) plugin command("Communication.dll", "CBrowser Click", ) plugin command("Communication.dll", "CBrowser Wait For Dom Ready", 5) wait(2) clear list(%links1) clear list(%links2) add list to list(%links1, $plugin function("Communication.dll", "$CBrowser Scrape List Elements Attribute", , "href"), "Delete", "Global") set(#counter, 0, "Global") loop($list total(%links1)) { if($not($contains($list item(%links1, #counter), "google")) AND $contains($list item(%links1, #counter), "http")) { then { add item to list(%links2, $list item(%links1, #counter), "Delete", "Global") } } increment(#counter) }}alert("Done") CheersDan Link to post Share on other sites
steven.cross 0 Posted February 7, 2015 Report Share Posted February 7, 2015 Well I don't know what version he gave me...I can't even paste your code Dan. http://content.screencast.com/users/serbyy/folders/Jing/media/f12f1468-08a4-485b-a681-216ca51ac421/2015-02-07_2157.png Link to post Share on other sites
Bot-Factory 602 Posted February 7, 2015 Report Share Posted February 7, 2015 Well I don't know what version he gave me...I can't even paste your code Dan. http://content.screencast.com/users/serbyy/folders/Jing/media/f12f1468-08a4-485b-a681-216ca51ac421/2015-02-07_2157.png The forum is messing up the code.. Did not see that when I posted it. I'll attach my ubot file. Dantest2.ubot Link to post Share on other sites
steven.cross 0 Posted February 7, 2015 Report Share Posted February 7, 2015 Thank you for the code Dan, but - nope, still the same crash... I'll just have to wait for diskwizz to come along to see what's the problem. To bad I wanted to play with it todaySteven Link to post Share on other sites
Chris M 55 Posted February 7, 2015 Report Share Posted February 7, 2015 No Dans code works for me except that I have to change some of the xpath for Google US but I did get a script error when runningdown in the looping. Link to post Share on other sites
diskwizz 24 Posted February 7, 2015 Report Share Posted February 7, 2015 Well I don't know what version he gave me...I can't even paste your code Dan. http://content.screencast.com/users/serbyy/folders/Jing/media/f12f1468-08a4-485b-a681-216ca51ac421/2015-02-07_2157.pngYou can't paste the code because on line 3,4 and 6 it's missing parameters. But if it crashes on your machine then let's test out whats going wrong. Are you able to setup a teamview session so we can test what goes wronge? Link to post Share on other sites
Pete 121 Posted February 8, 2015 Report Share Posted February 8, 2015 The benefits are more choices, no more memory leaks, no more browser crashes and you can actually use different user agents then chrome user agents. The issue now is if i use a firefox user agent i could test if it's fake by looking if firefox only javascript executes in the browser, many people already have seen sites that can detect awesomium browsers. Now you can actually use the correct browser and it's impossible to detect and prevent the actions we do in the bot, since we are actually using firefox. I hope this makes sense.I understand this is early days for this plugin that’s giving us some great options. Will it be possible at some point to spoof more the screen size and user agent?Many sites have gone far beyond this now. System time is becoming big if you have a US IP, US user agent, but your system time is set to say GB,Check out https://www.browserleaks.com/ and https://panopticlick.eff.org/ to see more Link to post Share on other sites
diskwizz 24 Posted February 8, 2015 Report Share Posted February 8, 2015 I understand this is early days for this plugin that’s giving us some great options. Will it be possible at some point to spoof more the screen size and user agent?Many sites have gone far beyond this now. System time is becoming big if you have a US IP, US user agent, but your system time is set to say GB,Check out https://www.browserleaks.com/ and https://panopticlick.eff.org/ to see more Yes we can add any requests in the future, although only a handful of sites at this time checks for system time. Basically we can fake anything with this plugin more then currently possible now with Ubots awesomium browser. Link to post Share on other sites
diskwizz 24 Posted February 8, 2015 Report Share Posted February 8, 2015 (edited) Added new requested function "$CBrowser Element Exist". This function will return true if the element exist and false if the element doesn't exist.http://i.imgur.com/HNxPIJA.png?1 Edited February 8, 2015 by diskwizz Link to post Share on other sites
rocket976 62 Posted February 8, 2015 Report Share Posted February 8, 2015 Awesome Diskwizz thanks Added new requested function "$CBrowser Element Exist". This function will return true if the element exist and false if the element doesn't exist.http://i.imgur.com/HNxPIJA.png?1 1 Link to post Share on other sites
Pete_UK 9 Posted February 9, 2015 Report Share Posted February 9, 2015 Just joined the club 1 Link to post Share on other sites
Bliss 194 Posted February 9, 2015 Author Report Share Posted February 9, 2015 ***** For those who do not have the new update (Pro version) with the Browser Control in it you can now download it from Jvzoo http://customer.jvzoo.com ***** ENJOY! Link to post Share on other sites
Pete 121 Posted February 10, 2015 Report Share Posted February 10, 2015 Having a problem changing proxys I take it you just leave the username and password fields blank as mine authenticate to my IP? Link to post Share on other sites
diskwizz 24 Posted February 10, 2015 Report Share Posted February 10, 2015 Having a problem changing proxys I take it you just leave the username and password fields blank as mine authenticate to my IP?Yes you leave the username and password blank if you have no username and password. Link to post Share on other sites
diskwizz 24 Posted February 10, 2015 Report Share Posted February 10, 2015 Just joined the club Welcome in the club mate! Link to post Share on other sites
Pete 121 Posted February 10, 2015 Report Share Posted February 10, 2015 Yes you leave the username and password blank if you have no username and password. Ok this is how I have it setup, my firefox version is 35.0 it's connection settings are set to use system proxy settings But it's not switching always returns my default ip? set(#UserAgent,"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0","Global")set(#Proxy,"142.54.170.72:3127","Global")plugin command("Communication.dll", "CBrowser Container", "Firefox", $plugin function("Communication.dll", "$CBrowser Set HTTP Proxy", #Proxy, "", ""), $plugin function("Communication.dll", "$CBrowser Set User Agent", #UserAgent)) { plugin command("Communication.dll", "CBrowser Navigate", "http://whatsmyuseragent.com/") loop while($comparison(1,"=",1)) { wait(2) }} Link to post Share on other sites
Recommended Posts