我正在尝试在正文中找到一个元素,但不断收到消息:
Selenium::WebDriver::Error::InvalidSelectorError: Locator Strategy 'css
selector' is not supported for this session
我尝试了很多组合,如:
@driver.find_element(:css, "div.ng-scope.ng-binding")
@driver.find_element(:css, 'body.ng-scope')
这是我正在使用的javascript:
<body ng-app="nuffieldClassBookingApp" class="ng-scope">
<!-- uiView: --><div ui-view="" class="ng-scope ng-binding">TEMPLATE
YALL ted</div>
<script type="text/javascript" src="js/app.js"></script>
</body>
有人有任何建议吗?