how to locate an element by value using css selector in webdriver?

后端 未结 6 1507
广开言路
广开言路 2021-01-13 07:10

For the following element, how to find it by the value of the td using css selector? In this case it\'s \"unique text\"



        
6条回答
  •  走了就别回头了
    2021-01-13 07:53

    You could use something like this,

    With CSS Selector,

     By.cssSelector("td[class='someclass'][value='unique text']");
    

    For more information on using css selector, See here

提交回复
热议问题