Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

PowerShell and HTML (IE)

$
0
0

Hi all,

I can use some help with working with an IE HTML webpage.

I've gotten past the initial login screen, but once I get logged in there is a separate of the page (Innerhtml and outerhtml) I believe is what that is. Or also from what I've seen these would be called frames. Section of the screen to work with.

$UserName = %Username%
$Password = %Passwordforaccount% 

$ie = New-Object -com InternetExplorer.Application

$ie.visible=$true

$ie.navigate("SiteURL")

while($ie.ReadyState -ne 4) {start-sleep -m 100}

$ie.document.getElementByID("j_username").Value = $username

$ie.document.getElementByID("j_password").Value = $password

$Link=$ie.Document.getElementsByTagName("input") | where-object {$_.type -eq "submit"}

$Link.click();

while( $ie.busy){Start-Sleep 10}

# At this point of the code (which I know isn't much yet) I'm logged in and at the next screen which is divided into the two workable frames.

I've looked online for guides of Powershell and IE or HTML I just can't find anything that will list out options for commands,methods so I can decipher this.

 

I need to access the link "Connection Pools" to advance to the next screen.

Thanks for any help!

 

Here is the source code of the page at the stuck part:

</style>

<scriptlanguage="javascript">

if (window.name == null || window.name.length == 0) {  window.name ='1414195188381';}</script>

<title>Welcome to BEA WebLogic Server Home</title></head>

<bodyonunload='wl_onunload()'><tablewidth='100%'cellpadding='0'cellspacing='0'border='0'class='top-background'>

<tr>

    <tdwidth='100%'height='100%'valign='middle'align='left'>

<spanclass='banner'>

&nbsp;

Welcome to BEA WebLogic Server Home</span>

</td>

<tdalign='right'>

  <tablewidth='100%'cellpadding='0'cellspacing='0'border='0'><tr>

<tdwidth='99%'nowrapvalign='middle'align='right'>

<ahref=‘http://URL’_top'onclick='window.open("","_top").focus();return true;'><imgborder='0'alt=''src=‘http://URL’title='Return to the console home page for the active domain'/></a><ahref=‘http://URL’target='_blank'><imgborder='0'alt=''src=‘http://URL’title='Open this page in a new window'/></a><ahref=‘http://URL’target='_tabhelp'onclick='window.open("","_tabhelp","width=850,height=650,screenX=100,left=100,screenY=100,top=100,scrollbars=yes,resizable=yes").focus();return true;'><imgborder='0'alt=''src=‘http://URL’title='Display help for this panel'/></a>&nbsp;&nbsp;&nbsp;

     </td>

     <tdwidth='1%'class='top-background'align='right'><atarget='_blank'href=‘http://URL’><imgborder='0'src=http://URL></a></td>

     <tdwidth='1%'class='top-background'valign='bottom'align='right'><atarget='_blank'href=‘http://URL’><imgborder='0'src=http://URL></a>

</td>

   </tr></table></td>

   </tr>

   <trclass='top-info-background'>

     <tdwidth='100%'>

       <tablewidth='100%'cellspacing='0'cellpadding='0'border='0'>

         <tr>

           <tdnowrapclass='top-info-background'align='left'>

                                                <spanclass='bannerstatus'>

                                                       &nbsp;

Connected&nbsp;to

                                                       :&nbsp;

CMS81_7001

                                                       &nbsp;&nbsp;&nbsp;&nbsp;

                                                       <imgalign='middle'border='0'src=http://URL>

                                                       &nbsp;&nbsp;&nbsp;&nbsp;

You are logged in as

                                                       :&nbsp;

USERNAME

                                                       &nbsp;&nbsp;&nbsp;&nbsp;

                                                       <imgalign='middle'border='0'src=http://URL>

                                                       &nbsp;&nbsp;&nbsp;&nbsp;

                                                       <aclass='logout'target='_top'href=‘http://URL’>Logout</a>

                                                </span>

           </td>

         </tr>

       </table>

     </td>

     <td>&nbsp;</td>

   </tr>

</table>

<scriptlanguage="javascript">

function changeRefresh() {}window.focus();</script>

<divclass='content'>

 

 

 

  <TABLEborder="0"  width="95%">

    <TRclass="heading">

      <TDvalign="middle"align="left"nowrap>

        Information and Resources

      </TD>

    </TR>

  </TABLE>

 

  <TABLEborder="0"width="95%"class="dialog-content">

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <spanclass='sub-heading'>Helpful Tools</span>

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <spanclass='sub-heading'>General Information</span>

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Convert weblogic.properties</span></a>

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <ahref=‘http://URL’target='_blank'><spanclass='mediumHyperlinks'>Read the documentation</span></a>

      </TD>

      <TD></TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Deploy a new Application...</span></a>&nbsp;

      </TD>

      <TDcolspan='2'width="33%"valign="middle"align="left"nowrap>

        <ahref=‘http://URL’target='_tabhelp'onclick='window.open("","_tabhelp","width=850,height=650,screenX=100,left=100,screenY=100,top=100,scrollbars=yes,resizable=yes").focus();return true;'><spanclass='mediumHyperlinks'>Common Administration Task Descriptions</span></a>

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Recent Task Status</span></a>

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Set your console preferences</span></a>

      </TD>

      <TD></TD>

    </TR>

   

  </TABLE>

 

 

 

  <TABLEborder="0"width="95%">

    <TR><TD><SPANclass="spacer">&nbsp;</SPAN></TD></TR>

    <TRclass="heading">

      <TDvalign="middle"align="left"nowrap>

        Domain Configurations

      </TD>

    </TR>

  </TABLE>

 

  <TABLEborder="0"width="95%">

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <spanclass='sub-heading'>Network Configuration</span>

      </TD>

      <TDwidth="33%"valign="middle"align="left">

        <spanclass='sub-heading'>Your Deployed Resources</span>

      </TD>

      <TDwidth="33%"valign="middle"align="left">

        <spanclass='sub-heading'>Your Application's Security Settings</span>

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Domain</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Applications</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Realms</span></a>&nbsp;

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Servers</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>EJB Modules</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

 

        &nbsp;

 

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Clusters</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Web Application Modules</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Machines</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Connector Modules</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        &nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Startup & Shutdown</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

    </TR>

  </TABLE>

 

 

 

  <TABLEborder="0"width="95%">

    <TR><TD><SPANclass="spacer">&nbsp;</SPAN></TD></TR>

    <TRclass="heading">

      <TDvalign="middle"align="left"nowrap>

        Services Configurations

      </TD>

    </TR>

  </TABLE>

 

  <TABLEborder="0"width="95%">

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <spanclass='sub-heading'>JDBC</span>

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <spanclass='sub-heading'>SNMP</span>

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <spanclass='sub-heading'>Other Services</span>

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Connection Pools</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Agent</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>XML Registries</span></a>&nbsp;

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>MultiPools</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Proxies</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>JTA Configuration</span></a>&nbsp;

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Data Sources</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Monitors</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Virtual Hosts</span></a>&nbsp;

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Data Source Factories</span></a>&nbsp;

     </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Log Filters</span></a>&nbsp;

     </TD>

      <TDwidth="34%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Domain-wide Logging</span></a>&nbsp;

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Attribute Changes</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Mail</span></a>&nbsp;

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <!-- JSP subheader -->

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <spanclass='sub-heading'>JMS</span>

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Trap Destinations</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>FileT3</span></a>&nbsp;

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Connection Factories</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Templates</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <!-- Connectivity -->

        <spanclass='sub-heading'>Connectivity</span>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

        <!-- Messaging Bridge -->

        <spanclass='sub-heading'>Messaging Bridge</span>&nbsp;

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Destination Keys</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>WebLogic Tuxedo Connector</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Bridges</span></a>&nbsp;

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Stores</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Tuxedo via JOLT</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>JMS Bridge Destinations</span></a>&nbsp;

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Servers</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Tuxedo via WLEC</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>General Bridge Destinations</span></a>&nbsp;

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Distributed Destinations</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

       

        <ahref=‘http://URL’><spanclass='mediumHyperlinks'>Foreign JMS Servers</span></a>&nbsp;

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

    </TR>

    <TR>

      <TDwidth="1%">&nbsp;</TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

      <TDwidth="33%"valign="middle"align="left"nowrap>

      </TD>

    </TR>

  </TABLE>

 

<TABLEborder="0"width="95%">

  <tr><td>&nbsp;</td></tr>

  <tr>

    <tdcolspan='2'>

      <spanclass='copyright'>

        Copyright (c) 2003 BEA Systems, Inc.  All rights reserved.

      </span>

    </td>

  </tr>

</table>

 

 

</div><scriptlanguage="javascript">

function wl_onunload() {

}

</script>

</body>

</html>

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles