When clicked on supportmailid present in webpage it takes me to Outlook create mail, how do I automate this? I am using selenium for all my automation of web-app.
This is tough scenario to automate Komal. Using selenium, We are restricted to interact only with web elements. I have face this issue. Its not possible to automate with outlook.
You can get() the support email address from web page
Write one custom method to send_an_email(). This will include all the steps of
- Open browser & visit on specific url
- Valid login
- Enter email address of "To", write subject line & actual email text
- Use support_email as a input parameter for send_an_email() method
- This way you can automate your scenario of sending email to support team.