Reputation: 763
I have a test that sends an email to mailinator from the baseurl defined in the config page. After the email is sent I then want to load mailinator to verify the email is there. What is happening however is protractor is loading www.mailinator.com instead of the baseurl.
I am calling mailinator like this below:
browser.get('www.mailinator.com');
Any idea how I can fix this? I browsed some stackoverflow pages however I haven't found one that directly relates to what I'm asking.
Thanks!
Upvotes: 1
Views: 125
Reputation: 262
I am still not sure I got you right.
Open website with
browser.get('https://iplan.newmarketinc.com/');
At the point you need to verify if email was sent, go to mailinator with
browser.get('www.mailinator.com');
Do the email verification. If you do not wish to leave your page on newmarketinc.com you can simply create new instance of webdriver for the purpose of getting to mailinator.
Upvotes: 1