Use .* for regularexpressions
ex:
browser("name:=yahoo.*").page("title:=yahoo.*").webedit("name:=usern.*).set "Rajaputra"
Type: Posts; User: rajaputra; Keyword(s):
Use .* for regularexpressions
ex:
browser("name:=yahoo.*").page("title:=yahoo.*").webedit("name:=usern.*).set "Rajaputra"
Hi Babsun,
you can use below method to add object repository to your test.
Repositoriescollection.Add "RepositoryPath"
Here, RepositoryPath is path of the object repository
Hi,
Before capturing the search resluts, put wait statement.
So that, qtp will capture every search result.
If it is not work, please let me know.
Hi,
Call to Copy:
1. It is read and write mode
2. We can call both reusable actions and non reusable actions.
3. If we make any changes in base program, that will not be effected to the copied...
Hi,
You can try below script.
I have taken example for flight application for easy understanding.
Below script will retrieve the data from the flight application database, and display the result...
Hi,
This will work for you...
for i=1 to 3
browser("something").page("something").captureBitmap"C:\test\screen"&i&".bmp"
next
________________
Thanks & Regards!
Rajaputra[/QUOTE]
Hi,
This will work for you...
browser("something").page("something").captureBitmap"C:\test\screen"&i&".bmp"
________________
Thanks & Regards!
Rajaputra
Hi,
you can use object.captureBitmap"ScreenShot.bmp"
method to capture the screen shot at run time.
Below example will help you to get familiar with this.
'''Prerequisites: Open the...
Hi,
You can remove x,y coordinates of the object.
Regards
Rajaputra
I am working for MNC company in Hyderabad.
I am from Hyderabad.
Why u need this?
Hi Ramya,
Here you can use this code for getting data from database by using msaccess..
''''''''''''''To Retrieve the Data From Database''''''''''''''''''''''''''''''''''''''''''''''''''''
...
Hi ramya, here you can use this code for getting data from database by using msaccess..
''''''''''''''To Retrieve the Data From Database''''''''''''''''''''''''''''''''''''''''''''''''''''
...
Anshoo,
Yes, The last 2 lines in my code is reading data from datatable.
You can use below line to read the data from excell sheet......
msgbox "UserName is= "+Excel.ActiveSheet.cells(2,1)...
Hi,
''''Creation of Excel Sheet'''''''''''
Set Excel=createObject("Excel.Application")
Set ExcelSheet=createObject("Excel.sheet")
ExcelSheet.Application.visible=true
'''''storing the datas...
Hi,
Before calling that function in another script you have to load that particular object repository into it. Then it will dont show you any error.
Arunsingh Rajaputra
Hi,
If object location is keeps changing then you have to
Remove x,y coordinates from object repository.
Then run, it will work..
Arunsingh Rajaputra
Hi sangeetha, you can use this code for the connecting to database thru qtp....
Set objconnection=createobject("adodb.connection")...
Hi Anshoo,
What you have explained to Mr.jain is correct.
But You cannot close the application by using SystemUtil.Run
We can use
SystemUtil.CloseProcessByName
Hi Umesh,
The script you have given is usefull for the dynamically created link.
But how to click on the link which is scrolling here and there in a page?
_________________
Rajaputra
Hi anshoo, it is very useful techniques to write a dp for starters.
I am also giving some techniques for dp....
Here i am giving dp to click on a specified button....
using object repository...
I cannot understand how you set the radiobutton "ON" by using datatable.
You can use this line to set radiobutton "ON"...
window("text:=Flight Reservation").winradiobutton("text:=First").Click
Here you can find the count of the files....
Set fso = createobject("scripting.filesystemobject")
set fold = fso.getfolder("d:\testing files")
set fc = fold.files
word=0
xls=0
txt=0
Congrats Anshoo for becoming a moderator.
Congrats Sridhar
Can anybody give me the name of the company in India which is CMM Level 1 certified?
Please.............