Can I test for the end of the content of a text/plain file with Selenium or javascript?
Posted
by fool4jesus
on Stack Overflow
See other posts from Stack Overflow
or by fool4jesus
Published on 2010-04-22T03:03:14Z
Indexed on
2010/04/22
3:23 UTC
Read the original article
Hit count: 239
I have a page that results in a text/plain file being displayed in the browser that looks like this:
...
Admin Site Administration 2010-04-21 22:26:34 [email protected]
Test Site Bob Smith 2010-04-21 22:27:09 [email protected]
Admin Site Administration 2010-04-21 22:29:26 [email protected]
I am trying to write a Selenium test against this that verifies the last line of the file has "[email protected]" at the end. How would you do this? I can't depend on the date/time as this is a login report that is constantly getting updated - all I want is to ensure that the last line ends with that email address. And I can't figure out how to do it using Selenium expressions, DOM, or XPath.
© Stack Overflow or respective owner