JStudio SiteWalker Service BoardFind out / share information about our product, experience and requirements. To serve all user all postings must be written in English language. We are looking for constructive meanings and experience. Disrespectful postings will be deleted immediately.

I am currently building my first bigger Sitewalker Testcase and ran into the following Problem.

I have a page containing mainly list-data. The title is of the folowing structure: "LADUNGEN ({number of results}) ({time the page was served})" I would like to extract the {number of results} part in order to compare it with the results delivered after applying some filters. How is this done?

1. To extract text just find out the HTML element containing the text/ sourcecode. If it is displayed within the browser, just click on it. If not displayed find it in the document structure pane manually.

2. To extract a string part from the complete displayed text/ source code you have to specify a JavaScript doing the job. The following example shows how to extract 190 chars from the left of a your posting text and to change the displayed text of the element. To test it, just copy the code, switch to ScriptEditor, enter it and execute it against the page of this posting be selecting it from select box.

So if you had applied the 12th SPAN (which includes your posting text) as a step the ramaining text can be saved to Microsoft Excel and used for comparison purposes. To use Excel cell for validation comparison, please use Excel button on assertion definition within the Quick Validator.

Because your step saves extracted content to Excel those values can be used for validation.

Please Note: This is just a simple Example. Using JavaScript you can define more complex string manipulation functionality. Please refer to the delivered Example file Tutorial_EXample in your SiteWalker\Example folder. The task String Manipulation shows how to use JavaScript and to execute it during auto navigation. Anything can be done by JavaScript.