Search code examples
unit-testingfirefoxseleniumselenium-rcselenium-ide

Select selenium element by name with parantheses?


I have the following input element:

<input name='selected(1234)' type="checkbox" />

When I record, I get this:

Command: click
Target: selected(1234)

This doesn't find the element, and neither does

Target: name=selected(1234)

My assumption is that the parentheses are somehow messing with the lookup. What's the proper way to do this?


Solution

  • This could be a timing issue. If you record a test in selenium-IDE, it won't give you the waitForPageLoad commands you need when you convert the test to java.