Worksoft Community

Generalizing URLs in HTML interface

Wiki Table of Contents

Page Details

First published by:
Justin Murdock
on 22 Apr 2009
Last revision by:
Nick Abdo
on 29 Apr 2011
3 people found this article useful.

100% of people found this useful
Generalizing URLs in HTML interface

If you have multiple web pages that are the same (except for the last few characters of the URL), ...

http://www.example.com/default.aspx?locale=nl-nl
http://www.example.com/default.aspx?locale=en-us
http://www.example.com/default.aspx?locale=fr-fr

... how do you get Certify to recognize all web pages without having to learn all three pages individually?

Method 1: You can learn one of the pages and manually change the attribute sting in the Map editor.

Use this for the window attribute string:

<version>3.0</version>
<findby><n>title</n>
<v criteria=”isequalto”>Worksoft website</v>
<n>caption</n>
<v criteria=”isequalto”>
Worksoft website - Windows Internet Explorer</v>
<n>url</n>
<v criteria=”startswith”>
http://www.example.com/default.aspx?locale=</v>
</findby>

Method 2: During learn use the functionality of V3 Learn to set the Startswith criteria before saving the map file and importing the map.

Recent Comments

Leave the first comment for this page.
©2009-2011 Worksoft, Inc.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems