Micro Focus QTP (UFT) Forums
Doesn't store value into database using Innertext - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Doesn't store value into database using Innertext (/Thread-Doesn-t-store-value-into-database-using-Innertext)



Doesn't store value into database using Innertext - Langxii - 06-15-2011

Hi,

I got problem i can't not save value to database after i set value to grid.
The value is set to grid, after click save button on page, it doesn't store the value. Would you please help?

Code:
Set desc = Browser("").Page("").WebElement("WebResource_2")
desc.object.innertext = "01"
Msgbox desc.GetRoProperty("innertext")

Browser("").Page("").WebButton("Save").Click

1) After cliking save , the value is not stored
2) I tried to put msgbox it retireved the value "01"
3) I tried not run at the line Browser("").Page("").WebButton("Save").Click
and I manually click Save button- the value is not stored.

Would you please help?


Thanks,


RE: Doesn't store value into database using Innertext - rajpes - 07-05-2011

Quote:I manually click Save button- the value is not stored.
If it doesn't work manually itself, you can't expect your script to make it work.
It seems to be a bug in the application .