View Full Version : Required not working in web scenario step
We're trying to test for the existence of a string on a page - we're not getting a match. The documentation shows you simply enter the string - "Homepage of ZABBIX" is the example. Any tips??
Thanks
Sam
If I was not clear - this is the feature that uses regular expressions to find something on the webpage.
I added some steps to my scenario that check zabbix.com and google.com - those checks work. Here is the page I am trying to check for "City of Springfield". Is it due to the frames?
<SCRIPT Language="Javascript" type="text/Javascript">
<!--
if (self != top) top.location.replace(self.location); //FrameBuster
//-->
</SCRIPT>
<HTML>
<HEAD>
<TITLE>City of Springfield Utilities Login</TITLE>
</HEAD>
<FRAMESET ROWS="120,*" frameborder="0" framespacing="0" border="false">
<FRAME SRC="https://utilities.cityofspringfield.org/uti-img/springfield_header.asp" NAME="Header" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="NO" NORESIZE>
<FRAMESET COLS="170,*" frameborder="0" framespacing="0" border="false">
<FRAME SRC="p_uwgptbar?page_name=UWGPDYNA" NAME="left frame" MARGINWIDTH="0" MARGINHEIGHT="0" NORESIZE>
<FRAME SRC="p_UWGPDYNA" NAME="main" MARGINWIDTH="0" MARGINHEIGHT="0">
</FRAMESET>
</FRAMESET>
</HTML>
the page was doing a foward - doh.
If you'll be using regexes in scenarios, you will probably come across a regex bug
The patch is here: http://www.zabbix.com/forum/showthread.php?t=8888