Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xpath in UFT not working

Below code is written in UFT 12.5 version and ran on open Web application(Google).

Object is not identified or no action performed in Test result

Browser("name:=Google").Page("title:=Google").WebEdit("xpath:=//INPUT[@name='q']").Set “test”

Any resolution?

like image 982
Joy Flora Avatar asked May 23 '26 04:05

Joy Flora


1 Answers

You have made a typo in the code which is “test”. Just change your code from “test” to "test" and then it will work fine. So the actual statement should be

Browser("name:=Google").Page("title:=Google").WebEdit("xpath:=//INPUT[@name='q']").Set "test"
like image 77
Nitish Aggarwal Avatar answered May 25 '26 07:05

Nitish Aggarwal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!