Forum Discussion
5 Replies
Hi Sridhar,
Please read the "Working With Web Page Elements" article to learn how to work with objects on a web page.
Also, there are several screencasts on this page of our web site describing how to test web pages in TestComplete. I recommend that you watch them.- sridharp_mcfContributorHi David
Thanks
Please Can you give any example on Web Page using VBScript
Hi Sridhar,
The script below works with a Google page. It specifies a search parameter on the page and clicks the 'Google Search' button if it exists:
Sub Test
' Open IE before executing the script
Dim iexplore
Dim page
Dim cell
Dim textbox
Set iexplore = Sys.Process("iexplore")
Call iexplore.ToURL("http://www.google.com/")
Set page = iexplore.Page("http://www.google.com/")
Set cell = page.Form("f").Table(0).Cell(0, 1)
Set textbox = cell.Panel(0).Textbox("q")
Call textbox.SetText("TestComplete")
If cell.WaitSubmitButton("btnG", 3000).Exists Then
cell.SubmitButton("btnG").Click
End If
End Sub- sridharp_mcfContributorHi David
Thanks, i will try this script with different websites, and is there any way to find with a short script instead of this lengthy code.
Is there any way to find Children of a current page and separetes those with using any property in to a variable.
Sridhar P
Hi,
I recommend that you read the "Finding Objects on Web Pages" article describing how to accomplish your task.