Mojo123 Posted September 25, 2014 Share Posted September 25, 2014 (edited) Good day, I have an IE page that contains a frame with an Link that I want to click. To land on this page with the frames I wrote a Login-Function which works. I show you my Code: expandcollapse popupFunc login () _IENavigate ($oIE, "http://bookingboard/login.aspx") _IELoadWait($oIE) Local $username = _IEGetObjByName ($oIE,"uiFldUsername") Local $password = _IEGetObjByName ($oIE,"uiFldPassword") Local $login_button = _IEGetObjByName ($oIE,"uiBtnLogin") _IEFormElementSetValue ($username, "username") _IEFormElementSetValue ($password, "password") _IEAction ($login_button, "click") _IELoadWait($oIE) Local $loginPageTitle = _IEPropertyGet ($oIE,"title") Local $loginResult = StringInStr ( $loginPageTitle , 'BookingBoard WebServices') If $loginResult > 0 Then $statusLogin = 1 $result = $result & 'Login: OK, ' Else $statusLogin = 0 $result = $result & 'Login: ERROR, ' EndIf EndFunc Func showJournal () Local $oFrames = _IEFrameGetCollection($oIE) Local $iNumFrames = @extended Local $sTxt = $iNumFrames & " frames found" & @CRLF & @CRLF Local $oFrame = 0 For $i = 0 To ($iNumFrames - 1) $oFrame = _IEFrameGetCollection($oIE, $i) $sTxt &= _IEPropertyGet($oFrame, "innertext") & @CRLF Next $oFrame = _IEFrameGetCollection($oIE, 2) Local $oLinks = _IELinkGetCollection($oFrame, -1) Local $iNumLinks = @extended Local $sTxt = $iNumLinks & " links found" & @CRLF & @CRLF For $oLink In $oLinks $sTxt &= $oLink.href & @CRLF Next MsgBox($MB_SYSTEMMODAL, "Link Info", $sTxt) EndFunc _IEQuit($oIE) The MsgBox show the Links and the Link I need ends up with /Report/Report.aspx Now I seach a way to click on this Link. The problem is, that the most part of the URL is changing because you get a new session ID for each Login. The constant of each Login is /Report/Rport.aspx Do you have a solution for my problem? Edit: The WebService is an internal source Thanks a lot Best regards Mojo Edited September 25, 2014 by Mojo123 Link to comment Share on other sites More sharing options...
Danp2 Posted September 25, 2014 Share Posted September 25, 2014 It might help if you show us the underlying html for the link. Have you considered using StringInStr() to identify the link? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Mojo123 Posted September 25, 2014 Author Share Posted September 25, 2014 (edited) It might help if you show us the underlying html for the link. Have you considered using StringInStr() to identify the link? Sorry, I am a newbie. Can I use StringInStr() to search for it in a frame? The underlying html for the link: <a onclick=";return RadPanelbar1.onClick(8);" href="Module/Report/Report.aspx" class="NaviItem" target="FmeContent"> Monatsjournale</a> Edited September 25, 2014 by Mojo123 Link to comment Share on other sites More sharing options...
Danp2 Posted September 25, 2014 Share Posted September 25, 2014 And you've tried using _IELinkClickByText? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Mojo123 Posted September 25, 2014 Author Share Posted September 25, 2014 And you've tried using _IELinkClickByText? Yes, I tried using it but without _IEFrameGetCollection. I working on it since last week. Last week I tried using _IELinkClickByText,_IENavigate, _IELinkGetcollection to solve it but it didn't work. Maybe it is a combination of _IEFrameGetCollection and _IELinkClickByText? Link to comment Share on other sites More sharing options...
Danp2 Posted September 25, 2014 Share Posted September 25, 2014 Based on your earlier code, I would suggest trying: $oFrame = _IEFrameGetCollection($oIE, 2) _IELinkClickByText($oFrame, "Monatsjournale") Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Mojo123 Posted September 25, 2014 Author Share Posted September 25, 2014 My new function: Func showJournal () $oFrame = _IEFrameGetCollection($oIE, 2) _IELinkClickByText($oFrame, "Monatsjournale") EndFunc Warning: --> IE.au3 T3.0-1 Warning from function _IELinkClickByText, $_IESTATUS_NoMatch Link to comment Share on other sites More sharing options...
MikahS Posted September 25, 2014 Share Posted September 25, 2014 It could be because it is not in that frame by chance? Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Mojo123 Posted September 25, 2014 Author Share Posted September 25, 2014 It could be because it is not in that frame by chance? The function I used before (see below) show me all Links in this Frame. Am I right? Because after starting the Script I get the MsgBox with the required Link ...../Report/Report.aspx Func showJournal () Local $oFrames = _IEFrameGetCollection($oIE) Local $iNumFrames = @extended Local $sTxt = $iNumFrames & " frames found" & @CRLF & @CRLF Local $oFrame = 0 For $i = 0 To ($iNumFrames - 1) $oFrame = _IEFrameGetCollection($oIE, $i) $sTxt &= _IEPropertyGet($oFrame, "innertext") & @CRLF Next $oFrame = _IEFrameGetCollection($oIE, 2) Local $oLinks = _IELinkGetCollection($oFrame, -1) Local $iNumLinks = @extended Local $sTxt = $iNumLinks & " links found" & @CRLF & @CRLF For $oLink In $oLinks $sTxt &= $oLink.href & @CRLF Next MsgBox($MB_SYSTEMMODAL, "Link Info", $sTxt) Link to comment Share on other sites More sharing options...
Danp2 Posted September 25, 2014 Share Posted September 25, 2014 (edited) Do you still get the desired information in the MsgBox if you remove this section of code: For $i = 0 To ($iNumFrames - 1) $oFrame = _IEFrameGetCollection($oIE, $i) $sTxt &= _IEPropertyGet($oFrame, "innertext") & @CRLF Next Edited September 25, 2014 by Danp2 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Mojo123 Posted September 25, 2014 Author Share Posted September 25, 2014 Do you still get the desired information in the MsgBox if you remove this section of code: For $i = 0 To ($iNumFrames - 1) $oFrame = _IEFrameGetCollection($oIE, $i) $sTxt &= _IEPropertyGet($oFrame, "innertext") & @CRLF Next Same Informations about the Links of the Frame, yes. Link to comment Share on other sites More sharing options...
MikahS Posted September 25, 2014 Share Posted September 25, 2014 seeing as their is an onclick event. You could always use _IEAction($obj, "click"). Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
JohnOne Posted September 25, 2014 Share Posted September 25, 2014 It might help if you show us the underlying html for the link. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Mojo123 Posted September 26, 2014 Author Share Posted September 26, 2014 (edited) expandcollapse popup<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Navigator</title> <link href="../config/web/css/basic.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="../config/web/js/basic.js" ></script> </head> <body class="navigator"> <form method="post" action="Navigator.aspx" id="Form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTIxODkwMzQwOGRkYcKcur8cUNYdvd2U5lxNP2WWrsQ=" /> </div> <script language='javascript' type='text/javascript'>try {if (parent.parent.parent != null) { try { parent.parent.parent.refreshAutomaticLogout(); } catch (e){ try { opener.parent.parent.parent.refreshAutomaticLogout(); } catch (e) {} } }} catch (e) {}</script> <script src="http://bookingboard.rc.ag//(S(v0zejt55prffh355r43fdja4))/config/web/js/basic.js" type="text/javascript"></script> <script language='javascript' type='text/javascript'>changeNavigation(false);</script> <script language="JavaScript">function RadPanelbarItem(id,label,href,img,over,img2,over2,imgPos,type,level){this.id=id;this.label=label;this.href=href; this.img=null; this.over=null;this.img2=null;this.over2=null;if(img ){ this.img=new Image(); this.img.src=img; }if(over ){ this.over=new Image(); this.over.src=over; }if(img2 ){ this.img2=new Image(); this.img2.src=img2; }if(over2){ this.over2=new Image(); this.over2.src=over2; }this.imgPos=imgPos;this.type=type;this.level=level;}function RadPanelbarClass(id,RadPo9,RadPB8,RadPo6,RadPT2,RadPB1,RadPS7,RadPo0,RadPZ0,RadPZ5,RadPl5,RadPl7,RadP_9,RadPO9,RadPT7,RadPB5,RadP_3,RadPB2,RadPl9,RadPo3,RadPZ6,RadPZ9,RadPS4,RadPG8){ this.id=id;this.RadPo9=RadPo9;this.RadPB8=RadPB8;this.RadPo6=RadPo6;this.RadPT2=RadPT2;this.RadPB1=RadPB1;this.RadPS7=RadPS7;this.RadPo0=RadPo0;this.RadPZ0=RadPZ0;this.RadPZ5=RadPZ5;this.RadPl5=RadPl5;this.RadPl7=RadPl7;this.RadP_9=RadP_9;this.RadPO9=RadPO9;this.RadPT7=RadPT7;this.RadPB5=RadPB5;this.RadP_3=RadP_3;this.RadPB2=RadPB2;this.RadPl9=RadPl9;this.RadPo3=RadPo3;this.RadPZ6=RadPZ6;this.RadPG9=-1;this.RadPZ9=RadPZ9;this.RadPS4=RadPS4;this.RadPG8=RadPG8;this.onClick_Clientside=null;}RadPanelbarClass.prototype.RadPG7=function(RadPS2,collapseAll){if(RadPS2 < 0 ||(!RadPS2 && RadPS2 !=0))return; if(collapseAll)for(var RadPS9=0; RadPS9< this.RadPo9.length; RadPS9++)this.RadPT9(RadPS9);else if(this.RadPl7){var RadP_8=this.RadPB6("lastSelectedMenu"+this.id); this.RadPB7(RadP_8,RadPS2);this.RadPq8("lastSelectedMenu"+this.id,RadPS2);}this.RadPo5(RadPS2);while(RadPS2 > -1){this.RadPT0(RadPS2);RadPS2=this.RadPO5(RadPS2);}};RadPanelbarClass.prototype.RadPB7=function(RadP_8,RadPS2){if(this.RadPl7){var RadP_1=this.RadPZ4(RadPS2);for(var RadPS9=0; RadPS9< RadP_1.length; RadPS9++)this.RadPT9(RadP_1[RadPS9]);}if( !this.RadPq7(RadP_8,RadPS2)){ if(this.RadPl7){var RadP_1=this.RadPZ4(RadPS2);for(var RadPS9=0; RadPS9< RadP_1.length; RadPS9++){if( this.RadPq7(RadP_1[RadPS9],RadP_8)){ RadP_8=RadP_1[RadPS9]; break;}} } this.RadPT9(RadP_8);}};RadPanelbarClass.prototype.RadPT0=function(index,isOver,applyEffect){var RadPT8=this.id+"Wrapper"+index;var RadPT3=this.RadPZ7(RadPT8);if(RadPT3){if(applyEffect && this.RadPO9 != "" && RadPT3.style.filter != null && RadPT3.filters){RadPT3.style.filter=this.RadPO9;if(RadPT3.filters[0]){if(RadPT3.filters[0].orientation != null)RadPT3.filters[0].orientation="vertical";RadPT3.filters[0].duration=0.9;RadPT3.filters[0].apply();RadPT3.style.display="block";RadPT3.filters[0].play();}}RadPT3.style.display="";this.RadPS8(index,isOver,true);this.RadPq8(RadPT8,"block");}};RadPanelbarClass.prototype.RadPT9=function(index,isOver){var RadPT3=this.id+"Wrapper"+index;var RadPB3=this.RadPZ7(RadPT3);if(RadPB3 != null){RadPB3.style.display="none";this.RadPS8(index,isOver,true);this.RadPq8(RadPT3,"none");}};RadPanelbarClass.prototype.RadPq7=function(parentCounter,childCounter){var RadPO8=this.RadPO6(parentCounter);var RadP_0=this.RadPO6(childCounter);if(!RadPO8 || !RadP_0 || parentCounter >= childCounter || RadPO8.level >= RadP_0.level || RadPO8 == RadP_0)return false;var RadPO2=childCounter;while(RadPO2 > -1){RadPO2=this.RadPO5(RadPO2);var RadPl8=this.RadPO6(RadPO2);if(RadPl8 && RadPl8 == RadPO8)return true;}return false;};RadPanelbarClass.prototype.RadPO5=function(index){var RadP_0=this.RadPO6(index);if(!RadP_0)return -1;while( index >= 0){var RadPl8=this.RadPO6(index);if(RadPl8.level < RadP_0.level)return index;index--;}return -1;};RadPanelbarClass.prototype.RadPZ4=function(index){if(index < 0)return null;var RadPo9=new Array();var RadPZ2=this.RadPO5(index); var RadPS9=0;if(RadPZ2 < 0){ var RadPS2=-1; while((tempItem=this.RadPO6(++RadPS2))!= null){if(index != RadPS2 && tempItem.level == 0)RadPo9[RadPS9++]=RadPS2; }} else {var RadPT4=this.RadPl0(RadPZ2);for(var RadPS2=0; RadPS2 < RadPT4.length; RadPS2++)if( RadPT4[RadPS2] != index )RadPo9[RadPS9++]=RadPT4[RadPS2];}return RadPo9;};RadPanelbarClass.prototype.RadPl0=function(index){var RadPo9=new Array();var RadPO8=null;if( RadPO8=this.RadPO6(index)){var RadPS9=0;while(true){ var RadPq3=this.RadPO6(++index); if(!RadPq3 || RadPq3.level == RadPO8.level)break; else if((RadPq3.level-1)== RadPO8.level)RadPo9[RadPS9++]=index; }} return RadPo9;};RadPanelbarClass.prototype.RadPO6=function(index){ if(this.RadPo9)return this.RadPo9[index];};RadPanelbarClass.prototype.RadPZ7=function(id){var RadPq1=null;if(document.getElementById)RadPq1=document.getElementById(id); else if(document.all)RadPq1=document.all[id];return RadPq1;};RadPanelbarClass.prototype.onOut=function(RadPq1,RadPS2){var type=this.RadPO6(RadPS2).type;if(type != "Header"){RadPq1.style.backgroundColor="";if(parseInt(RadPq1.style.borderWidth)> 0 ){RadPq1.style.margin="1px 1px 1px 1px";RadPq1.style.border ="0px solid red";} }else {if(this.RadPZ5){RadPq1.bgColor=this.RadPZ0;if(this.RadPo3)RadPq1.style.backgroundColor=this.RadPZ0;}if(this.RadPo0)RadPq1.style.color=this.RadPS7;if(this.RadP_9){var RadP_5=this.RadPZ7(this.id+"Wrapper"+RadPS2).style;if(RadP_5){var RadPo8="1px solid "+this.RadPT2;RadP_5.borderLeft=RadPo8;RadP_5.borderBottom=RadPo8;RadP_5.borderRight=RadPo8;}} } this.RadPS8(RadPS2,false);};RadPanelbarClass.prototype.onOver=function(RadPq1,RadPS2){var type=this.RadPO6(RadPS2).type;if(type != "Header"){RadPq1.style.backgroundColor=this.RadPo6;if( this.RadPB8 ){RadPq1.style.border="1px solid "+this.RadPB8;RadPq1.style.margin="0px 0px 0px 0px";}} else {if(this.RadPZ5){ if(this.RadPo3)RadPq1.style.backgroundColor=this.RadPZ5;RadPq1.bgColor=this.RadPZ5;}if(this.RadPo0)RadPq1.style.color=this.RadPo0;if( this.RadP_9 ){var RadP_5=this.RadPZ7( this.id+"Wrapper"+RadPS2).style;if(RadP_5){var RadPo8="1px solid "+this.RadPB1;RadP_5.borderLeft=RadPo8;RadP_5.borderBottom=RadPo8;RadP_5.borderRight=RadPo8;}}}this.RadPS8(RadPS2,true);};RadPanelbarClass.prototype.onClick=function(RadPS2){if(this.onClick_Clientside)this.onClick_Clientside(this.RadPO6(RadPS2));var RadPG5=this.id+"Wrapper"+ RadPS2;var RadPT3=this.RadPZ7(RadPG5);var RadPZ3 =""; if(RadPT3){RadPZ3=RadPT3.style.display;if(this.RadPl7){var RadP_8=this.RadPB6("lastSelectedMenu"+this.id); if (RadP_8 != RadPS2) this.RadPB7(RadP_8,RadPS2);this.RadPq8("lastSelectedMenu"+this.id,RadPS2);}var RadPB0=this.RadPO6(RadPS2); if(RadPB0 && RadPB0.type=="Header" && RadPB0.href && RadPB0.href != "#"){this.RadPq8(RadPG5,"block");return true;} if(RadPZ3 != "none")this.RadPT9(RadPS2,true);else this.RadPT0(RadPS2,true,true);} this.RadPo5(RadPS2);return true;};RadPanelbarClass.prototype.RadPq8=function(sName,sValue){document.cookie=sName+"="+escape(sValue);};RadPanelbarClass.prototype.RadPB6=function(sName){var RadPB4=document.cookie.split("; ");for(var RadPS9=0; RadPS9<RadPB4.length; RadPS9++){var RadPS0=RadPB4[RadPS9].split("=");if(sName == RadPS0[0])return unescape(RadPS0[1]);}return null;};RadPanelbarClass.prototype.reset=function(){if(this.RadPS4)this.RadPZ8();if(this.RadP_3 || this.RadPT7 || this.RadPB5){for(var RadPq0=0; RadPq0 < this.RadPo9.length; RadPq0 ++){if((this.RadP_3 &&(this.RadP_3 == this.RadPO6(RadPq0).id ))||(this.RadPT7 &&(this.RadPT7 == this.RadPO6(RadPq0).href))||(this.RadPB5 &&(this.RadPB5 == this.RadPO6(RadPq0).label))){this.RadPZ8();this.RadPG7(RadPq0,true);return;}}}var RadPq0=document.location.href;if(this.RadPZ9){if(RadPq0.indexOf("https:")==0)RadPq0=RadPq0.substr(8);else if(RadPq0.indexOf("http:")==0)RadPq0=RadPq0.substr(7);if(RadPq0.indexOf(this.RadPZ9)>= 0)RadPq0=RadPq0.substr(this.RadPZ9.length);}for(var RadPS9= 0; RadPS9 < this.RadPo9.length; RadPS9++){var RadPo2=this.RadPB6(this.id+"Wrapper"+RadPS9);if(RadPo2!= null){if(RadPo2 != "block")this.RadPT9(RadPS9);else this.RadPT0(RadPS9);}if(this.RadPZ9 && !this.RadPT7 && this.RadPO6(RadPS9).href == RadPq0)this.RadPq8("selectedURL"+ this.id,RadPS9); }if(!this.RadPT7)this.RadPG7(this.RadPB6("selectedURL"+ this.id));};RadPanelbarClass.prototype.RadPZ8=function(){ for(RadPS9=0; RadPS9 < this.RadPo9.length; RadPS9++){var RadPo2=this.RadPB6(this.id+"Wrapper"+RadPS9);if(RadPo2!= null){var RadP_7=this.RadPZ7(this.id+"Wrapper"+RadPS9);if(RadP_7)this.RadPq8(this.id+"Wrapper"+RadPS9,RadP_7.style.display);}}var RadPl1=this.RadPB6("selectedURL"+ this.id); if(RadPl1 != null && RadPl1 != "")this.RadPq8("selectedURL"+ this.id,""); };RadPanelbarClass.prototype.RadPo5=function(RadPS2){var RadPB0=this.RadPO6(RadPS2); if(!RadPB0)return;var RadPT3=this.RadPZ7( this.id+"Wrapper"+RadPS2);if(RadPT3 && !RadPB0.href)return; var RadPG3=this.RadPB6("selectedURL"+ this.id);if(RadPG3 > 0)this.RadPo7(RadPG3,false);this.RadPq8("selectedURL"+ this.id,RadPS2);this.RadPG9=RadPS2;this.RadPo7(RadPS2,true);};RadPanelbarClass.prototype.RadPo7=function(RadPS2,isSelected){ var RadPB0=this.RadPO6(RadPS2); if(RadPB0.type=="Header")return; var RadPl6=this.RadPZ7(this.id+"Row"+RadPS2);var RadP_6=RadPl6.getElementsByTagName("A");var RadP_7=null;if(RadP_6.length > 0){if(!RadPB0.img)RadP_7=RadP_6.item(0);else{ if(RadPB0.imgPos == "Left" || RadPB0.imgPos == "Top")RadP_7=RadP_6.item(RadP_6.length-1);else RadP_7=RadP_6.item(0);}}else {var RadPq6=RadPl6.getElementsByTagName("SPAN");if(RadPq6.length > 0 )RadP_7=RadPq6.item(0);}if(isSelected){if(this.RadPl9)RadP_7.className=this.RadPl9;} else {if(this.RadPl9)RadP_7.className=this.RadPB2;if(RadPB0.img)this.RadPG0(RadPB0,RadPl6,RadPB0.img);}};RadPanelbarClass.prototype.RadPS8=function(RadPS2,isOver,isClicked ){var RadP_7=this.RadPZ7( this.id+"Row"+RadPS2);if(!RadP_7)return;var RadPB0=this.RadPO6(RadPS2);var RadPT3=this.RadPZ7(this.id+"Wrapper"+ RadPS2);if(RadPB0.type == "Header" && isClicked){var RadPT3=this.RadPZ7(this.id+"Wrapper"+ RadPS2);var RadP_7=this.RadPZ7( this.id+"Row"+RadPS2);if(RadPT3.style.display!="none"){ if(this.RadPZ6)RadP_7.className=this.RadPZ6;}else if(this.RadPZ6)RadP_7.className=this.RadPo3;}var RadPS1=RadP_7.getElementsByTagName("IMG"); if(RadPS1.length > 0 || RadPB0.imgPos=="Background"){var RadPo4=false;if(RadPT3)RadPo4=(RadPT3.style.display !="none")? true : false;else RadPo4=this.RadPG9 == RadPS2 ? true :false;var img=isOver ? this.RadPo9[RadPS2].over : this.RadPo9[RadPS2].img;var img2=isOver ? this.RadPo9[RadPS2].over2 : this.RadPo9[RadPS2].img2;var RadPq5=RadPo4 ? img2 : img;if( isOver && !RadPq5){ if(RadPo4 && this.RadPo9[RadPS2].img2)RadPq5=this.RadPo9[RadPS2].img2; else if(!RadPo4 && this.RadPo9[RadPS2].img)RadPq5=this.RadPo9[RadPS2].img; }if(!RadPq5)RadPq5=img;if(RadPq5)this.RadPG0(RadPB0,RadP_7,RadPq5);}};RadPanelbarClass.prototype.RadPG0=function(RadPB0,RadP_7,image){if(!RadP_7)return;var RadPS1=RadP_7.getElementsByTagName("IMG");if(RadPS1.length > 0 || RadPB0.imgPos=="Background"){if(RadPB0.imgPos=="Background"){var RadPG1=RadP_7.getElementsByTagName("TD");if(RadPG1.length>0){var RadPS3=RadPG1.item(RadPG1.length-1);RadPS3.style.backgroundImage="url("+image.src+")";}}else if(RadPS1.length > 0)RadPS1.item(0).src=image.src;}};RadPanelbarClass.prototype.setSelectedId=function(id){ this.RadP_3=id; this.RadPT7=this.RadPB5=""; this.reset();};RadPanelbarClass.prototype.setSelectedUrl=function(url){ this.RadPT7=url; this.RadP_3=this.RadPB5=""; this.reset();};RadPanelbarClass.prototype.setSelectedLabel=function(label){ this.RadPB5=label;this.RadP_3=this.RadPT7=""; this.reset();};</script> <div class="navigator_content"> <style media="all" type="text/css">.WrapperClassRadPanelbar1 { width: 100%; border-left: 0px solid white; border-right: 0px solid white; border-bottom: 0px solid white; } .HeaderRadPanelbar1{ cursor: pointer; cursor: hand; color: #000000; width:100%; font-family: Verdana; font-size: 9pt; font-weight: normal; font-style: normal; text-decoration: none; } .ItemRadPanelbar1, a.ItemRadPanelbar1:link, a.ItemRadPanelbar1:visited { cursor: pointer; cursor: hand; text-decoration: none; color: #000000; width: 100%; font-family: Verdana; font-size: 8pt; font-weight: normal; font-style: normal; text-decoration: none; } a.ItemRadPanelbar1:hover { color: ; } </style><table style='' id='RadPanelbar1Container' width='190px' cellspacing='0' cellpadding='0'><tr><td><table height='23' width='100%' id='RadPanelbar1Row0' class='NaviHeader' onmouseover=";RadPanelbar1.onOver(this,0);" onmouseout=";RadPanelbar1.onOut(this,0);" onclick=";return RadPanelbar1.onClick(0);" cellpadding='0' cellspacing='0'><tr><td style='background-repeat:no-repeat; background-image:url(../config/web/img/menu/collapsed.gif)'><div style='display:inline;padding: 2px 1px 1px 2px;'> Anträge</div></td></tr></table><table class='WrapperClassRadPanelbar1' id='RadPanelbar1Wrapper0' bgcolor='' width='100%' cellspacing='0' cellpadding='0' style='display:none;'><tr><td width='190px'><table width='100%' id='RadPanelbar1Row1' onmouseover=";RadPanelbar1.onOver(this,1);" onmouseout=";RadPanelbar1.onOut(this,1);" cellpadding='0' cellspacing='0' style='margin: 1px 1px 1px 1px;'><tr><td ><a onclick=";return RadPanelbar1.onClick(1);" href="Module/Application/Application.aspx?apre=1&apac=0&aptp=2" class='NaviItem' target="FmeContent"> Fehlzeitantrag</a></td></tr></table></td></tr><tr><td width='190px'><table width='100%' id='RadPanelbar1Row2' onmouseover=";RadPanelbar1.onOver(this,2);" onmouseout=";RadPanelbar1.onOut(this,2);" cellpadding='0' cellspacing='0' style='margin: 1px 1px 1px 1px;'><tr><td ><a onclick=";return RadPanelbar1.onClick(2);" href="Module/Application/Application.aspx?apre=1&apac=0&aptp=1" class='NaviItem' target="FmeContent"> Buchungskorrekturantrag</a></td></tr></table></td></tr><tr><td width='190px'><table width='100%' id='RadPanelbar1Row3' onmouseover=";RadPanelbar1.onOver(this,3);" onmouseout=";RadPanelbar1.onOut(this,3);" cellpadding='0' cellspacing='0' style='margin: 1px 1px 1px 1px;'><tr><td ><a onclick=";return RadPanelbar1.onClick(3);" href="Module/Application/ApplicationListPerson.aspx" class='NaviItem' target="FmeContent"> Liste Anträge (Person)</a></td></tr></table></td></tr><tr><td width='190px'><table width='100%' id='RadPanelbar1Row4' onmouseover=";RadPanelbar1.onOver(this,4);" onmouseout=";RadPanelbar1.onOut(this,4);" cellpadding='0' cellspacing='0' style='margin: 1px 1px 1px 1px;'><tr><td ><a onclick=";return RadPanelbar1.onClick(4);" href="Module/Application/ApplicationListApproval.aspx" class='NaviItem' target="FmeContent"> genehmigte Anträge</a></td></tr></table></td></tr></table></td></tr><tr><td height='10px'></td></tr><tr><td><table height='23' width='100%' id='RadPanelbar1Row5' class='NaviHeader' onmouseover=";RadPanelbar1.onOver(this,5);" onmouseout=";RadPanelbar1.onOut(this,5);" onclick=";return RadPanelbar1.onClick(5);" cellpadding='0' cellspacing='0'><tr><td style='background-repeat:no-repeat; background-image:url(../config/web/img/menu/collapsed.gif)'><div style='display:inline;padding: 2px 1px 1px 2px;'> Kalender</div></td></tr></table><table class='WrapperClassRadPanelbar1' id='RadPanelbar1Wrapper5' bgcolor='' width='100%' cellspacing='0' cellpadding='0' style='display:none;'><tr><td width='190px'><table width='100%' id='RadPanelbar1Row6' onmouseover=";RadPanelbar1.onOver(this,6);" onmouseout=";RadPanelbar1.onOut(this,6);" cellpadding='0' cellspacing='0' style='margin: 1px 1px 1px 1px;'><tr><td ><a onclick=";return RadPanelbar1.onClick(6);" href="Module/Calendar/CalPersYear.aspx" class='NaviItem' target="FmeContent"> Pers.-Kalender</a></td></tr></table></td></tr></table></td></tr><tr><td height='10px'></td></tr><tr><td><table height='23' width='100%' id='RadPanelbar1Row7' class='NaviHeader' onmouseover=";RadPanelbar1.onOver(this,7);" onmouseout=";RadPanelbar1.onOut(this,7);" onclick=";return RadPanelbar1.onClick(7);" cellpadding='0' cellspacing='0'><tr><td style='background-repeat:no-repeat; background-image:url(../config/web/img/menu/collapsed.gif)'><div style='display:inline;padding: 2px 1px 1px 2px;'> Journale</div></td></tr></table><table class='WrapperClassRadPanelbar1' id='RadPanelbar1Wrapper7' bgcolor='' width='100%' cellspacing='0' cellpadding='0' style='display:none;'><tr><td width='190px'><table width='100%' id='RadPanelbar1Row8' onmouseover=";RadPanelbar1.onOver(this,8);" onmouseout=";RadPanelbar1.onOut(this,8);" cellpadding='0' cellspacing='0' style='margin: 1px 1px 1px 1px;'> <tr><td ><a onclick=";return RadPanelbar1.onClick(8);" href="Module/Report/Report.aspx" class='NaviItem' target="FmeContent"> Monatsjournale</a></td></tr></table></td></tr> <tr><td width='190px'><table width='100%' id='RadPanelbar1Row9' onmouseover=";RadPanelbar1.onOver(this,9);" onmouseout=";RadPanelbar1.onOut(this,9);" cellpadding='0' cellspacing='0' style='margin: 1px 1px 1px 1px;'><tr><td ><a onclick=";return RadPanelbar1.onClick(9);" href="Module/Report/List.aspx" class='NaviItem' target="FmeContent"> Übersichtslisten</a></td></tr></table></td></tr></table></td></tr><tr><td height='10px'></td></tr><tr><td><table height='23' width='100%' id='RadPanelbar1Row10' class='NaviHeader' onmouseover=";RadPanelbar1.onOver(this,10);" onmouseout=";RadPanelbar1.onOut(this,10);" onclick=";return RadPanelbar1.onClick(10);" cellpadding='0' cellspacing='0'><tr><td style='background-repeat:no-repeat; background-image:url(../config/web/img/menu/collapsed.gif)'><div style='display:inline;padding: 2px 1px 1px 2px;'> Einstellungen</div></td></tr></table><table class='WrapperClassRadPanelbar1' id='RadPanelbar1Wrapper10' bgcolor='' width='100%' cellspacing='0' cellpadding='0' style='display:none;'><tr><td width='190px'><table width='100%' id='RadPanelbar1Row11' onmouseover=";RadPanelbar1.onOver(this,11);" onmouseout=";RadPanelbar1.onOut(this,11);" cellpadding='0' cellspacing='0' style='margin: 1px 1px 1px 1px;'><tr><td ><span onclick="showWindow('Module/Setting/User/SettingUsername.aspx', 450, 250);return RadPanelbar1.onClick(11);" class='NaviItem'> Benutzername</span></td></tr></table></td></tr><tr><td width='190px'><table width='100%' id='RadPanelbar1Row12' onmouseover=";RadPanelbar1.onOver(this,12);" onmouseout=";RadPanelbar1.onOut(this,12);" cellpadding='0' cellspacing='0' style='margin: 1px 1px 1px 1px;'><tr><td ><span onclick="showWindow('Module/Setting/User/SettingPassword.aspx', 450, 250);return RadPanelbar1.onClick(12);" class='NaviItem'> Kennwort</span></td></tr></table></td></tr><tr><td width='190px'><table width='100%' id='RadPanelbar1Row13' onmouseover=";RadPanelbar1.onOver(this,13);" onmouseout=";RadPanelbar1.onOut(this,13);" cellpadding='0' cellspacing='0' style='margin: 1px 1px 1px 1px;'><tr><td ><span onclick="showWindow('Module/Setting/Representation/SettingRepresentationS.aspx', 550, 360);return RadPanelbar1.onClick(13);" class='NaviItem'> Stellvertreterregelung</span></td></tr></table></td></tr><tr><td width='190px'><table width='100%' id='RadPanelbar1Row14' onmouseover=";RadPanelbar1.onOver(this,14);" onmouseout=";RadPanelbar1.onOut(this,14);" cellpadding='0' cellspacing='0' style='margin: 1px 1px 1px 1px;'><tr><td ><span onclick="showWindow('Module/Setting/Calendar/CalendarTime.aspx', 450, 250);return RadPanelbar1.onClick(14);" class='NaviItem'> Outlook (Kalender)</span></td></tr></table></td></tr></table></td></tr></table><script language='JavaScript'>RadPanelbar1Array = new Array(14);RadPanelbar1Array[0]=new RadPanelbarItem(""," Anträge",'','../config/web/img/menu/collapsed.gif','../config/web/img/menu/collapsedOver.gif','../config/web/img/menu/expanded.gif','../config/web/img/menu/expandedOver.gif','Background','Header', 0);RadPanelbar1Array[1]=new RadPanelbarItem(""," Fehlzeitantrag",'Module/Application/Application.aspx?apre=1&apac=0&aptp=2','','','','','','Item', 1);RadPanelbar1Array[2]=new RadPanelbarItem(""," Buchungskorrekturantrag",'Module/Application/Application.aspx?apre=1&apac=0&aptp=1','','','','','','Item', 1);RadPanelbar1Array[3]=new RadPanelbarItem(""," Liste Anträge (Person)",'Module/Application/ApplicationListPerson.aspx','','','','','','Item', 1);RadPanelbar1Array[4]=new RadPanelbarItem(""," genehmigte Anträge",'Module/Application/ApplicationListApproval.aspx','','','','','','Item', 1);RadPanelbar1Array[5]=new RadPanelbarItem(""," Kalender",'','../config/web/img/menu/collapsed.gif','../config/web/img/menu/collapsedOver.gif','../config/web/img/menu/expanded.gif','../config/web/img/menu/expandedOver.gif','Background','Header', 0);RadPanelbar1Array[6]=new RadPanelbarItem(""," Pers.-Kalender",'Module/Calendar/CalPersYear.aspx','','','','','','Item', 1);RadPanelbar1Array[7]=new RadPanelbarItem(""," Journale",'','../config/web/img/menu/collapsed.gif','../config/web/img/menu/collapsedOver.gif','../config/web/img/menu/expanded.gif','../config/web/img/menu/expandedOver.gif','Background','Header', 0);RadPanelbar1Array[8]=new RadPanelbarItem(""," Monatsjournale",'Module/Report/Report.aspx','','','','','','Item', 1);RadPanelbar1Array[9]=new RadPanelbarItem(""," Übersichtslisten",'Module/Report/List.aspx','','','','','','Item', 1);RadPanelbar1Array[10]=new RadPanelbarItem(""," Einstellungen",'','../config/web/img/menu/collapsed.gif','../config/web/img/menu/collapsedOver.gif','../config/web/img/menu/expanded.gif','../config/web/img/menu/expandedOver.gif','Background','Header', 0);RadPanelbar1Array[11]=new RadPanelbarItem(""," Benutzername",'','','','','','','Item', 1);RadPanelbar1Array[12]=new RadPanelbarItem(""," Kennwort",'','','','','','','Item', 1);RadPanelbar1Array[13]=new RadPanelbarItem(""," Stellvertreterregelung",'','','','','','','Item', 1);RadPanelbar1Array[14]=new RadPanelbarItem(""," Outlook (Kalender)",'','','','','','','Item', 1);var RadPanelbar1 = new RadPanelbarClass("RadPanelbar1",RadPanelbar1Array,'#ffffff','','','','#000000','','','','',true,0,'','',"","",'NaviItem','','NaviHeader','','',false,false);RadPanelbar1.reset();</script> </div> </form> </body> </html> Edited September 26, 2014 by Mojo123 Link to comment Share on other sites More sharing options...
Mojo123 Posted September 26, 2014 Author Share Posted September 26, 2014 (edited) DOM-Code Dokument HTML HEAD FRAMESET id=uiFramesetMaster FRAME FRAMESET id=uiFramesetMain name=uiFramesetMain FRAME HTML HEAD BODY class=navigator FORM action=Navigator.aspx DIV SCRIPT SCRIPT SCRIPT SCRIPT DIV class=navigator_content STYLE TABLE id=RadPaneBar1Container TBODY TR TR TR TR TR TD TABLE id=RadPanelbar1Row7 class=NaviHeader TABLE id=RadPanelbar1Wrapper7 class=WrapperClassRadPanelbar1 TBODY TR TD TABLE id=RadPanelbar1Row8 TBODY TR TD A href=http://bookingboard-rc-ag/S(m25bve24k31/Report/Report.aspx Edited September 26, 2014 by Mojo123 Link to comment Share on other sites More sharing options...
JohnOne Posted September 26, 2014 Share Posted September 26, 2014 Cannot see any frames in that html. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Mojo123 Posted September 26, 2014 Author Share Posted September 26, 2014 Cannot see any frames in that html. But the simple Functions like _IELinkClickByText,_IELinkGetCollection, _IENavigate($oIE,"javascript:return RadPanelbar1.onClick(8);") doesn't work? I work on it since last week without positive results. I need help Link to comment Share on other sites More sharing options...
Danp2 Posted September 26, 2014 Share Posted September 26, 2014 They do work. However, your situation is more complex due to the multiple Framesets. Have you tried something like this?: $oSet = _IEGetObjByName($oIE, "uiFramesetMain") $oFrame = _IEFrameGetCollection($oSet, 1) _IELinkClickByText($oFrame, "Monatsjournale") Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
JohnOne Posted September 26, 2014 Share Posted September 26, 2014 Probably turn out to be cross domain frames. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Mojo123 Posted October 1, 2014 Author Share Posted October 1, 2014 (edited) They do work. However, your situation is more complex due to the multiple Framesets. Have you tried something like this?: $oSet = _IEGetObjByName($oIE, "uiFramesetMain") $oFrame = _IEFrameGetCollection($oSet, 1) _IELinkClickByText($oFrame, "Monatsjournale") It doesn't work. Probably turn out to be cross domain frames. What does it mean? Edited October 1, 2014 by Mojo123 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now