Selenium can't find element by xpath

后端 未结 4 2234
半阙折子戏
半阙折子戏 2021-01-06 15:14

I\'ve been working at this for some time now. I\'m using Selenium and WebDriver version 2.33 (with all browsers). I\'m using Java, which should be arbitrary. What I\'m doing

4条回答
  •  执念已碎
    2021-01-06 15:45

    Try as CSS Selectors :

    By by = By.css('div[id^="highcharts"] g[class^="highcharts"] > g > rec')
    

    g.class_name I used,as that tags class name is not visible. Replace that class name with the proper class name.

提交回复
热议问题