Jump to content

How to remove HTML from internet explorer ?


Recommended Posts

If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
    EndIf

"Yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results

Link to post
Share on other sites
$oHtmlElement = _IEGetObjById($oIE, "Element's ID Here")

; Not all HTML Elements have IDs, so you will have to find another way to target your desired elements

 

Edited by TheDcoder

EasyCodeIt - A cross-platform AutoIt implementation

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to post
Share on other sites
1 hour ago, Danp2 said:

_IEAction won't help in this scenario. You could try something like this (untested) --

$oElement = _IEGetObjById($oIE, "imagedetail")
$oElement.RemoveNode(True)

 

Thanks @Danp2

But, i want to remove second line, i have two same line with 'imagedetail' id and i want to remove second line, not first.

its Possible?

Link to post
Share on other sites
19 minutes ago, Nareshm said:

But, i want to remove second line

Would have been nice if you gave this information in your initial post. :'(

Use _IETagNameGetCollection to get a collection containing the desired elements. Then loop through this collection until you locate the desired element. Then attempt to remove that node. Give it a try and let us know how it goes.

Link to post
Share on other sites
36 minutes ago, Danp2 said:

Would have been nice if you gave this information in your initial post. :'(

Use _IETagNameGetCollection to get a collection containing the desired elements. Then loop through this collection until you locate the desired element. Then attempt to remove that node. Give it a try and let us know how it goes.

@Danp2

But, How it will delete only second line?

Link to post
Share on other sites

@Nareshm This isn't a forum where you can show up, make a request, and then expect someone to regurgitate some code for you. I gave you some hints in an attempt to point you in the right direction. There's lots of code posted on this forum that deals with _IETagNameGetCollection and traversing the collection of elements. There's also the help file examples.

You need to make some effort to solve your own problem. Where is your code? Post it here even if it doesn't work. At least show us that you are making an attempt to implement a solution. :thumbsup:

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...