selenium - Is there any way with DevExpress to explicitly set the IDs of objects? -
selenium - Is there any way with DevExpress to explicitly set the IDs of objects? -
i testing new web page beingness developed devexpress. object ids (html ids) come out random strings no tie identifying.
ie: class="dxm-content dxm-hastext dx " href="/cr/sdpersonellhomepage" id="headermenu_dxi0i0_t" style="float: none;"> span class="dx-vam">summary page /span>/a>
is there way tell devexpress give object more meaningful id? or add together parameter can utilize give readability our test artifacts?
with watir can utilize regular expressions match attributes if pattern unique. it's slower exact string, much more flexible. example:
browser.link(id: /headermenu_\w{6}_t/) browser.link(id: /headermenu_\w{6}_t/, class: 'dx-vam') browser.link(id: /headermenu_\w{6}_t/, class: /^dx/) browser.link(id: /^headermenu_/, href: /personellhomepage$/) selenium devexpress watir web-testing
Comments
Post a Comment