Using Gatling 2.2.2
I need to select using some complicated selectors to extract items from a page.
These selectors all work fine when using Chrome’s developer mode search functionality, so they seem to be formatted appropriately.
I’ve tried using both CSS and XPath selectors.
css(“div[id=vertical-slider-pager] > a”, “href”).findAll.optional.saveAs(“categories”)
css(“div[class=sub-nav-column] > ul > li > a”, “href”).findAll.optional.saveAs(“categories”)
xpath("//div[@id=‘vertical-slider-pager’]/a/@href").findAll.optional.saveAs(“categories”)
xpath("//div[@class=‘sub-nav-column’]/ul/li/a/@href").findAll.optional.saveAs(“categories”)
However, I keep failing to get anything stored to “categories”, so it seems the selectors aren’t matching anything. Are such selectors simply not supported by CSSelly, or am I doing something wrong? I’ve used both types of selectors before but I don’t think I’ve tried to select children of elements before…