I am trying to access the innerHTML attribute of some div tag:

 

<div id="divDutiable"></div>

 

function displayDutiable(shouldDisplay)

  {

    var divToDisplay = document.getElementById("divDutiable");

    if (shouldDisplay)

    {

      divToDisplay.innerHTML = txt_divDutiable;

    }

    else

    {

      divToDisplay.innerHTML = txt_empty;

    }

  }

 

<scriptStep language="_javascript_">                         }                             step.setWebtestProperty('doIfStep',document.getHtmlElementById('divDutiable').innerHTML);

</scriptStep>

 

<verifyProperty name="doIfStep" text="gaga"/>

 

leads to

 

     [java] Test step verifyProperty (C:\eclipse\workspace\svcpoint\webtests\tests\Non-account-Customer.xml:64: )  named "<unknown>" failed with message "Incorrect property value found! Expected "gaga" but got "undefined""

 

how can I get the innerHTML attribute

 

Reply via email to