<div class="order-number">
<h3>"Order number: "<strong>123-123123</strong> </h3>
</div>
Any idea how to select the order number? I use Selenium 2. I tried this:
driver.findElement(By.xpath(".//*[matches(text(),'\\d+-\\d+']"));
But it's not working. Does Xpath2 support regex?
The number of the order is always different, but the style of XXX-XXXXXX is always the same.