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

Key: WET-175
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: chitra
Reporter: Raghu Venkataramana
Votes: 0
Watchers: 0
Operations

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

WET UI recognizes wrong values for labels when adjacent items are other input elements.

Created: 16/Aug/06 10:07 AM   Updated: 09/Jul/07 01:56 AM
Component/s: None
Affects Version/s: 0.9.8_beta1
Fix Version/s: 1.0.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. screenshot-1.jpg
(116 kb)


 Description  « Hide
When WET tries to compute the label of an element, it makes a guess as to what the adjacent element is. When the adjacent element is another input element, like textbox, list etc., it uses the complete contents of this input (say all items or typed text) as the label.

 All   Comments   Work Log   Change History      Sort Order:
chitra - 16/Nov/06 12:09 AM
I faced a similar problem when i used webmail.http://thwameva.qantom.int/webmail

Steps to reproduce:

1.I logged into the webmail
2.I had created few transactions and one of the transactions being clicking on the Search link to find the mails.And the drop down box has options like INBOX,Sent,Trash,Draft.I was able to find the mail of a particular sender if i input that value in the textfield given and selecting an option from the drop down box.
These are considered as folders in this webmail

3.But when i create folders and try some operations like renaming them subscribung them and then run the test using batchrunner,i get a message in the result window saying"cannot locate watir Edit().

Workaround:
Changed the names of key ,value in the object store manger of wet ui for this object and ran the test,i was able to get the correct results.

This problem was occuring because,it was not able to recognise that object as the adjacent elements were the folders added.

chitra - 16/Nov/06 12:12 AM
The screen shot is to show the dropw down box which has the folders like INBOX,Drafts,Sent,Trash and the other folder by name board1 is the folder which was added later and because of which it is not recognising this lable.And the textfield besides it is not getting recognised.


Raghu Venkataramana - 18/Apr/07 02:38 PM
Chitra,

Can you verify this issue ? You can try with the Webmail application and also with the sample html file at:
<svn>/main/openqa/core/tests/html/LabelTest.html

After opening this file and syncing with the wet treeview (or simulated ie), generate scripts for the last 4 rows of Textfields. Only one of these textfields should show 'hello' as the label. For all others both label and suffix should be blank/

Thanks
Raghu