title: Selenium, unable to click element on DEVOPS
body: <p>I have FontAwesomeIcon react element on page. When I run tests locally it normally works it means it finds element and do Click action.
  When I am running the same scenarious in devops tests it is not interactable.
  I tried to run click action in a lot of ways but nothing works.
  CODE</p>
  <pre><code>IWebElement btnSearchLocalization = driver.FindElement(By.CssSelector(&quot;.fa-1x&quot;));
  executorEventPlace.ExecuteScript(&quot;arguments[0].scrollIntoView(true);&quot;, btnSearchLocalization);
  IWebElement btnSearchLocalization2 = driver.FindElement(By.CssSelector(&quot;.fa-1x&quot;));
  
  btnSearchLocalization2.Click();
  </code></pre>
  <p>I got a lot of other problems with interacting elements but in most of cases helped one of this two solutions:</p>
  <pre><code>executorEventPlace.ExecuteScript(&quot;arguments[0].scrollIntoView(true);&quot;, eventPlace);
  executorEventPlace.ExecuteScript(&quot;arguments[0].click();&quot;, eventPlace);
  </code></pre>
  <p>How to setup devops agent correctly? How to compare it with my local computer? I also added a lot of <code>Thread.Sleep()</code> but this elements must be visible.</p>
  <p>Edit
  Initialization:</p>
  <pre><code>public static IWebDriver _driver;
   public static IWebDriver Instance
      {
          get
          {
              if (_driver == null)
              {
                  ChromeOptions options = new ChromeOptions();
                  //options.AddArguments(&quot;start-maximized&quot;);
                  //options.AddArguments(&quot;--window-size=1920,1080&quot;);
                  options.AddArguments(&quot;--start-maximized&quot;);
                  options.AddArgument(&quot;--ignore-certificate-errors&quot;);
                  options.AddArgument(&quot;--disable-popup-blocking&quot;);
                  options.AddArgument(&quot;--incognito&quot;);
  
                  _driver = new ChromeDriver(@&quot;C:\temp\chromedriver\&quot;, options);
                  //_driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), options);
              }
              return _driver;
          }
      }
  </code></pre>
  <p>Exception:
  OpenQA.Selenium.ElementNotInteractableException : element not interactable: Element is not currently visible and may not be manipulated
  (Session info: chrome=99.0.4844.84)</p>