Monday 8 August 2011

Locator problems

I'm still exploring using Selenium with page objects. For webelements that have an id or name tag it is easy to define the locators, but I'm having some problems creating a locator for some links. The xpath reference to the link, nicely supplied by FirePath, results in a "Unable to locate element".  The link I'm trying to locate is in the format:

<a href="xxx/yyy/" title="yyy">yyy</a>


I'll just keep trying to find how to locate it. Next to that I'm going to start working on FitNesse.

1 comment:

  1. It seems I just have to look better at what I am doing. The initialisation for my test was wrong. When the test fires at the page I meant it to run on, the xpath expression works like a charm.

    ReplyDelete