|
|
|
[
Permlink
| « Hide
]
Raghu Venkataramana - 29/Sep/06 04:35 PM
The chances that we run into this is quite rare. On those occassions, the scripts can be changed by hand
Tried the WET UI on the page "http://www.wet.qantom.org/home.html" and got the following description about the button object.
Browser("title:=Commercial grade Opensource Web automation testing tool").Button("value:=<SPAN style="COLOR: #000099">Home</SPAN>").click() which is syntactically wrong, since a double quote appears just before "COLOR" and just before ">Home<" and the proper escape sequence of putting backslash before the extra double quote is not present. I have logged the above bug basically from two persceptives, while the WET user starts using WET UI for scripting (a) While using the WET UI extensively, during scripting, there are chances, that script developer just right clicks on the web object which has either of the above characters (return character, double quote or backslash) and finds only at the end about the syntax error, when either the script is opened in an editor like SciTE which highlights about the wrong syntax or while trying to compile or run the scirpt. (b) With the introduction of WET UI, more novice users of Ruby language will start using WET and few may not be in a position to understand and correct the syntax. Their presumtion would be that the script lines generated by the WET UI utility is syntactically correct, which in the present case is NOT guaranteed. In the light of the above, I think the above bug should be addressed in 0.9.8 Patch. Fixed in Rev. 411 and 412
Had to encode the string and also make some changes to the function dialog. I haven't done a lot of testing on this. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||