2 Replies Latest reply on Jul 7, 2008 1:43 PM by fabboco

    Selenium IDE doesn't work on some pages

    fabboco

      Hi,

      my application are mainly organized in two types of pages.

      On on type the Selenium IDE works, on the other it doesn't. When I right click, its menu doesn't appear.

      Moreover, in both types the standard menu (which shows View Page Source option between others) doesn't appear on right click.

      So, I can't use Selenium IDE.

      Can anyone help me ?

      Many Thanks



      This is the page where Selenium IDE menu doesn't appear.

      
      <!DOCTYPE xsl:stylesheet [
       <!ENTITY nbsp " "> <!-- NO-BREAK SPACE -->
       ]>
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich"
       template="/layout/layout.xhtml">
      
      <ui:define name="windowTitle">
       <h:outputText value="#{msgs.list_ApplicationUser_title}" />
      </ui:define>
      
      <ui:define name="pageTitle">
       <h:outputText value="#{msgs.list_ApplicationUser_title}" styleClass="titleText" />
      </ui:define>
      
      <ui:define name="menubar">
       <h:form>
       <rich:toolBar>
       <h:commandLink immediate="true" value="#{msgs.Application_index}" action="/Index.seam" style="text-decoration: none; color: black" />
      ....
      
       </rich:toolBar>
       </h:form>
      </ui:define>
      
      <ui:define name="localSearch">
      
      </ui:define>
      
      <ui:define name="path">
      
      </ui:define>
      
      
      <ui:define name="content">
      
       <link rel="icon" href="../img/logo.jpg" type="image/jpg" />
       <link rel="shortcut icon" href="../img/logo.jpg" type="image/jpg" />
      
       <link href="../styles/custom.css" rel="stylesheet" type="text/css" />
      
      <script type="text/javascript" language="javascript">
      //<![CDATA[
      
       function startup()
       {
       }
      
      
      //]]>
      </script>
      
      <h:form id="form" >
      <!-- POPUP MENU -->
      <a4j:region>
      <rich:contextMenu attached="false" id="menu" submitMode="ajax" >
      
       <rich:menuItem ajaxSingle="true" value="#{msgs.list_ApplicationUser_display}" actionListener="#{ApplicationUserManager.popupMenuSelectItem}" action="#{ApplicationUserManager.initDisplay}" requestDelay="0" >
       <a4j:actionparam name="selectedId" value="{selectedBean}" />
       </rich:menuItem>
      
      ....
      </rich:contextMenu>
      </a4j:region>
      
      <table width="100%" cellpadding="0" cellspacing="0" >
      <!-- DATA SCROLLER: BUTTONS -->
      <a4j:region>
       <tr>
       <td align="center">
       <rich:datascroller id="dataScroll_1" for="applicationUser" ajaxSingle="true"
       fastStep="3"
       styleClass="formBorderHighlight"
       requestDelay="0"
       pageIndexVar="pageIndex"
       pagesVar="pages"
       />
       </td>
       </tr>
       <tr>
       <td align="center">
       <a4j:status><f:facet name="start"><h:graphicImage value="../img/spinner.gif"/></f:facet></a4j:status>
       </td>
       </tr>
      </a4j:region>
      <!-- DATA TABLE -->
       <tr>
       <td>
       <rich:panel>
       <rich:dataTable id="applicationUser" var="applicationUser" rows="25" value="#{applicationUserList}" width="100%" immediate="true"
       columnClasses = "dataColumnCenterAlignment,dataColumnLeftAlignment,dataColumnLeftAlignment,dataColumnLeftAlignment,dataColumnLeftAlignment,dataColumnLeftAlignment"
       columnsWidth = "1%,,,,,"
       >
       <f:facet name="header">
       <h:outputText value="Records: #{applicationUserList.size}" />
       </f:facet>
      <!-- POPUP MENU COLUMN -->
       <rich:column>
       <f:facet name="header"> </f:facet>
       <h:panelGroup>
       <h:graphicImage url="../img/action.gif" id="pic" >
       <rich:componentControl event="onclick" for="menu" operation="show" >
       <f:param value="#{applicationUser.id}" name="selectedBean"/>
       </rich:componentControl>
       </h:graphicImage>
       </h:panelGroup>
       </rich:column>
      <!-- OTHER COLUMS -->
      <rich:column>
       <f:facet name="header">
       <h:panelGroup style="white-space: nowrap;">
       <h:outputText value="#{msgs.list_ApplicationUser_tipoUtente}" />
       <a4j:region>
       <a4j:commandButton action="#{ApplicationUserManager.orderBy1A}" image="../img/asc.gif" rendered="#{order!=1}" ajaxSingle="true" reRender="applicationUser"/>
       <a4j:commandButton action="#{ApplicationUserManager.orderBy1A}" image="../img/asc_selected.gif" rendered="#{order==1}" ajaxSingle="true" reRender="applicationUser"/>
       <a4j:commandButton action="#{ApplicationUserManager.orderBy1D}" image="../img/desc.gif" rendered="#{order!=2}" ajaxSingle="true" reRender="applicationUser"/>
       <a4j:commandButton action="#{ApplicationUserManager.orderBy1D}" image="../img/desc_selected.gif" rendered="#{order==2}" ajaxSingle="true" reRender="applicationUser"/>
       <a4j:status><f:facet name="start"><h:graphicImage value="../img/spinner.gif"/></f:facet></a4j:status>
       </a4j:region>
       </h:panelGroup>
       </f:facet>
       <h:outputText value="#{applicationUser.tipoUtente}" >
       </h:outputText>
      </rich:column>
      
       </rich:dataTable>
       </rich:panel>
       </td>
       </tr>
      </table>
      </h:form>
      </ui:define>
      </ui:composition>
      
      


      This is the page where Selenium IDE menu appears.

      <?xml version="1.0" encoding="iso-8859-15"?>
      <!DOCTYPE xsl:stylesheet [
       <!ENTITY nbsp " "> <!-- NO-BREAK SPACE -->
       ]>
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich"
       template="/layout/layout.xhtml">
      <ui:define name="windowTitle">
       <h:outputText value="#{msgs.list_ApplicationUser_title}" />
      </ui:define>
      
      <ui:define name="pageTitle" styleClass="titleText" >
       <h:outputText value="#{msgs.form_ApplicationUser}" styleClass="titleText" />
      </ui:define>
      
      <ui:define name="menubar">
       <h:form>
       <rich:toolBar>
       <h:commandLink immediate="true" value="#{msgs.Application_index}" action="/Index.seam" rendered="#{ApplicationUserManager.showNavigationMenuItems}" style="text-decoration: none; color: black" />
       <h:commandLink immediate="true" value="#{msgs.list_ApplicationUser_title}" action="/list/ApplicationUserList.seam" rendered="#{ApplicationUserManager.showNavigationMenuItems}" style="text-decoration: none; color: black" />
       <h:commandLink immediate="true" value="#{msgs.list_ApplicationUser_title}" rendered="#{!ApplicationUserManager.showNavigationMenuItems}" style="text-decoration: none; color: black" />
      <!-- YOUR CODE GOES HERE -->
      <!-- END OF YOUR CODE -->
       <h:commandLink immediate="true" value="#{msgs.Application_print}" action="/ApplicationUserPrint.seam" rendered="#{applicationUserOperation!='CREATE'}" style="text-decoration: none; color: black" />
       <h:commandLink immediate="true" value="#{msgs.Application_administration}" action="/Administration.seam" rendered="#{ApplicationUserManager.showNavigationMenuItems}" style="text-decoration: none; color: black" />
       </rich:toolBar>
       </h:form>
      </ui:define>
      
      <ui:define name="localSearch">
      </ui:define>
      
      <ui:define name="content">
      
       <link href="styles/custom.css" rel="stylesheet" type="text/css" />
      
       <script type="text/javascript" src="scripts/utilities.js" ></script>
       <script type="text/javascript" src="seam/resource/remoting/resource/remote.js"></script>
      
      <s:remote include="ApplicationUserManager"/>
      <s:remote include="ApplicationRoleManager"/>
      
      
      <script language="JavaScript">
      //<![CDATA[
      
      
      
      
      function startup()
      {
      ----
      }
      
      
      //]]>
      </script>
      
      <h:form id="form" >
      
      <s:validateAll>
      
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
      
      <!-- YOUR CODE GOES HERE -->
      <!-- END OF YOUR CODE -->
       <tr><td width="100%">
       <rich:panel >
       <table border="0" cellpadding="0" cellspacing="0" width="100%">
       <tr>
       <td class="formFieldLabel" >
       <h:outputLabel for="enabled" value="#{msgs.form_ApplicationUser_enabled}" />
       </td>
       <td width="1%">
       </td>
       <td>
       <h:selectBooleanCheckbox id="enabled" value="#{applicationUser.enabled}" >
       <br />
       <h:message for="enabled" errorClass="rich-messages-label" />
       </td>
       <td width="1%"></td>
       </tr>
       </table>
       </rich:panel>
       </td></tr>
      
      .............
      
      <!-- FORM BUTTONS -->
       <tr><td colspan="2"><br /><br /></td></tr>
       <tr><td align="center">
       <rich:panel>
       <h:commandButton id="CREATE" styleClass="formButton" value="#{msgs.Application_buttonNew}" action="#{ApplicationUserManager.processCreate}" rendered="#{applicationUserOperation=='CREATE'}" />
       <h:commandButton id="EDIT" styleClass="formButton" value="#{msgs.Application_buttonEdit}" action="#{ApplicationUserManager.processEdit}" rendered="#{applicationUserOperation=='EDIT'}" />
       <h:commandButton id="DELETE" styleClass="formButton" value="#{msgs.Application_buttonDelete}" action="#{ApplicationUserManager.processDelete}" rendered="#{applicationUserOperation=='DELETE'}" />
       <h:commandButton id="DISPLAY" styleClass="formButton" value="#{msgs.Application_buttonOk}" action="#{ApplicationUserManager.processDisplay}" rendered="#{applicationUserOperation=='DISPLAY'}" />
       <rich:spacer width="10"/>
       <h:commandButton styleClass="formButton" value="#{msgs.Application_buttonCancel}" action="#{ApplicationUserManager.cancel}" immediate="true" rendered="#{applicationUserOperation!='DISPLAY'}" />
       </rich:panel>
       </td></tr>
      </table>
      
      </s:validateAll>
      
      <h:inputText id="operation" value="#{applicationUserOperation}" style="display:none;" disabled="true" />
      <h:inputText id="parentConversationId" value="#{ApplicationUserManager.applicationUserConversationId}" style="display:none;" disabled="true" />
      </h:form>
      
      </ui:define>
      
      </ui:composition>