How to validate footer

Best practices, code snippets for common functionality, examples, and guidelines.
Simran
Posts: 8
Joined: Thu Nov 02, 2017 9:03 pm

How to validate footer

Post by Simran » Thu Nov 02, 2017 9:06 pm

Hi

I am trying to validate footer, but when I use spy is selects whole email. Instead, I just want to select emailbody and footer. Could you please help me with that.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to validate footer

Post by odklizec » Fri Nov 03, 2017 12:37 pm

Hi,

Could you please post a Ranorex snapshot (not screenshot) of the email client you are using?

Anyway, I think it's normal behavior that Spy selects entire email. Unless the email is HTML formatted, there is probably no way to select individual email sections. And even with HTML formatting, it may be impossible to get just footer section of email.

I think your best hope is to parse the email with clever regex or code, which will return desired result. But once again, without (at very least) snapshot of the email client you are automating, it's pretty hard to suggest something reliable.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration