Can I use Name attribute with cssselector?

In my application when I am trying to locate the elements with name or id, webdriver is saying that the element is not visible

But when I try with cssselector(“#id”),  its able to locate the element.
The issue is in my application the ids are changing every-time the page is refreshed, so I want to use the Name attribute instead of ID.

Is that possible?

Train Asked on December 12, 2014 in Selenium WebDriver.

Hi Som
Why not Try Something Like That   //tag[@name=’xyz’]   .?

on December 12, 2014.

Can you  give me a example

on December 12, 2014.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.