-1

i am not able to find the xpath for a text box and get the value from itenter [![enter image description here

the code is here. please help me find the xpath to locate the box and get the value from it.

enter image description here

  • 4
    Why you insist on using Xpath, when your input has both name and ID? Also, we do not solve your homework. If you need to learn some basic skills, follow tutorials. – Peter M. - stands for Monica Mar 27 '18 at 14:43
1

I am not sure what is so difficult here. Its pretty straight forward. The element has all possible attributes. You can write n number of correct xpath for this element.

//input[@name='sys_display.problem.assigned_to']
|improve this answer|||||
0

There is a simple way by inspecting the element and right clicking on the mouse will give you an option to copy the xpath

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.