03-18-2009, 12:06 PM
Hi Rajashekar,
Just check with the below way :
Initallt add the browser,page,Webedit objects (Google Page) into OR properly.
Here i have used Opentextfile method(anyhow this method will creates the textfile implicitly)
Add the below code & execute .......
the above code is working fine.
_____________________________________________________________
Just check with the below way :
Initallt add the browser,page,Webedit objects (Google Page) into OR properly.
Here i have used Opentextfile method(anyhow this method will creates the textfile implicitly)
Add the below code & execute .......
Code:
Dim fso,f,f1
Const ForReading = 1, ForWriting = 2
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("c:\testfile.txt", ForWriting, true)
Stroutput=browser("Google").Page("Google").WebEdit("q").GetROProperty("Value")
f.write(Stroutput)
set f1 = fso.OpenTextFile("c:\testfile.txt", ForReading,true)
msgbox f1.ReadAll
the above code is working fine.
_____________________________________________________________