0

In firebug, I used element inspector to locate an element, and then use the name of that element to locate the element in webdriver by function of findElementByName, but it complains it can't find that element. The element is transformed by javascript, as I can't find it using "view page source". So is it possible to locate such element in webdriver?

Daniel Wu
  • 5,853
  • 12
  • 42
  • 93

1 Answers1

0

can you provide some more details at least the html?

What I am assuming that you have to wait until your javaScript finish loading. Use this if your application use jQuery. And then find the element using attribute. In that case you have to be perfect with the selector.

Something like this should work I am thinking.

By.CssSelector("[type='checkbox']") //attribute = attribute value

Community
  • 1
  • 1
Saifur
  • 16,081
  • 6
  • 49
  • 73