How do I send a user name to hotmail user name field? Do I need to focus 1st and then use sendKey option? I am also struggling to figure out how to use xpath or cssselector for this field.


<div class="placeholder has-focus" aria-hidden="true" 
     data-bind="text: hintText, css: hintCss">Email, phone, or Skype name

Your help/suggestion is much appreciated. Thanks

1 Answer 1


You can directly use sendkeys, No need to first set focus on the email field:
Below is the required xpath:


You can always use firepath addon in firefox, to take help, with creation of xpaths.

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.