Что нового

[Автоматизация] Клик по объекту IE не имеющему уникального имени

sevis

Новичок
Сообщения
15
Репутация
0
Заранее извиняюсь за неструктурированный вид кода.

Насколько я понимаю в коде ниже есть уникальный объект "HeroFrame5969471CentralContent"

Этот объект содержит некоторые свойста или подобъекты, которые могут так же быть у других уникальных объектов такого же типа. В частности у этого объекта есть такое свойство: class="floatLeft tabTitle clickable"

Внимание вопрос!!! Какой код нужно написать, чтобы можно было кликнуть по:
Код:
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Frame_tab.gif); WIDTH: 81px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -27px; HEIGHT: 27px" class="floatLeft tabTitle clickable" $included="null">Навыки</DIV>


Код:
<DIV id=HeroFrame5969471CentralContent><DIV class=relativePosition>
<DIV class="center size11 uppercase white boldFont titleBar"><SPAN id=HeroFrame5969471HeroName>Герой</SPAN> </DIV>
<DIV id=HeroFrame5969471Container class=heroFrameContainerBackground>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/hero/portraits/Academy/academy_01.jpg)" id=HeroFrame5969471HeroContainer class="heroFrameLeft floatLeft">
<DIV class=heroFacebookLink>
<DIV id=HeroFrame5969471PublishLink class="floatRight alreadyRender">
<DIV class="clickable facebookShareButtonHolderLeft floatLeft white tahoma size10 boldFont">
<FORM id=HeroFrame5969471PublishForm method=post action=""></FORM>
<DIV class=lineHeight11px>Отправить</DIV></DIV>
<DIV class="facebookShareButtonHolderRight floatLeft"></DIV></DIV></DIV>
<DIV class="heroCapacityResume absolutePosition">
<DIV class=heroNameIdentity>
<DIV id=HeroFrame5969471Name class="size15 uppercase boldFont center floatLeft">Трэрг</DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/common.gif); WIDTH: 10px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -101px -92px; HEIGHT: 10px" id=HeroFrame5969471PersonnalizeHeroButton class="clickable floatLeft _heroFrameButton Voffset3 Hoffset5"></DIV>
<DIV class=clearBoth></DIV></DIV>
<DIV class="borderBrown1 beigeBg3">
<DIV class=heroTrainingContainer>
<DIV id=HeroFrame5969471Training class="size13 boldFont center white Vpadding15 Hoffset70R">Чародей-фанатик</DIV>
<DIV id=HeroFrame5969471ChangeTrainingItemContainer class=hidden>
<DIV id=HeroFrame5969471ChangeTrainingItemArrowContainer class=hidden>
<DIV id=HeroFrame5969471ChangeTrainingItemLeftArrow class=heroTrainingItemLeft></DIV>
<DIV id=HeroFrame5969471ChangeTrainingItemRightArrow class=heroTrainingItemRight></DIV></DIV>
<DIV id=HeroFrame5969471ChangeTrainingItemButton class=heroTrainingItemButton></DIV>
<DIV id=HeroFrame5969471ChangeTrainingValidateButton class="hidden heroTrainingItemButton"></DIV></DIV></DIV>
<DIV class="Voffset8 Voffset8R Hoffset40">
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/common.gif); WIDTH: 18px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -260px -220px; HEIGHT: 13px" id=HeroFrame5969471XPImage class="Voffset1 floatLeft"></DIV>
<DIV id=HeroFrame5969471XPBarContainer class="floatLeft Hoffset10 XPBarContainer chocolateBg brown3Border">
<DIV style="WIDTH: 13.33%" id=HeroFrame5969471XPBar class="relativePosition size0 XPBar"></DIV></DIV>
<DIV class="floatLeft size11 Hoffset5">ур <SPAN id=HeroFrame5969471Level>2</SPAN></DIV>
<DIV class=clearBoth></DIV></DIV>
<DIV class="chocolate size15 heroFrameCaracsBackground clearBoth Hoffset35 Voffset5R">
<DIV class="floatLeft Hoffset7 Hoffset7R boldFont">
<DIV id=HeroFrame5969471AttackImage class="heroFrameModelAttackImage floatLeft"></DIV>
<DIV class="heroCaracsTextBg floatLeft"><SPAN id=HeroFrame5969471Attack class=" ">4</SPAN></DIV></DIV>
<DIV class="floatLeft Hoffset7 Hoffset7R boldFont">
<DIV id=HeroFrame5969471DefenseImage class="heroFrameModelDefenseImage floatLeft"></DIV>
<DIV class="heroCaracsTextBg floatLeft"><SPAN id=HeroFrame5969471Defense class=Hoffset3>0</SPAN></DIV></DIV>
<DIV class="floatLeft Hoffset7 Hoffset7R boldFont">
<DIV id=HeroFrame5969471MagicImage class="heroFrameModelMagicImage relativePosition floatLeft"></DIV>
<DIV class="heroCaracsTextBg floatLeft"><SPAN id=HeroFrame5969471Magic class=" Hoffset3">4</SPAN></DIV></DIV>
<DIV class=clearBoth></DIV></DIV></DIV>
<DIV id=HeroFrame5969471ChangeSkinItemContainer class="hidden heroPortraitContainer borderBrown1 Voffset10">
<DIV id=HeroFrame5969471ChangeSkinItemText class="white left Hoffset50 Hoffset30R boldFont Voffset5 floatLeft heroChangeSkinText">Измените внешность героя!</DIV>
<DIV id=HeroFrame5969471ChangeSkinItemArrowContainer class="hidden inlineBlock">
<DIV class="heroChangeSkinArrows Hoffset50 floatLeft Hoffset30R">
<DIV id=HeroFrame5969471ChangeSkinItemLeftArrow class="inlineBlock top Voffset7 Hoffset3R"></DIV>
<DIV id=HeroFrame5969471ChangeSkinItemTextLabel class="hidden white top size11 boldFont Voffset15 inlineBlock">Выберите</DIV>
<DIV id=HeroFrame5969471ChangeSkinItemRightArrow class="inlineBlock top Voffset7 Hoffset3"></DIV></DIV>
<DIV id=HeroFrame5969471ChangeSkinValidateButton class="hidden inlineBlock"></DIV></DIV><SPAN id=HeroFrame5969471ChangeSkinItemButton class=inlineBlock></SPAN></DIV></DIV></DIV>
<DIV class="frameSeparatorV4 floatLeft"></DIV>
<DIV id=HeroFrame5969471InventoryBioSpellsTabbedContent class=floatLeft>
<DIV class="tabBar center white">
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Frame_tab.gif); WIDTH: 81px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -162px -27px; HEIGHT: 27px" class="floatLeft tabTitle tabSimpleSelected clickable" $included="null">Обзор</DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Frame_tab.gif); WIDTH: 81px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -27px; HEIGHT: 27px" class="floatLeft tabTitle clickable" $included="null">Навыки</DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Frame_tab.gif); WIDTH: 81px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -27px; HEIGHT: 27px" class="floatLeft clickable tabTitle" $included="null">Предметы</DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Frame_tab.gif); WIDTH: 81px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -27px; HEIGHT: 27px" id=HeroFrame5969471SpellTab class="floatLeft clickable tabTitle" $included="null">Заклинания</DIV></DIV>
<DIV class="tabContent heroFrameSummary relativePosition" $included="null">
<DIV id=HeroFrame5969471SummaryClassEffectListContainer class="gradientBg floatLeft relativePosition heroFrameSummaryEffectContainer">
<DIV id=HeroFrame5969471SummaryEmptyContent class="doublePadding size13 boldFont darkBrown hidden">
<P>Вы еще не потратили первое очко навыка, полученное персонажем. Щелкните по вкладке "Навыки".</P>
<P>Ваш герой может использовать очки навыков, чтобы освоить до трех профессий. Они позволяют приобретать различные навыки в пределах выбранной профессии.</P></DIV>
<DIV id=HeroFrame5969471SummaryClassEffectList>
<DIV id=HeroFrameSummaryHeroClass1891831>
<DIV class=clearBoth>
<DIV id=HeroFrameSummaryHeroClass1891831Container class="heroFrameSummaryHeroClassBackground heroFrameSummaryHeroClassBackground_red">
<DIV class="floatLeft heroClassImageZone relativePosition">
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/HeroClass.gif); WIDTH: 52px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -572px -148px; HEIGHT: 50px" id=HeroFrameSummaryHeroClass1891831HeroClassBorder class="Voffset1 absolutePosition"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/HeroClass.gif); WIDTH: 44px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -264px 0px; HEIGHT: 44px" id=HeroFrameSummaryHeroClass1891831HeroClassImage class="Hoffset5 Voffset3 absolutePosition"></DIV></DIV>
<DIV class="white floatLeft heroClassName">
<DIV id=HeroFrameSummaryHeroClass1891831HeroClassName class="size18 boldFont heroClassOtherBonuses">Боец</DIV>
<DIV id=HeroFrameSummaryHeroClass1891831HeroClassEffect class="size10 boldFont clearBoth">Может использовать магическое оружие.</DIV></DIV></DIV>
<DIV id=HeroFrameSummaryHeroClass1891831EffectList class="clearBoth Hoffset20"></DIV></DIV></DIV></DIV></DIV>
<DIV id=HeroFrame5969471SummaryClassEffectListContentSlider class="floatLeft contentSliderBackground disabled">
<DIV id=HeroFrame5969471SummaryClassEffectListContentSliderScrollTopButton class="contentSliderScrollTopButton disabled"></DIV>
<DIV style="HEIGHT: 424px" id=HeroFrame5969471SummaryClassEffectListContentSliderSlider class="clearBoth relativePosition">
<TABLE style="POSITION: relative; HEIGHT: 4113px; TOP: 0px" id=HeroFrame5969471SummaryClassEffectListContentSliderKnob class="contentSliderCursor clickable floatLeft hidden">
<TBODY>
<TR>
<TD class=contentSliderKnobTop></TD></TR>
<TR>
<TD class=contentSliderKnobBody></TD></TR>
<TR>
<TD class=contentSliderKnobBottom></TD></TR></TBODY></TABLE></DIV>
<DIV id=HeroFrame5969471SummaryClassEffectListContentSliderScrollDownButton class="contentSliderScrollDownButton disabled"></DIV></DIV></DIV>
<DIV class="tabContent gradientBg heroFrameSkills absolutePosition hidden" $included="null">
<DIV class="Hoffset0 Hoffset0R Voffset30 heroFrameClass">
<DIV id=HeroFrame5969471XPPoints class=heroFrameXPPoints>1</DIV>
<DIV id=HeroFrame5969471LearntClassListContainer class="learntClassListContainer floatLeft">
<DIV id=HeroFrame5969471LearntClass1Container class="heroFrameLearntClassContainer heroFrameLearntClass1Container relativePosition" $included="null">
<DIV id=LearntHeroClass1891831>
<DIV class=heroFrameLearntClassContainer>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/HeroClass.gif); WIDTH: 44px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -264px 0px; HEIGHT: 44px" id=LearntHeroClass1891831Image class="absolutePosition learntHeroClassImage"></DIV>
<DIV id=LearntHeroClass1891831SkillListContainer>
<DIV id=LearntHeroClass1891831Skill1Container class="_learntClassSkillContainer learntClassSkill1Container absolutePosition" $included="null">
<DIV id=HeroClassSkill7592851 class=clickable>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/HeroClassSkill.gif); WIDTH: 25px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -100px -25px; HEIGHT: 25px" id=HeroClassSkill7592851Image class="clearBoth relativePosition"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/common.gif); WIDTH: 7px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -21px; HEIGHT: 7px" id=HeroClassSkill7592851Level1Image class="heroClassSkillLevel1 relativePosition hidden"></DIV>
<DIV id=HeroClassSkill7592851Level2Image class="heroClassSkillLevel2 relativePosition hidden"></DIV>
<DIV id=HeroClassSkill7592851Level3Image class="heroClassSkillLevel3 relativePosition hidden"></DIV></DIV></DIV>
<DIV id=LearntHeroClass1891831Skill2Container class="_learntClassSkillContainer learntClassSkill2Container absolutePosition" $included="null">
<DIV id=HeroClassSkill7592861 class=clickable>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/HeroClassSkill.gif); WIDTH: 25px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -125px -25px; HEIGHT: 25px" id=HeroClassSkill7592861Image class="clearBoth relativePosition"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/common.gif); WIDTH: 7px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -21px; HEIGHT: 7px" id=HeroClassSkill7592861Level1Image class="heroClassSkillLevel1 relativePosition hidden"></DIV>
<DIV id=HeroClassSkill7592861Level2Image class="heroClassSkillLevel2 relativePosition hidden"></DIV>
<DIV id=HeroClassSkill7592861Level3Image class="heroClassSkillLevel3 relativePosition hidden"></DIV></DIV></DIV>
<DIV id=LearntHeroClass1891831Skill3Container class="_learntClassSkillContainer learntClassSkill3Container absolutePosition" $included="null">
<DIV id=HeroClassSkill7592871 class=clickable>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/HeroClassSkill.gif); WIDTH: 25px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -150px -25px; HEIGHT: 25px" id=HeroClassSkill7592871Image class="clearBoth relativePosition"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/common.gif); WIDTH: 7px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -21px; HEIGHT: 7px" id=HeroClassSkill7592871Level1Image class="heroClassSkillLevel1 relativePosition hidden"></DIV>
<DIV id=HeroClassSkill7592871Level2Image class="heroClassSkillLevel2 relativePosition hidden"></DIV>
<DIV id=HeroClassSkill7592871Level3Image class="heroClassSkillLevel3 relativePosition hidden"></DIV></DIV></DIV>
<DIV id=LearntHeroClass1891831Skill4Container class="_learntClassSkillContainer learntClassSkill4Container absolutePosition" $included="null">
<DIV id=HeroClassSkill7592881 class=clickable>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/HeroClassSkill.gif); WIDTH: 25px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -175px -25px; HEIGHT: 25px" id=HeroClassSkill7592881Image class="clearBoth relativePosition"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/common.gif); WIDTH: 7px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -21px; HEIGHT: 7px" id=HeroClassSkill7592881Level1Image class="heroClassSkillLevel1 relativePosition hidden"></DIV>
<DIV id=HeroClassSkill7592881Level2Image class="heroClassSkillLevel2 relativePosition hidden"></DIV>
<DIV id=HeroClassSkill7592881Level3Image class="heroClassSkillLevel3 relativePosition hidden"></DIV></DIV></DIV>
<DIV id=LearntHeroClass1891831Skill5Container class="_learntClassSkillContainer learntClassSkill5Container absolutePosition" $included="null"></DIV></DIV></DIV></DIV></DIV>
<DIV id=HeroFrame5969471LearntClass1PlusImageContainer class="clickable heroFramePlusImage1Container relativePosition hidden floatLeft"></DIV>
<DIV id=HeroFrame5969471LearntClass2Container class="heroFrameLearntClassContainer heroFrameLearntClass2Container relativePosition" $included="null"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/HeroClassSkill.gif); WIDTH: 25px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -25px -125px; HEIGHT: 25px" id=HeroFrame5969471LearntClass2PlusImageContainer class="clickable heroFramePlusImage2Container relativePosition floatLeft"></DIV>
<DIV id=HeroFrame5969471LearntClass3Container class="heroFrameLearntClassContainer heroFrameLearntClass3Container relativePosition" $included="null"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/HeroClassSkill.gif); WIDTH: 25px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -25px -125px; HEIGHT: 25px" id=HeroFrame5969471LearntClass3PlusImageContainer class="clickable heroFramePlusImage3Container relativePosition floatLeft"></DIV></DIV></DIV>
<DIV class="noClassChosenContainer Voffset10 Hoffset0 Hoffset0R">
<DIV id=HeroFrame5969471NoClassChosenContainer class=hidden><B>Подсказка:</B>Выберите первую профессию, щелкнув по любому из знаков "+".</DIV>
<DIV id=HeroFrame5969471NoSkillChosenContainer><B>Подсказка:</B>Вы можете выбрать еще до 2 профессий или же выучить один из навыков внутри уже освоенной, щелкнув по соответствующему значку. </DIV></DIV>
<TABLE class="Voffset10 tableAlignCenter" border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD>
<DIV id=HeroFrame5969471ShowClassesButton class="clickable floatLeft _heroFrameButton">
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Label_Buttons.png); WIDTH: 7px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -460px -6px; HEIGHT: 22px" id=HeroFrame5969471ShowClassesButtonLeft class="floatLeft clickable"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Label_Buttons.png); BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -450px; HEIGHT: 22px" id=HeroFrame5969471ShowClassesButtonBackgroundText class="boldFont personnalizeHeroButtonText floatLeft clickable">Показать профеcсии</DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Label_Buttons.png); WIDTH: 7px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -453px -6px; HEIGHT: 22px" id=HeroFrame5969471ShowClassesButtonRight class="floatLeft clickable"></DIV></DIV></TD>
<TD>
<DIV id=HeroFrame5969471RespecHeroButton class="Hoffset20 clickable floatLeft _heroFrameButton">
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Label_Buttons.png); WIDTH: 7px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -460px -6px; HEIGHT: 22px" id=HeroFrame5969471RespecHeroButtonLeft class="floatLeft clickable"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Label_Buttons.png); BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -450px; HEIGHT: 22px" id=HeroFrame5969471RespecHeroButtonBackgroundText class="boldFont personnalizeHeroButtonText floatLeft clickable">Изменить специализацию</DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Label_Buttons.png); WIDTH: 7px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -453px -6px; HEIGHT: 22px" id=HeroFrame5969471RespecHeroButtonRight class="floatLeft clickable"></DIV></DIV></TD></TR></TBODY></TABLE>
<TABLE class="Voffset20 tableAlignCenter" border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD>
<DIV id=HeroFrame5969471DisbandHeroButton class="clearBoth clickable _heroFrameButton hidden">
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Label_Buttons.png); WIDTH: 7px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -460px -6px; HEIGHT: 22px" id=HeroFrame5969471DisbandHeroButtonLeft class="floatLeft clickable"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Label_Buttons.png); BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -450px; HEIGHT: 22px" id=HeroFrame5969471DisbandHeroButtonBackgroundText class="boldFont personnalizeHeroButtonText floatLeft clickable">Отпустить</DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Label_Buttons.png); WIDTH: 7px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -453px -6px; HEIGHT: 22px" id=HeroFrame5969471DisbandHeroButtonRight class="floatLeft clickable"></DIV></DIV></TD></TR></TBODY></TABLE></DIV>
<DIV class="tabContent whiteBg heroFrameInventory floatLeft relativePosition hidden" $included="null">
<DIV id=HeroFrame5969471EquipmentArtefactList class="equipementListBg relativePosition equipementListBg_academy">
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/common.gif); WIDTH: 34px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -54px; HEIGHT: 38px" id=HeroFrame5969471EquipmentIcon class="Hoffset7 Voffset10 floatLeft"></DIV>
<DIV class="size14 boldFont Hoffset5 Voffset20 floatLeft">Снаряжение</DIV>
<DIV class="absolutePosition heroEquipmentHead artefactEquipmentDroppable artefactDroppable droppable" title="" $included="null" ownerType="HeroEquipment" ownerId="5969471" position="1" bodyPart="HEAD"></DIV>
<DIV class="absolutePosition heroEquipmentNecklace artefactEquipmentDroppable artefactDroppable droppable" title="" $included="null" ownerType="HeroEquipment" ownerId="5969471" position="2" bodyPart="NECKLACE"></DIV>
<DIV class="absolutePosition heroEquipmentRightHand artefactEquipmentDroppable artefactDroppable droppable" title="" $included="null" ownerType="HeroEquipment" ownerId="5969471" position="3" bodyPart="RIGHT_HAND"></DIV>
<DIV class="absolutePosition heroEquipmentChest artefactEquipmentDroppable artefactDroppable droppable" title="" $included="null" ownerType="HeroEquipment" ownerId="5969471" position="4" bodyPart="CHEST"></DIV>
<DIV class="absolutePosition heroEquipmentLeftHand artefactEquipmentDroppable artefactDroppable droppable" title="" $included="null" ownerType="HeroEquipment" ownerId="5969471" position="5" bodyPart="LEFT_HAND"></DIV>
<DIV class="absolutePosition heroEquipmentRing artefactEquipmentDroppable artefactDroppable droppable" title="" $included="null" ownerType="HeroEquipment" ownerId="5969471" position="6" bodyPart="RING"></DIV>
<DIV class="absolutePosition heroEquipmentFeet artefactEquipmentDroppable artefactDroppable droppable" title="" $included="null" ownerType="HeroEquipment" ownerId="5969471" position="7" bodyPart="FEET"></DIV>
<DIV class="absolutePosition heroEquipmentCape artefactEquipmentDroppable artefactDroppable droppable" title="" $included="null" ownerType="HeroEquipment" ownerId="5969471" position="8" bodyPart="CAPE"></DIV></DIV>
<DIV class="absolutePosition error boldFont clearBoth moveErrorBody">
<DIV id=HeroFrame5969471ArtefactMoveErrorBodyPart class=hidden>Этот артефакт не может быть надет на эту часть тела</DIV>
<DIV id=HeroFrame5969471ArtefactMoveErrorHeroLevel class=hidden>Общий уровень магических предметов не может превышать уровень героя.</DIV>
<DIV id=HeroFrame5969471ArtefactMoveErrorWrongSet class=hidden>Этот герой уже владеет волшебным предметом из другого комплекта.</DIV>
<DIV id=HeroFrame5969471ArtefactMoveErrorSetMainHero class=hidden>Наследник вашей династии не может владеть частью комплекта волшебных предметов.</DIV></DIV>
<DIV class="gradientBg artefactListBg">
<DIV id=HeroFrame5969471BackpackArtefactListContainer class=backpackListBg>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/common.gif); WIDTH: 34px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -34px -54px; HEIGHT: 31px" id=HeroFrame5969471BackpackIcon class="Hoffset7 floatLeft"></DIV>
<DIV class="size14 boldFont Hoffset5 Voffset5 floatLeft">Рюкзак</DIV>
<DIV id=HeroFrame5969471BackpackArtefactListContainerContentBrowserHorizontal>
<DIV class="clearBoth artefactBg">
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Portal_icones.png); WIDTH: 28px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -130px -108px; HEIGHT: 28px" id=HeroFrame5969471BackpackArtefactListContainerBrowseLeftButton class="Voffset7 Hoffset10R floatLeft browseLeftButton"></DIV>
<DIV id=HeroFrame5969471BackpackArtefactListContainerContent class=floatLeft>
<DIV id=HeroFrame5969471BackpackArtefactList class="clearBoth floatLeft">
<DIV class="Voffset2 Hoffset8R artefactBackpackDroppable artefactDroppable floatLeft droppable" $included="null" ownerType="HeroBackpack" ownerId="5969471" position="1"></DIV>
<DIV class="Voffset2 Hoffset8R artefactBackpackDroppable artefactDroppable floatLeft droppable" $included="null" ownerType="HeroBackpack" ownerId="5969471" position="2"></DIV>
<DIV class="Voffset2 Hoffset8R artefactBackpackDroppable artefactDroppable floatLeft droppable" $included="null" ownerType="HeroBackpack" ownerId="5969471" position="3"></DIV>
<DIV class="Voffset2 Hoffset8R artefactBackpackDroppable artefactDroppable floatLeft droppable" $included="null" ownerType="HeroBackpack" ownerId="5969471" position="4"></DIV>
<DIV class="Voffset2 Hoffset8R artefactBackpackDroppable artefactDroppable floatLeft droppable" $included="null" ownerType="HeroBackpack" ownerId="5969471" position="5"></DIV>
<DIV class="Voffset2 Hoffset8R artefactBackpackDroppable artefactDroppable floatLeft droppable hidden" $included="null" ownerType="HeroBackpack" ownerId="5969471" position="6"></DIV>
<DIV class="Voffset2 Hoffset8R artefactBackpackDroppable artefactDroppable floatLeft droppable hidden" $included="null" ownerType="HeroBackpack" ownerId="5969471" position="7"></DIV>
<DIV class="Voffset2 Hoffset8R artefactBackpackDroppable artefactDroppable floatLeft droppable hidden" $included="null" ownerType="HeroBackpack" ownerId="5969471" position="8"></DIV>
<DIV class="Voffset2 Hoffset8R artefactBackpackDroppable artefactDroppable floatLeft droppable hidden" $included="null" ownerType="HeroBackpack" ownerId="5969471" position="9"></DIV></DIV></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Portal_icones.png); WIDTH: 28px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -158px -24px; HEIGHT: 28px" id=HeroFrame5969471BackpackArtefactListContainerBrowseRightButton class="Voffset7 clickable floatLeft"></DIV></DIV></DIV></DIV>
<DIV id=HeroFrame5969471RegionArtefactListContainer class="clearBoth equipementTownListBg">
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/common.gif); WIDTH: 29px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -68px -54px; HEIGHT: 31px" id=HeroFrame5969471EquipmentTownIcon class="Hoffset7 Voffset10 floatLeft"></DIV>
<DIV class="size14 boldFont Hoffset5 Voffset20 floatLeft">В городе</DIV>
<DIV id=HeroFrame5969471RegionArtefactListContainerContentBrowserHorizontal>
<DIV class="clearBoth artefactBg">
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Portal_icones.png); WIDTH: 28px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -130px -108px; HEIGHT: 28px" id=HeroFrame5969471RegionArtefactListContainerBrowseLeftButton class="Voffset7 Hoffset10R floatLeft browseLeftButton"></DIV>
<DIV id=HeroFrame5969471RegionArtefactListContainerContent class=floatLeft>
<DIV id=HeroFrame5969471RegionArtefactList class=clearBoth>
<DIV class="Hoffset8R artefactRegionDroppable artefactDroppable floatLeft droppable" $included="null" ownerType="Region" ownerId="22" position="1"></DIV>
<DIV class="Hoffset8R artefactRegionDroppable artefactDroppable floatLeft droppable" $included="null" ownerType="Region" ownerId="22" position="2"></DIV>
<DIV class="Hoffset8R artefactRegionDroppable artefactDroppable floatLeft droppable" $included="null" ownerType="Region" ownerId="22" position="3"></DIV>
<DIV class="Hoffset8R artefactRegionDroppable artefactDroppable floatLeft droppable" $included="null" ownerType="Region" ownerId="22" position="4"></DIV>
<DIV class="Hoffset8R artefactRegionDroppable artefactDroppable floatLeft droppable" $included="null" ownerType="Region" ownerId="22" position="5"></DIV>
<DIV class="Hoffset8R artefactRegionDroppable artefactDroppable floatLeft droppable hidden" $included="null" ownerType="Region" ownerId="22" position="6"></DIV>
<DIV class="Hoffset8R artefactRegionDroppable artefactDroppable floatLeft droppable hidden" $included="null" ownerType="Region" ownerId="22" position="7"></DIV>
<DIV class="Hoffset8R artefactRegionDroppable artefactDroppable floatLeft droppable hidden" $included="null" ownerType="Region" ownerId="22" position="8"></DIV>
<DIV class="Hoffset8R artefactRegionDroppable artefactDroppable floatLeft droppable hidden" $included="null" ownerType="Region" ownerId="22" position="9"></DIV></DIV></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/Portal_icones.png); WIDTH: 28px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: -158px -24px; HEIGHT: 28px" id=HeroFrame5969471RegionArtefactListContainerBrowseRightButton class="Voffset7 clickable floatLeft"></DIV></DIV></DIV></DIV>
<DIV class="Voffset5 center error boldFont clearBoth">
<DIV id=HeroFrame5969471ArtefactMoveErrorBinded class=hidden>Вы не можете оставить привязанный артефакт в городе</DIV>
<DIV id=HeroFrame5969471ArtefactMoveErrorHeroSieging class=hidden>Артефакт не может быть доставлен в город или из города, если герой возглавляет осаду</DIV>
<DIV id=HeroFrame5969471ArtefactMoveErrorHeroCaptured class=hidden>Артефакт не может быть доставлен в город или из города, если герой находится в плену</DIV>
<DIV id=HeroFrame5969471ArtefactMoveErrorHeroBusy class=hidden>Артефакт не может быть доставлен в город или из города, если герой занят</DIV></DIV></DIV></DIV>
<DIV class="tabContent hidden" $included="null">
<DIV class=heroFrameSpells>
<DIV class="beige1 size14 boldFont absolutePosition Voffset20">
<DIV class="heroFrameMagicGuild center floatLeft">Гильдия магов</DIV>
<DIV class="heroFrameSpellBook center floatLeft">Книга заклинаний</DIV></DIV>
<DIV class=clearBoth>
<DIV id=HeroFrame5969471MagicGuild class="magicGuildContainer floatLeft">
<DIV id=HeroFrame5969471MagicGuildSpellStackList>
<DIV id=HeroFrame5969471MagicGuildSpellStackListDroppable1 class="spellStackDroppable mageGuildSpellStackDroppable1 relativePosition" $included="null" ownerType="Region" stackPosition="1" ownerId="22"></DIV>
<DIV id=HeroFrame5969471MagicGuildSpellStackListDroppable2 class="spellStackDroppable mageGuildSpellStackDroppable2 relativePosition" $included="null" ownerType="Region" stackPosition="2" ownerId="22"></DIV>
<DIV id=HeroFrame5969471MagicGuildSpellStackListDroppable3 class="spellStackDroppable mageGuildSpellStackDroppable3 relativePosition" $included="null" ownerType="Region" stackPosition="3" ownerId="22"></DIV>
<DIV id=HeroFrame5969471MagicGuildSpellStackListDroppable4 class="spellStackDroppable mageGuildSpellStackDroppable4 relativePosition" $included="null" ownerType="Region" stackPosition="4" ownerId="22"></DIV>
<DIV id=HeroFrame5969471MagicGuildSpellStackListDroppable5 class="spellStackDroppable mageGuildSpellStackDroppable5 relativePosition" $included="null" ownerType="Region" stackPosition="5" ownerId="22"></DIV>
<DIV id=HeroFrame5969471MagicGuildSpellStackListDroppable6 class="spellStackDroppable mageGuildSpellStackDroppable6 relativePosition" $included="null" ownerType="Region" stackPosition="6" ownerId="22"></DIV>
<DIV id=HeroFrame5969471MagicGuildSpellStackListDroppable7 class="spellStackDroppable mageGuildSpellStackDroppable7 relativePosition" $included="null" ownerType="Region" stackPosition="7" ownerId="22"></DIV>
<DIV id=HeroFrame5969471MagicGuildSpellStackListDroppable8 class="spellStackDroppable mageGuildSpellStackDroppable8 relativePosition" $included="null" ownerType="Region" stackPosition="8" ownerId="22"></DIV>
<DIV id=HeroFrame5969471MagicGuildSpellStackListDroppable9 class="spellStackDroppable mageGuildSpellStackDroppable9 relativePosition" $included="null" ownerType="Region" stackPosition="9" ownerId="22"></DIV></DIV></DIV>
<DIV id=HeroFrame5969471SpellBook class="spellBookContainer floatLeft">
<DIV id=HeroFrame5969471SpellBookSpellStackList>
<DIV id=HeroFrame5969471SpellBookSpellStackListDroppable1 class="spellStackDroppable spellBookHeroFrameSpellStackDroppable1 relativePosition" $included="null" ownerType="Hero" stackPosition="1" ownerId="5969471"></DIV>
<DIV id=HeroFrame5969471SpellBookSpellStackListDroppable2 class="spellStackDroppable spellBookHeroFrameSpellStackDroppable2 relativePosition" $included="null" ownerType="Hero" stackPosition="2" ownerId="5969471"></DIV>
<DIV id=HeroFrame5969471SpellBookSpellStackListDroppable3 class="spellStackDroppable spellBookHeroFrameSpellStackDroppable3 relativePosition" $included="null" ownerType="Hero" stackPosition="3" ownerId="5969471"></DIV>
<DIV id=HeroFrame5969471SpellBookSpellStackListDroppable4 class="spellStackDroppable spellBookHeroFrameSpellStackDroppable4 relativePosition" $included="null" ownerType="Hero" stackPosition="4" ownerId="5969471"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/SpellStack_DARK.png); WIDTH: 40px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -120px; HEIGHT: 40px" id=HeroFrame5969471SpellBookSpellStackListDroppable5 class="spellStackDroppable spellBookHeroFrameSpellStackDroppable5 relativePosition" $included="null" ownerType="Hero" stackPosition="5" ownerId="5969471"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/SpellStack_DARK.png); WIDTH: 40px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -120px; HEIGHT: 40px" id=HeroFrame5969471SpellBookSpellStackListDroppable6 class="spellStackDroppable spellBookHeroFrameSpellStackDroppable6 relativePosition" $included="null" ownerType="Hero" stackPosition="6" ownerId="5969471"></DIV>
<DIV style="BACKGROUND-IMAGE: url(http://static5.cdn.ubi.com/u/HOMMK/mightandmagicheroeskingdoms.ubi.com/1.5.0.116-8-MTR/img/css_sprite/SpellStack_DARK.png); WIDTH: 40px; BACKGROUND-REPEAT: repeat; BACKGROUND-POSITION: 0px -120px; HEIGHT: 40px" id=HeroFrame5969471SpellBookSpellStackListDroppable7 class="spellStackDroppable spellBookHeroFrameSpellStackDroppable7 relativePosition" $included="null" ownerType="Hero" stackPosition="7" ownerId="5969471"></DIV></DIV></DIV></DIV></DIV>
<DIV id=HeroFrame5969471SpellBookDescription class="beigeBg heroFrameSpellsText center Vpadding5 Hpadding5 Hpadding5R">Чтобы выучить заклинание, щелкните по его значку. Оно появится в книге заклинаний героя. </DIV></DIV></DIV></DIV></DIV></DIV>
 

madmasles

Модератор
Глобальный модератор
Сообщения
7,790
Репутация
2,322
sevis,
Попробуйте так:
Код:
#include <IE.au3>

Global $oIE = _IECreate('http://Ваша страница')
If @error Then
	MsgBox(16, 'Error', '_IECreate')
	Exit
EndIf

_IETagClassClick($oIE, 'div', 'floatLeft tabTitle clickable', 'Навыки')
If @error Then
	If @error > 1 Then
		MsgBox(16, 'Error', 'Нет такого элемента')
	Else
		MsgBox(16, 'Error', 'Ошибка выполнения функции')
	EndIf
Else
	MsgBox(64, 'Info', 'OK')
EndIf

Func _IETagClassClick($o_Obj, $s_TagName, $s_ClassName, $s_Innertext = '')
	Local $o_Tags
	If Not IsObj($o_Obj) Then Return SetError(1)
	If (Not $s_TagName Or Not $s_ClassName) Then Return SetError(1)
	$o_Tags = _IETagNameGetCollection($o_Obj, $s_TagName)
	If @error Then Return SetError(1)
	For $o_Tag In $o_Tags
		If $o_Tag.ClassName == $s_ClassName Then
			If $s_Innertext Then
				If $o_Tag.innertext == $s_Innertext Then
					_IEAction($o_Tag, 'click')
					If @error Then Return SetError(1)
					_IELoadWait($o_Obj)
					If @error Then Return SetError(1)
					Return SetError(0)
				EndIf
			Else
				_IEAction($o_Tag, 'click')
				If @error Then Return SetError(1)
				_IELoadWait($o_Obj)
				If @error Then Return SetError(1)
				Return SetError(0)
			EndIf
		EndIf
	Next
	Return SetError(2)
EndFunc   ;==>_IETagClassClick
 
Автор
S

sevis

Новичок
Сообщения
15
Репутация
0
Спасибо, огромное. Все работает.
 

zlo-kazan

Скриптер
Сообщения
374
Репутация
100
:laugh:
madmasles
Огромное спасибо за _IETagClassClick столько раз приходилось велосипед изобретать из-за указания только класса... не перечесть!
 
Верх