It seems like you can use the selenium ide and record the locator.