I have used Jenkins using Command prompt earlier. Because of some group policy changes made to the server where I run Jenkins, I started running Jenkins as windows Service (Allow Service to interact with Desktop is checked). 

There is a web application on which I am trying to identify the user-id field using the below code and is not able to do so. 

When I run the same code in eclipse, it works fine.
when I run the same code by stopping Jenkins service and starting using command prompt, it works fine.

But Just not in Jenkins which runs as windows service. Has anyone experienced something like this? what is the solution

```
WebDriverWait wait = new WebDriverWait(driver,20);

wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(".//*[@id='user-id']"))

```

Is this an issue with Jenkins running as service?

Here is the HTML

```
<div class="l-main">
<div class="container">
<div class="l-content">
<div class="row">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="form-item row">
<label class="col-md-3 col-sm-2 col-xs-12" for="user-id"> User ID </label>
<input id="user-id" class="col-md-6 col-sm-10 col-xs-12" placeholder="User ID" name="UserID" value="" size="23" maxlength="62" type="text"/>
</div>

```