Forum Discussion

abrar22's avatar
abrar22
Frequent Contributor
9 years ago

Finding Elements by ID or Xpath and send Keys in

Hi,

 

Just want know how can send keys in text box using ID or Xpath of element?

For Example i want to type in something on google page. below is the code i have written which is not working. Can someone please correct me :

 

function openbrowser()
{
Browsers.Item(btIExplorer).Run("https://www.google.co.uk/");
Aliases.browser.pageGoogle.FindId("gs_htif0").SetText("hello");
}

No RepliesBe the first to reply