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:
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.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
add a comment |
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:
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.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
add a comment |
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:
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.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
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:
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.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
selenium selenium-webdriver automation remotewebdriver
asked Nov 21 at 6:43
Ankit
61
61
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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