diskwizz 24 Posted March 15, 2015 Report Share Posted March 15, 2015 Please check : 1. User agent is not detected when we use phantomJS. Any user agent i use it still detected as phantomJS2. Is there any addons like xpath addons that can be use to select css? I don't understand question 2, do you mean css locators? Link to post Share on other sites
Chris M 55 Posted March 15, 2015 Report Share Posted March 15, 2015 I just confirmed that the user agent is not working. Link to post Share on other sites
diskwizz 24 Posted March 15, 2015 Report Share Posted March 15, 2015 Please check : 1. User agent is not detected when we use phantomJS. Any user agent i use it still detected as phantomJS2. Is there any addons like xpath addons that can be use to select css? I just confirmed that the user agent is not working. Thanks for the report, fixed upload will be available once Bliss uploads it to JVZOO. Link to post Share on other sites
jamesfar 15 Posted March 15, 2015 Report Share Posted March 15, 2015 I don't understand question 2, do you mean css locators? Yes. Any firefox addons for that? Or how we do css locators? Link to post Share on other sites
Bot-Factory 602 Posted March 16, 2015 Report Share Posted March 16, 2015 Do you want video Tutorials for this Plugin? If yes, please send me your ideas:http://bit.ly/1GM26qQ Link to post Share on other sites
Chris M 55 Posted March 17, 2015 Report Share Posted March 17, 2015 There is a bug in the plugin. ui button("Launch Google.com") { plugin command("Communication.dll", "CBrowser Container", "Firefox", "", "") { plugin command("Communication.dll", "CBrowser Navigate", "https://www.google.com") wait(5) } } I have tried with both Firefox and Google Chrome and what happens is that the first time youpress the button it launches a blank window and does not navigate to the url put in there.The 2nd time it crashes uBot Studio.Can you guys check and confirm? Link to post Share on other sites
Bot-Factory 602 Posted March 17, 2015 Report Share Posted March 17, 2015 There is a bug in the plugin. ui button("Launch Google.com") { plugin command("Communication.dll", "CBrowser Container", "Firefox", "", "") { plugin command("Communication.dll", "CBrowser Navigate", "https://www.google.com") wait(5) } } I have tried with both Firefox and Google Chrome and what happens is that the first time youpress the button it launches a blank window and does not navigate to the url put in there. The 2nd time it crashes uBot Studio. Can you guys check and confirm? In Ubot Studio V5 it's working fine for me. V4 isn't supported anymore And I think DW only tests it with V5. Link to post Share on other sites
stanf 43 Posted March 17, 2015 Report Share Posted March 17, 2015 i to have the same problem.i thought it was a a error on my system.my problem is firefox changes the proxie settings from none to system proxie.this only happens in the plugin not mt installed copy of firefox Link to post Share on other sites
Bot-Factory 602 Posted March 17, 2015 Report Share Posted March 17, 2015 But you are right.. there is a strange behavior..Can reproduce it with Firefox and Chrome. When I try to start 5 instances of the browser at the same time, only the last one navigates to the site. The other ones close after a couple of seconds without showing any page. ui button("Launch Google.com") { loop(5) { LaunchBrowser() }}define LaunchBrowser { thread { plugin command("Communication.dll", "CBrowser Container", "Chrome", "", $plugin function("Communication.dll", "$CBrowser Set User Agent", "Mozilla/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", "https://www.google.com") wait(5) } }} Link to post Share on other sites
diskwizz 24 Posted March 17, 2015 Report Share Posted March 17, 2015 Version 2.9.7.4Fixed: User agent issue in phantomjs Update is now available on JVZOO Link to post Share on other sites
diskwizz 24 Posted March 17, 2015 Report Share Posted March 17, 2015 (edited) But you are right.. there is a strange behavior.. Can reproduce it with Firefox and Chrome. When I try to start 5 instances of the browser at the same time, only the last one navigates to the site. The other ones close after a couple of seconds without showing any page. ui button("Launch Google.com") { loop(5) { LaunchBrowser() } } define LaunchBrowser { thread { plugin command("Communication.dll", "CBrowser Container", "Chrome", "", $plugin function("Communication.dll", "$CBrowser Set User Agent", "Mozilla/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", "https://www.google.com") wait(5) } } } I only find this issue inside of Ubot though, when I run this inside visual studio it executes all browsers without any issue. But in Ubot you seem to need a 2-3 second delay for each thread. Edited March 17, 2015 by diskwizz Link to post Share on other sites
Bot-Factory 602 Posted March 17, 2015 Report Share Posted March 17, 2015 I only find this issue inside of ubot though, when I run this inside visual studio it executes all browsers without any issue.But in Ubot you seem to need a 2-3 second delay for each thread.Yeah, looks like to good old threading challenge we see with Ubot :-(Thanks a lot for your fast support as always Disk. Dan Link to post Share on other sites
diskwizz 24 Posted March 17, 2015 Report Share Posted March 17, 2015 Yeah, looks like to good old threading challenge we see with Ubot :-( Thanks a lot for your fast support as always Disk. Dan Will this issue be addressed? Because it's not the normal behavior of how threads should function. I have never heard before or seen that threads have to wait 2-3 seconds inbetween for them to work. Link to post Share on other sites
dankass 52 Posted March 18, 2015 Report Share Posted March 18, 2015 Is there a way to serialize/deserialiaze a table similar to the command for serialize list? if not may I request this feature? Thanks Link to post Share on other sites
diskwizz 24 Posted March 18, 2015 Report Share Posted March 18, 2015 Is there a way to serialize/deserialiaze a table similar to the command for serialize list? if not may I request this feature? ThanksWe actually planned such a function before but it was impossible to deserialize a table. The reason for this is that ubot tables doesn't accept a function to create a table whereas the list does. Here in the example you see we can add a list to a list but there is no such function for tables.http://i.imgur.com/Ai1zBxa.png Prove me wrong and i will add it but i couldn't find it. Link to post Share on other sites
kev123 132 Posted March 18, 2015 Report Share Posted March 18, 2015 dan and diskwizz its highly likely the plugin api issue where the parent container gets mixed up and not threading. Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 18, 2015 Report Share Posted March 18, 2015 Hey Wizz, What's the news on a command that will check if the user installed chrome or not?Also, please add a cbrowser option to hide the browser. Link to post Share on other sites
Chris M 55 Posted March 18, 2015 Report Share Posted March 18, 2015 Is there a specific reason you don't use PhantomJS browser Kreatus rather than trying to hide the other browsers?I'm only saying that because PhantomJS is so much faster and is already hidden. Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 18, 2015 Report Share Posted March 18, 2015 Is there a specific reason you don't use PhantomJS browser Kreatus rather than trying to hide the other browsers? I'm only saying that because PhantomJS is so much faster and is already hidden. Yes. For example scraping the facebook search result. PhantomJS shows less result than chrome.. Link to post Share on other sites
diskwizz 24 Posted March 18, 2015 Report Share Posted March 18, 2015 Yes. For example scraping the facebook search result. PhantomJS shows less result than chrome..Did you download the latest version 2.9.7.4? There it should be fixed in. Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 18, 2015 Report Share Posted March 18, 2015 Did you download the latest version 2.9.7.4? There it should be fixed in. What's fixed on that version? Edit: Just tested it and phantomJS is working like chrome now! Thanks! 1 Link to post Share on other sites
diskwizz 24 Posted March 18, 2015 Report Share Posted March 18, 2015 What's fixed on that version?Version 2.9.7.4Fixed: User agent issue in phantomjs Link to post Share on other sites
dankass 52 Posted March 18, 2015 Report Share Posted March 18, 2015 We actually planned such a function before but it was impossible to deserialize a table. The reason for this is that ubot tables doesn't accept a function to create a table whereas the list does. Here in the example you see we can add a list to a list but there is no such function for tables.http://i.imgur.com/Ai1zBxa.png Prove me wrong and i will add it but i couldn't find it. You mean something like this? But I think I know what you mean... I think it would take a new command to create a new table from the deserialized state, and a parameter would not work because you cant seem to insert a parameter into this add table to table command. plugin command("TableCommands.dll", "add table to table", &niches, &niches2) Link to post Share on other sites
dankass 52 Posted March 18, 2015 Report Share Posted March 18, 2015 This is a screenshot of pash's command in the advanced data text file plugin to create a table from a string... maybe create something like this? I just wouldn't know what else needs to be in there to be able to break it back apart into a table.http://i59.tinypic.com/28lag7.jpg Link to post Share on other sites
diskwizz 24 Posted March 19, 2015 Report Share Posted March 19, 2015 This is a screenshot of pash's command in the advanced data text file plugin to create a table from a string... maybe create something like this? I just wouldn't know what else needs to be in there to be able to break it back apart into a table.http://i59.tinypic.com/28lag7.jpgBut i believe in the Plugin API if you set variables they won't be local but global. There is no option to set it to local inside the Plugin API. void SetTable(string tableName, string[,] value); Link to post Share on other sites
Recommended Posts