Jump to content

Click the link with dynamic text or javascript:; or <a> tag


6105
 Share

Recommended Posts

Dear guys,

i have a trouble, maybe someone will can help me?

I need to open an javascript link and can't find solution.

ArchoTag of the link:

Index: 22

Tag: A

Name: cmntLnk

Extra Information: Link Text: Link 31

Extra Information: Href: javascript:;

Obj Type: DispHTMLAnchorElement

I think there is 3 solutions:

By clicking the dynamic text "Link 2 or Link 123 or Link n"

By opening javascript href. there is 5 javascripts.

Or by using _IETagNameGetCollection, i don't know how to use this function to open link ;)

Now i try it, but IELinkClickByText don't click on A tag link:

$oElements = _IETagNameGetCollection($oIE,"A")
$text = ""
For $oElement In $oElements
   StringRegExp($oElement.innerText, "Link")
   If not @error then $text = $oElement.innerText
Next
_IELinkClickByText($oIE,$text)

Any tips pls how to open this link.

Thank you.

EDIT: Fix CODE.

Edited by 6105

[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Link to comment
Share on other sites

Some mistake, i see now it work ;)

[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Link to comment
Share on other sites

  • 3 years later...

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
 Share

×
×
  • Create New...