Micro Focus QTP (UFT) Forums
Difference between "Set" and "Type" - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Difference between "Set" and "Type" (/Thread-Difference-between-Set-and-Type)



Difference between "Set" and "Type" - falvi - 04-03-2012

Hello,

i just did a little google about the difference between these two, so i do have a little insight about what these two do, but my question is a little extended.

i'm trying to write a specific file name in file download dialog box in Win - 7 using IE 8 . but two different machines. one machine is supporting both methods, where as the other machine is only accepting "Type" method.

could someone please tell me why is this happening, and how can i really know under the similar conditions, when to use "type" and when to use "set"?

Thank you.


RE: Difference between "Set" and "Type" - sshukla12 - 04-03-2012

"type" simulates the keyboard input (typing a word using key after key), "set" replace the current value within your edit-field with the value of your choice.

Regards,
Sankalp


RE: Difference between "Set" and "Type" - falvi - 04-03-2012

yes but you didn't understand my question here, "Set" is working for me on one machine when i set a location & filename in download dialog box while downloading a file. but the very same code with "Set" method doesn't work on other same operating system machine. i'd to use "Type" to make it work there... why is this difference occurring ?