Jump to content
Sign in to follow this  

javascript automation in IE

Recommended Posts


hey guys,

im trying to automate a website i use at work a lot, it uses javascript for its link menu, i tried just having the browser navigate to the url in the javascript code but it would not work, is there a way to send a javascript command to the browser? i tried searching the forum for javascript but it would not let me. here is the piece of code i need to send back to the browser.

createMenuItem("New Flood Zone Determination","javascript:window.top.DisplayContentPage('https://www.floodpro.net/FloodZones/ZoneForm.asp?wSessionID="+window.top.SessionID()+"&Rd=0.8863423')",false,"","#ffffff");

any help or advice on sending javascript commands to the browser would be nice,

Thanks in advance

Share this post

Link to post
Share on other sites

I use this way Posted Image

$_JScriptCmd1 ="javascript:fv=document.getElementById('watch-headline-title').innerText;"
$oIE = ObjCreate ( "InternetExplorer.Application" )
$oIE.Visible = 1
$oIE.Navigate ( 'http://www.youtube.com/watch?v=t5Sd5c4o9UM' )
    Sleep ( 100 )
Until Not $oIE.Busy
$oIE.Navigate ( $_JScriptCmd1 )

AutoIt X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post

Link to post
Share on other sites

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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.