I am writing tests to test the frontend of a store.
I create products and categories in the admin, this completes as one test.
I then complete a simple test to load the category on the frontend, this completes as one test.
I then try to sort the listing from high to low by price.
This is when the error happens, 'cannot find elements, "dropdowns" - "sort_by_price"
The XPath declared in the YAML is that given by FirePath (Firebug Extension), also the suggested Selenium Firefox Plugin path.
category_page_after_reindex: mca: catalog/category/view/s/%categoryUrl%/id/%id%/ title: %elementTitle% uimap: &catalogUIMap form: &categoryPage fieldsets: - dropdowns: sort_by_price: //div[@id='main']/div/div/div/div/div/select
//Steps $this->clickControl('dropdown', 'sort_by_price');