Selenium: not able to find element UNDER PRIVILEDGED

  • What will be the Selenese for this element?


    I've written like this

    cmd    : type
    Target : name=UNDER PRIVILEDGED
    Value  :7000

    But found this error -

    [error] Element name=UNDER PRIVILEDGED not found.

    There is a space in the name.

  • I think a space in the name attribute is not valid.

    ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").

    So I assume Selenium do not handle invalid HTML.

Log in to reply

Suggested Topics