okhan
14 years agoNew Contributor
Panel name keeps changing for an object button
Call page2.panelQvccontainer.panelMidcontentarea.panelMaincontent.form.table.cell.HoverMouse(480, 40)
Set cell = iexplore.pageQvcUkShopReviewOrder4.panelQvccontainer.panelMidcontentarea.panelMaincontent.form.table.cell
Call cell.HoverMouse(106, 66)
cell.imagebuttonComplete.Click
Call iexplore.pageHttpsWwwQvcukComUkqicQvcappA4.HoverMouse(960, 190)
When I record a test for purchasing an item through an e-commerce website, the replay is failing on the "Submit Order" button. The fail message is that it cant find the panel.
I now know that the reason behind this is that the panel name is changing everytime. It keeps incrementing the number of the panel name by 1 everytime a new order is placed.
In this case the panel name is recorded as QvcUkShopReviewOrder4 and WwwQvcukComUkqicQvcappA4. If I run this test, it will look for QvcUkShopReviewOrder5 and WwwQvcukComUkqicQvcappA5 respectively.
Is there anyway around this problem?