nikgoodley-ibboost / aost

Automatically exported from code.google.com/p/aost
0 stars 0 forks source link

Sometimes, the tag name starts with default prefix #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For example, the UI module generated by TrUMP is as follows,

Container(UID: 'root', clocator: [tag: 'default:div']){
    Container(UID: 'T4d', clocator: [tag: 'default:ul']){
        UrlLink(UID: 'a0', clocator: [tag: 'a', text: 'Projects', title:
'Selenium Projects', href: '/projects/'])
        UrlLink(UID: 'a1', clocator: [tag: 'a', text: 'Download', title: 'Get
Selenium', href: '/download/'])
        UrlLink(UID: 'a2', clocator: [tag: 'a', text: 'Documentation', title:
'Technical references and guides', href: '/documentation/'])
        UrlLink(UID: 'a3', clocator: [tag: 'a', text: 'Support', title: 'Get help
with Selenium', href: '/support/'])
        UrlLink(UID: 'a4', clocator: [tag: 'a', text: 'About', title: 'Overview
of Selenium', href: '/about/'])
    }
    Container(UID: 'T4dd', clocator: [tag: 'default:div']){
        InputBox(UID: 'input5', clocator: [tag: 'input', type: 'text', name: 'q',
id: 'q'])
        TextBox(UID: 'label6', clocator: [tag: 'label', text: 'search selenium:',
title: 'Search SeleniumHQ.org's sites for selenium content'])
        SubmitButton(UID: 'input7', clocator: [tag: 'input', type: 'submit',
value: 'Go', id: 'submit'])
    }
    UrlLink(UID: 'a8', clocator: [tag: 'a', text: 'Selenium', title: 'Return
to Selenium home page', href: '/'])
}

Note that there are "default:" prefix in front of the Containers' tags.

Original issue reported on code.google.com by John.Jian.Fang@gmail.com on 2 Feb 2009 at 10:57

GoogleCodeExporter commented 9 years ago
seems the generated xpath coming with the "default:" prefix, for instance,

/default:html/default:body[@class='homepage']/default:div[@id='container']/defau
lt:div[@id='header']/default:ul/default:li[@id='menu_projects']/default:a

Original comment by John.Jian.Fang@gmail.com on 2 Feb 2009 at 11:30

GoogleCodeExporter commented 9 years ago
removed the prefix in TrUMP

Original comment by John.Jian.Fang@gmail.com on 3 Feb 2009 at 12:05