Forum Discussion

kikaider69's avatar
kikaider69
Occasional Contributor
14 years ago

How would i delete a "Contact" object from my program

Internet Explorer 9

windows 7

recording via scripting



I am trying to automate a site to delete by image.

We have a website where we delete by 'image' so when we want to delete a contact, we click on the delete image associate with the contact



This is recorded when i click on the delete image...




  Call iexplore.ToUrl(http://siemensifu.mechpod.com/?q=user/90/contacts/272/delete)


want to do

  Call iexplore.ToUrl("http://siemensifu.mechpod.com/?q=user/90/contacts/*/delete")




when i opened up object spy to look at this image

Aliases.iexplore.OrderHistory.panelWrapper.panelContent.panelContentMiddle1.tableUcOrderHistoryStickyEnabled.cell.Link(1).Image("order_delete_gif")



What I would like to do is delete the contact after I go ahead and create the contact.

but i dont care what the number is



Is there some way I can skip the number and delete the contact. i.e. the number changs as new contacts are added and deleted.



note: you can download the attachment, change the .png back to .doc

  • Steven,


    I'd suggest that you try simulating a click on the link that contains the image, that is --


    Aliases.iexplore.OrderHistory.panelWrapper.panelContent.panelContentMiddle1.tableUcOrderHistoryStickyEnabled.cell.Link(1).Click


    An asterisk (*) cannot be used in the ToUrl method as this method must specify the exact URL for navigation to the web browser.

    The asterisk can be used in the Page("*") method, which you use to access the tested web page.