Registration process with mail confirmation in Selenium - selenium

I have question about registration process in selenium. Which way is best to do it if we must click activation link in received email? Which method is used by commercial QA teams?
I am thinking about this problem and I want to use sites like '10 minutes mail', is that a good way?
There's any other options? I can't use same mail multiple times.
Creating new 'true' mail every time will be difficult and will take too much time, there will be captcha problems etc

you can use a mailbox as registration mail, which supply API to read mail content in inbox, rather than only can from UI. Therefore you can easier to get the activation link and send http request to simulate click activation link.

Try using regular gmail account, there is a trick with '+' character and You can re-use multiple times, and mail is getting received on same account.
So You can use like this: open gmail with desired address, eg. address testmail#gmail.com, so You can reuse it in following iterations:
testmail+1#gmail.com
testmail+2#gmail.com
...
testmail+test1#gmail.com
testmail+test2#gmail.com
and so You can have...lot of accounts. I've used this method and its quite sufficient.

Related

Autoresponder in Gmail without "Vacation Responder"?

I'm trying to set up an autoresponder in Gmail that is not a typical vacation responder that's sent via a separate email. My autoresponder should respond directly to the email that came to the inbox.
There used to be a way with IFTTT, but they've since removed any Gmail triggers.
The reason I am looking for this is that I have a business on Yelp and when customers request quotes on Yelp, they get sent to my email. I can either open the Yelp app (or website) and respond there or respond directly to that email from my email address (it doesn't work to send a separate email to that Yelp email).
Has anyone ever done anything like this before? Alternatively, I was thinking of going the somewhat more complicated route and have an "incoming email" trigger in Zapier and then have something scrape the email for links and set up an automation to respond with my standard response, but that seemed like a lot...
I've solved it with Zapier! Basically, in Zapier you need to set up a Gmail response and respond to the same thread ID as the original email. This will work for any "respond to this email to respond to the client" messages from pages like Yelp for Business.

Send Whatsapp message using a link

I came across a newsletter in which they have a WhatsApp link and when i click on it i am able send predefined message to predefined number.
SEND INQUIRY VIA WHATSAPP button is linked to below for example
https://whatsapp://send?phone=XXXXXXXX&text=Hi%2C%20this%20is%20test%20message.
Can i use this link in my newsletter without any restriction as i have a database of 2000 subscribers...
or i have to use some sort of verified mechanism using API so that whatsapp is not abused.
This link seems to be vulnerable and can be used for spam or its fine to use it
your URL is basically mal-formed.
The whatsapp:// is a kind-of protocol for transmitting information, and what you can do is to add it to a webpage as a link, so the visitor, upon clicking on that link from their phone, can access directly to Whatsapp.
Remember the oldie-goldie mailto:// which allow visitors to directly open the mail client they have on their computer, and pre-fill some email fields? This is the same.
Here is a really simple code-pen showing how can this be achieved.
Be sure to visit the codepen from your mobile:
https://codepen.io/diereysaa/pen/QWbjXGW
Replying to your specific question, there's no limitation on the use of this, since the executor will be each one of your subscribers, not your webserver. The only limitation will be your own phone, because if all of those 2,000 subscribers reply using the whatsapp link... you'll get 2,000 messages :D

Send email to pushbullet?

The website "PushBullet.com" is webwashed(filtered) by our proxy, at work.
But I really need to send some notifications to my devices.
Is there a way to send them thru the good old email protocol ?
So there is no officially supported feature for this, but you can sort of fake it using the existing email-to-push feature.
Send a push to an email address that is not a pushbullet account, such as yourgmailaccount+randomstring#gmail.com. It will have a from address of someotherrandomstring#pushbulletuseremail.com.
You can then send emails to that address, and they should show up in your pushes list.
Proposed method with random strings in email address doesn't work.
This method works. Not an email, just pure notification as required.
The library developer suggests also command line notification send. Simple and handy.
I was looking to do something similar so I could get pushbullet notifications from cron jobs, and came across this:
https://github.com/side2k/email2pb
I haven't gotten a chance to try it yet but I think this will do what you're wanting. Just tested it, and it works really well if you're able to run a postfix server.
I use Zapier for this (you can do it with a free account).
Set up a Zap to search for new mail under a label (I use "pushbullet-notify"), and send any message there to Pushbullet.
Then in Gmail just create filters for any mails you want PB notifications on, applying the same label.
The notification may be delayed up to 15 minutes from the time the email is received and labeled (free accounts check every 15 minutes).

Record confirmation email

Using Selenium IDE(HTML), I'm recording an registering under one website, and a confirmation email will be sent when the sign up is successful.
This confirmation message will be sent to my gmail. I was recording to check in my gmail using Selenium-Ide but I can't record.So I want to know how to record in gmail using selenium?
Well where is the email going?
Gmail?
Yahoo?
Some other web page?
The above four questions is important! Because, let's say you want to check confirmation email to your gmail if so you need to go to gmail url and you need to record Login and assert things.
I will be show you a example with gmail.
I want to check in my gmail if so
command open
Target https://mail.google.com/
this one need to add to your test. Because of you need to go to new page so you need to use open command.
Have a look at PutsBox. You can send an email to whatever-you-want#putsbox.com, wait for a few seconds (SMTP stuff ins't instantaneous) then check your email via http://preview.putsbox.com/p/whatever-you-want/last.
This post tutorial shows some examples.

Customised email alerts through MailChimp API

I am building a site that runs an automated process every 30 minutes to match up new flights with their respective user. Once this process is completed I want to email the flight details out to the respective user. However the flight info will be different for every single user with their being 0-300+ potential emails.
Is this something that the MailChimp API will allow or do? I found this page http://apidocs.mailchimp.com/api/how-to/transactional-campaigns.php which I am not sure if this effects me. Is the STS more suited to this? http://apidocs.mailchimp.com/sts/1.0/
Thanks
Alex
You should use Mandrill (which replace the STS offer). The cool thing with mandrill is that you can link it with you mailchimp account (It's a different product but it's powered by mailchimp).
Add your templates in mailchimp as usual, and hit the button "send to mandrill". Then just use the mandrill api :
http://mandrillapp.com/api/docs/messages.html#method=send-template
You could also use the feedblock option to display custom flight for each user. You just have to provide dynamic rss feed :
http://blog.mailchimp.com/new-feed-merge-tag-options/