Как кликнуть по ссылке в IE?

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Как кликнуть по ссылке в IE?

Как кликнуть по ссылке в IE?

Post by Magi » 22 May 2018, 08:31

Здравствуйте!

Есть страница на которой есть ссылка "Создать" с пиктограммой. Как правильно кликнуть по ссылке в скрипте с помощью COM объектов в IE ? Код ссылки:

Code: Select all

<a href="#" onclick="setKeys(event);safeCall(postServerEvent2,"CustomTitleBar_0",null,"CustomTitleBar_newkcdoc_0","CustomTitleBar_0","onaction","__dmfArgsId","0");return false;" title="Создать"><span title="Создать"><img class="actionimage" name="CustomTitleBar_newkcdoc_0" src="/webtop/ord_app/theme/korus/images/titlebar/document_new_32.gif" alt="Создать" width="32" height="32" border="0"></span></a></td><td align="left"><a href="#" onclick="setKeys(event);safeCall(postServerEvent2,"CustomTitleBar_0",null,"CustomTitleBar_newkcdoc_0","CustomTitleBar_0","onaction","__dmfArgsId","1");return false;" name="CustomTitleBar_newkcdoc_0" class="defaultActionLinkStyle" title="Создать">Создать</a>
Пробовал разными способами
Pwb.document.getElementsByClassName("CustomTitleBar_newkcdoc_0")[0].click()
Pwb.document.getElementsByClassName("defaultActionLinkStyle")[0].click()

Выдается ошибка Неизвестное имя.

Top