Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8983055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:44:21+00:00 2026-06-15T20:44:21+00:00

hi there i am trying to test a scenario where mockmail sends an email

  • 0

hi there i am trying to test a scenario where mockmail sends an email with a link, the user will clck on the link and he will be a verified user. heres my mockmail output:

14:52:04,664 INFO  ~ From Mock Mailer
    New email received by
    From: Admin@xxx.com.tr
    ReplyTo: Admin@xxx.com.tr
    To: "xxx@hotmail.com" <xxx@hotmail.com>
    Subject: Verification 
    text/html; charset=UTF-8: <html>
    <body>
        <p>Click here to verify your password: <a href="http://localhost:9000/usercontroller/verifyforgotpassword?uuid=6aaf15da-75ca-44f4-9d3d-c9056d33e142"/></p>
    </body>
</html>

and heres my selenium code:

#{selenium}
open('/usercontroller/forgotpassword')
type('userid','stat-011032')
click('btnLogin')
storeLastReceivedEmailBy('xxx@hotmail.com', 'email')
store('javascript{/Subject:\s+(.*)/.exec(storedVars["email"])[1]}', 'subject')
assertEquals('Verification', '$[subject]')
#{/selenium}

i can extract the subject value from the email but i dont kow how to extract the link from the tag from the mail body.

Thanks for helping…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:44:22+00:00Added an answer on June 15, 2026 at 8:44 pm

    Use this commands

    store('javascript{/http:[^\s]+/.exec(storedVars["email"])[0]}', 'confirmationUrl')
    open($[confirmationUrl])
    

    Hope it helps 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to run PHPUnit test at CakePHP 2.0. There's no problem with
I'm trying to accomplish the following layout, http://www.rae-mx.com/test/css-layout.jpg and I'm almost there, except for
This is my string: <link href=/post?page=4&amp;tags=example rel=last title=Last Page> From there I am trying
I need to test my web app in a scenario where there’s no disk
I'm trying to test the routes on my rails 2.3.4 application. There are several
I am trying to test some of these code here http://ha.ckers.org/xss.html on my code.
I'm trying to expect an error in an rspec test. lambda {Participant.create!({:user_id => three.id,
Hi there i am trying to do simple thing and cant manage to work
hi there i'm trying to make a simple parser and using lex and yacc.
Hi there I'm trying to input 3 integers from the keyboard and print rows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.