Dashboard > Selenium > ... > Contributed User-Extensions > locateElementByPartialId
Selenium Log In View a printable version of the current page.
locateElementByPartialId
Added by Vidar Kongsli, last edited by Vidar Kongsli on Mar 22, 2007  (view change)
Labels: 
(None)

description

Locate an element on the page by a partial match in ID.

example of use

Given an element <div id="themainarea">...</div>, asserts that it contains the text 'Hello world':

assertText partialId=main Hello world

notes

  • This extension has been tested with Selenium 0.8.2
  • I explain the reason for creating this locator in my blog

download

partialId 1.0.zip

Site running on a free Atlassian Confluence Community License granted to OpenQA. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators