Task scheduler not launching powerbi report in chrome using Selenium script











up vote
1
down vote

favorite












I am trying to launch the powerbi report in chrome browser through Selenium script. its basically taking the username and password to launch the report in chrome browser.
I created the console application and make the exe. we run exe on other machine.



Expected Behavior:




  1. when we executed the exe manually then its should launch the powerbi report in chrome(username and password will be filled by script).
    --> This is working fine.


  2. When we scheduled the exe from task scheduler then exe should run and launch the powerbi report in chrome browser(username and password will be filled by script).
    --> This should working but its not working.



Assumption for point 2: exe trying to sent the command to chrome browser in background but its not performing any action and throwing following error:



Error: The HTTP request to the remote WebDriver server for URL timed out after 60 seconds.



Sample Code: Used following code.



                IWebDriver driver = new ChromeDriver();

driver.Navigate().GoToUrl(testreport);
driver.FindElement(By.Id("a12345")).SendKeys("abc");
driver.FindElement(By.Id("idTestButton1")).Click();

Thread.Sleep(10000);
AutoItX.Send("abc");
AutoItX.Send("{TAB}");
AutoItX.Send("test123", 1);
AutoItX.Send("{Enter}");

DateTime startTime = DateTime.UtcNow;

WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(120));
wait.Until(ExpectedConditions.ElementIsVisible(By.ClassName("reprtname")));


Thanks










share|improve this question


























    up vote
    1
    down vote

    favorite












    I am trying to launch the powerbi report in chrome browser through Selenium script. its basically taking the username and password to launch the report in chrome browser.
    I created the console application and make the exe. we run exe on other machine.



    Expected Behavior:




    1. when we executed the exe manually then its should launch the powerbi report in chrome(username and password will be filled by script).
      --> This is working fine.


    2. When we scheduled the exe from task scheduler then exe should run and launch the powerbi report in chrome browser(username and password will be filled by script).
      --> This should working but its not working.



    Assumption for point 2: exe trying to sent the command to chrome browser in background but its not performing any action and throwing following error:



    Error: The HTTP request to the remote WebDriver server for URL timed out after 60 seconds.



    Sample Code: Used following code.



                    IWebDriver driver = new ChromeDriver();

    driver.Navigate().GoToUrl(testreport);
    driver.FindElement(By.Id("a12345")).SendKeys("abc");
    driver.FindElement(By.Id("idTestButton1")).Click();

    Thread.Sleep(10000);
    AutoItX.Send("abc");
    AutoItX.Send("{TAB}");
    AutoItX.Send("test123", 1);
    AutoItX.Send("{Enter}");

    DateTime startTime = DateTime.UtcNow;

    WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(120));
    wait.Until(ExpectedConditions.ElementIsVisible(By.ClassName("reprtname")));


    Thanks










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am trying to launch the powerbi report in chrome browser through Selenium script. its basically taking the username and password to launch the report in chrome browser.
      I created the console application and make the exe. we run exe on other machine.



      Expected Behavior:




      1. when we executed the exe manually then its should launch the powerbi report in chrome(username and password will be filled by script).
        --> This is working fine.


      2. When we scheduled the exe from task scheduler then exe should run and launch the powerbi report in chrome browser(username and password will be filled by script).
        --> This should working but its not working.



      Assumption for point 2: exe trying to sent the command to chrome browser in background but its not performing any action and throwing following error:



      Error: The HTTP request to the remote WebDriver server for URL timed out after 60 seconds.



      Sample Code: Used following code.



                      IWebDriver driver = new ChromeDriver();

      driver.Navigate().GoToUrl(testreport);
      driver.FindElement(By.Id("a12345")).SendKeys("abc");
      driver.FindElement(By.Id("idTestButton1")).Click();

      Thread.Sleep(10000);
      AutoItX.Send("abc");
      AutoItX.Send("{TAB}");
      AutoItX.Send("test123", 1);
      AutoItX.Send("{Enter}");

      DateTime startTime = DateTime.UtcNow;

      WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(120));
      wait.Until(ExpectedConditions.ElementIsVisible(By.ClassName("reprtname")));


      Thanks










      share|improve this question













      I am trying to launch the powerbi report in chrome browser through Selenium script. its basically taking the username and password to launch the report in chrome browser.
      I created the console application and make the exe. we run exe on other machine.



      Expected Behavior:




      1. when we executed the exe manually then its should launch the powerbi report in chrome(username and password will be filled by script).
        --> This is working fine.


      2. When we scheduled the exe from task scheduler then exe should run and launch the powerbi report in chrome browser(username and password will be filled by script).
        --> This should working but its not working.



      Assumption for point 2: exe trying to sent the command to chrome browser in background but its not performing any action and throwing following error:



      Error: The HTTP request to the remote WebDriver server for URL timed out after 60 seconds.



      Sample Code: Used following code.



                      IWebDriver driver = new ChromeDriver();

      driver.Navigate().GoToUrl(testreport);
      driver.FindElement(By.Id("a12345")).SendKeys("abc");
      driver.FindElement(By.Id("idTestButton1")).Click();

      Thread.Sleep(10000);
      AutoItX.Send("abc");
      AutoItX.Send("{TAB}");
      AutoItX.Send("test123", 1);
      AutoItX.Send("{Enter}");

      DateTime startTime = DateTime.UtcNow;

      WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(120));
      wait.Until(ExpectedConditions.ElementIsVisible(By.ClassName("reprtname")));


      Thanks







      selenium selenium-webdriver automation remotewebdriver






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 at 6:43









      Ankit

      61




      61





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53406554%2ftask-scheduler-not-launching-powerbi-report-in-chrome-using-selenium-script%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53406554%2ftask-scheduler-not-launching-powerbi-report-in-chrome-using-selenium-script%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Berounka

          Different font size/position of beamer's navigation symbols template's content depending on regular/plain...

          Sphinx de Gizeh