Ask a Question

Finding Elements by ID or Xpath and send Keys in

abrar22
Frequent Contributor

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");
}

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: