jQuery: How to get objects by ID, Class, Tag, and Attribute

http://api.jquery.com/id-selector/

or

http://www.techrepublic.com/blog/webmaster/jquery-how-to-get-objects-by-id-class-tag-and-attribute/1430

$(“#idXXXXXXXXX”).text(“XXXXXXXX”)

————————————————–

var element_ID = “my” + “name” +”xyz”;

 

=

 

$('#' + element_ID)
or
$(document.getElementById(element_ID))
jQuery: How to get objects by ID, Class, Tag, and Attribute

Launch new browser window with credentials

#

$Url = “http://len-shareappt”
$Username=”energo\sot_crkp”
$Password=”P@$$w0rd”
$IE=new-object -com internetexplorer.application
$IE.navigate($url)
$IE.visible=$true
$IE.Document.getElementById(“UsernameElement”).value = $Username #find DOM elements first!
$IE.Document.getElementByID(“PasswordElement”).value=$Password
$IE.Document.getElementById(“SubmitElement”).Click()

Launch new browser window with credentials