07-29-2016, 01:37 PM
Hi All,
I am new to UFT and very much new to web browser automation.
So , I want to store the webelement name in a variable.
(Need: I need to get the UTC time increment value from google. Im googling with "BKK time". And there will be a value like this - "GTM+7". And I need that "7 " value. I am trying to store this value in a variable.)
Im trying the this:
================
====================
What can I replace {****} with to get the required information.
Please help me .
Thanks,
Shilpa G
I am new to UFT and very much new to web browser automation.
So , I want to store the webelement name in a variable.
(Need: I need to get the UTC time increment value from google. Im googling with "BKK time". And there will be a value like this - "GTM+7". And I need that "7 " value. I am trying to store this value in a variable.)
Im trying the this:
================
Code:
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe", "https://www.google.com"
Browser("Google Search").Page("Google Search").WebEdit("Search").Set "BKK time"
Browser("Google Search").Page("Google Search").WebEdit("Search").Submit
Browser("Google Search").Page("Google Search").WebElement("(GMT+.*)").highlight
val = Browser("Google Search").Page("Google Search").WebElement("(GMT+.*)").{****}
print val
====================
What can I replace {****} with to get the required information.
Please help me .
Thanks,
Shilpa G