title: Selenium File Upload Not Working in Azure Pipeline/ VM Machine
body: <p>Hi I am Trying Achieve File upload Scenario My Test cases using selenium</p>
  <p>Element I am Doing Actions On:-</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input _ngcontent-swn-c63="" type="file" id="undefined" multiple="" accept=".gif, .xlsm, .zip, .xls,.xlsx, .pdf, .ppt, .pptx, .doc, .docx, .jpeg, .jpg, .png, .csv, .txt"&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Selenium Script I am Using :-</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>WebElement UploadElement=(new WebDriverWait(driver, BaseInitializer.defaultwaitTime)).until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//input[@type='file' and @id='undefined']")));
  ((JavascriptExecutor)driver).executeScript("arguments[0].style.display = 'block';", UploadElement);
  UploadElement.sendKeys(newname.getAbsolutePath());</code></pre>
  </div>
  </div>
  </p>
  <p>While the above piece of code is working in My Local Machine(Chrome browser). Same script is not working while running the code in Azures Pipeline. The File is not getting reflected in Upload Element. What may be the issue? Or I am missing something?</p>