TestStack / TestStack.Seleno

Seleno helps you write automated UI tests in the right way by implementing Page Objects and Page Components and by reading from and writing to web pages using strongly typed view models.
http://teststack.github.com/TestStack.Seleno/
MIT License
180 stars 60 forks source link

Verify SMTP ERROR with UI TEST #249

Open wijdench opened 7 years ago

wijdench commented 7 years ago

Hi,

I want to verify in my UI TEST that there is an smtp exception with status code or with a message that is presented in view page : Unable to connect to the remote server

Can you help me!

robdmoore commented 7 years ago

You could search the page content to see if the text you are looking for is present?

On 2 Aug 2016, at 6:25 PM, wijdench notifications@github.com wrote:

Hi,

I want to verify in my UI TEST that ther is an smtp exception with status code or with the message that is presented in view page : Unable to connect to the remote server

Can you help me!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

wijdench commented 7 years ago

i know but is there any other way to get the exception message from the server?

Thanks

robdmoore commented 7 years ago

Not really sorry. Selenium is running a web browser - that has absolutely no connection to the web server apart from the connection to port 80/443.

Rob Moore | Readify Principal Consultant, Technical Specialist (Microsoft Azure) | m +61 400 777 763 | e rob.moore@readify.net | w readify.net

On 3 Aug 2016, at 1:35 AM, wijdench notifications@github.com wrote:

i know but is there any other way to get the exception message from the server?

Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

wijdench commented 7 years ago

ok

Thanks for your response