In one test I've told selenium to open a WSDL XML document, and thought I'd just do a verifyTextPresent to check for certain strings so I could assume I got the WSDL I wanted, but Selenium throws me a javascript error in htmlutils.js:

// Returns the text in this element
function getText(element) {
    text = "";

    if(element.textContent) {
        text = element.textContent;
    } else if(element.innerText) {
        text = element.innerText;
    }
    // Replace   with a space
    // TODO - should this be in the match() code instead?
    text = text.replace(/\240/g, " ");
    return text.trim();
}

The error is "element has no properties". I guess selenium doesn't handle XML ?
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to