History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WET-290
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: shruthi
Reporter: rafael teipen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WET

Properties of web pages should be escaped when converting to object definitions

Created: 11/Dec/06 12:04 PM   Updated: 09/Jul/07 01:26 AM
Component/s: None
Affects Version/s: 0.9.8 Final
Fix Version/s: 1.0.0

File Attachments: None
Image Attachments:

1. screenshot-1.jpg
(74 kb)
Environment:
windows xp professional 2002, sp2
internet explorer 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
ruby 185-21
Issue Links:
Relationship
 
This issue Relates to:
WET-239 Labels containing return character, b... Major Closed


 Description  « Hide
after rightclicking a link and execute a "click" on it
only the communication exception occurs

 All   Comments   Change History      Sort Order:
Raghu Venkataramana - 04/May/07 04:59 AM
Shruthi,

Can you look into this?

The problem is that sometimes when properties have characters like:
'\' (backslash) or '""" (double quotes) are present for the object properties, then the script generated for this object doesn't play back. To reproduce this, create a html page with some properties (eg. name) which have these special characters - backslash and double quotes.

Example =

<input type=text name='hello"there"Done'>

Then when you use simulated browser or wet treeview to record scripts, these characters should be automatically escaped with a preceding backslash.

for the above, definition should be Browser(...).TextField("name" => "hello\"there")

From what I can remember we are already doing this by calling ObjectUtils.EncodeString. If not please add this support.

Finally run all the csdom unit tests.

Then using the simulated browser or the wet


shruthi - 21/May/07 06:40 AM
ObjectUtils.EncodeString is been used when an escape sequence is encountered.

Thanks,
shruthi