|
it can be recognized by default when i use it, such as editbox, dropdown box, button and so on, all of them can be recognized.(Web page)
Maybe the java object you mentioned is special in the web page
Here is some script, you can see some editbox and PushButton there.
Sub Main
Dim Result As Integer
'Initially Recorded: 12/2/2006 11:27:52 AM
'Script Name: java object
Window SetContext, "Class=Shell_TrayWnd", ""
Toolbar Click, "ObjectIndex=2;\;ItemText=Launch Internet Explorer Browser", "Coords=8,10"
Window SetContext, "Caption=about:blank - Microsoft Internet Explorer", ""
Toolbar Click, "ObjectIndex=5;\;ItemID=33136", "Coords=42,13"
Window SetContext, "Class=BaseBar", ""
Toolbar Click, "ObjectIndex=1;\;ItemText=Osiris - Login Page", "Coords=52,13"
Window SetContext, "Caption=Osiris - Login Page - Microsoft Internet Explorer", ""
Browser NewPage,"HTMLTitle=Osiris - Login Page",""
EditBox Click, "Name=gessouid", "Coords=33,9"
InputKeys "1111"
PushButton Click, "HTMLText=Login"
Browser NewPage,"HTMLTitle=Home Page",""
HTMLLink Click, "HTMLText=45613", ""
Browser NewPage,"HTMLTitle=Job Information Database - Job Main",""
HTML Click, "HTMLId=s1", "Coords=102,11"
HTML Click, "HTMLId=s1-5", "Coords=30,10"
Browser NewPage,"HTMLTitle=Job Information Database - Cell Leader Summary",""
Result = HTMLLinkVP (CompareProperties, "HTMLId=Job Folder", "VP=Object Properties;Wait=2,30")
Result = HTMLLinkVP (CompareProperties, "HTMLId=Job Currency", "VP=Object Properties2;Wait=2,30")
Result = EditBoxVP (CompareProperties, "Name=txtCostReviewComment", "VP=Object Properties3;Wait=2,30")
End Sub |
|