Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
CreatePreview: * Email Subject: 'Hello world in green' * Email Body: '<body style="background:green">Hello, world</body>' * Target Apps: Gmail, Microsoft Outlook, iOS Mail.
I'd then have to display these images side by side. I can display it on a new tab or on the same tab, like facebook does in "light box", using a jquery popup.
2. Steps 2 to 5 might take a lot of time, ranging from 20 to 50 seconds per email client, or maybe more. It takes a little time for the mail to be delivered and even more time is taken in logging into Gmail and YahooMail and other things.
I'm going to spend the next two or three days trying to figure out which of the three- PhantomJS (driven using Webdriver), CasperJS and Selenium Webdriver is best suited for use in our project.I don't yet have a proper understanding of all these things, so some inputs would be really helpful.
1. Can't a website detect that it's a bot doing the job and then ask us to fill a captcha or something and hinder our working?See point number 5 listed under Disadvantages on http://scraping.pro/using-selenium-webdriver-for-website-scraping/
2. Can we use CiviMail Blast to send the emails to IDs on different webmail clients (which will later be logged into and screenshots will be taken)?date=1431640082]3. ^Which email IDs are we talking about here? Will we make some new ones? How are they going to be managed?
Webdriver I/O looks quite like CasperJS, but it can be used for many browsers.What apparently makes Selenium Webdriver and will also make Webdriver-I/O slow for Chrome and Firefox is the time taken to actually open a browser and the subsequent time taken by the browser to execute the steps (see points 2 to 4 in the Disadvantages section http://scraping.pro/using-selenium-webdriver-for-website-scraping/ ).
I don't know if we can use Webdriver-I/O for PhantomJS.If we can, Webdriver-I/O is perfect for our use.For now we can do the entire thing on Webdriver-I/O for Chrome and then if we get time, we'll look at PhantomJS and pick what works best for us. How does that sound?Also, I now feel these tools are quite similar to each other and we might not feel much difference using either. So, we can just pick one and move on. What do you think?
## Make a project foldermkdir webdriverio-test && cd webdriverio-test## Download webdriverio and phantomjsnpm install webdriverio phantomjs## Launch phantomjs./node_modules/phantomjs/bin/phantomjs --webdriver=4444# Note: leave this running and open another terminal## Create "test.js" like in http://webdriver.io/guide.html## but remove the "browserName: firefox" constraint.## Run the testnode test.js