Javascript form submission button stored as a image

Nov 15, 2012 at 4:04 PM
Edited Nov 15, 2012 at 4:29 PM

Hi Everyone,
I am currently trying to automate a login via IE.  Here is a link to the webpage:
Login button is stored as a image and doesn't have element id or tag name I can use to identify the button. So I tried to use the Select-Title and then Send Keys approach but nothing happens.  Has anyone encountered a similar issue? If so, any suggestions would be appreciated. I'm just spinning my wheels at this point :)

$username = 'username'                                                                                                      
$password = 'password'

$IEProcess = Select-Window -Title "FIA Electronic Give-Up System Login*" 

# Create the IE com object                                                                                            
 $ie = new-object -com InternetExplorer.Application $ie.navigate("")                               
do {sleep 1} until (-not ($ie.Busy))                                                                        
$ie.visible = $true
$usernameField = $doc.getElementById('username')                                
$usernameField.value = $username                                                                                                 
$passwordField = $doc.getElementById('password')                                                                       
$passwordField.value = $password 
$IEProcess | Send-Keys "{Enter}"

Nov 15, 2012 at 8:54 PM
Edited Nov 15, 2012 at 8:54 PM

My suggestion with automating browsers is always to use Selenium's WebDriver ( ) or WaTiN ( ) but in this case, you should be able to:


Nov 16, 2012 at 10:57 PM

Selecting the elementID worked, I thought I tried this before..I must have had a flaw in my syntax. I will look into you other automation options you suggested as well.  Thanks for your help.