0

We have a python script which does application validation(chrome) by navigating through different screens using selenium and tesseract. We are trying trigger this python script using a batch file/ PowerShell command from a remote server. When I try to trigger the batch file, the chrome windows opens in the local server rather opening in the remote server (place where the python script is present). This is the sample python script, there are many validations after this but I have included the code till the application url trigger.

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from PIL import Image
import os
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--incognito")
chrome_options.add_argument("--start-maximized")
driver = webdriver.Chrome(
    chrome_options=chrome_options,
    executable_path=r".\chromedriver_win32\chromedriver.exe",
)
driver.get("application url")

We want the chrome to open in the remote server. Thanks for the help!

We want the chrome to open in the remote server.

Kavya
  • 1
  • 1
  • 1
    Does this answer your question? [set chrome options with remote driver](https://stackoverflow.com/questions/13227346/set-chrome-options-with-remote-driver) – Alexey R. Dec 21 '22 at 14:29

0 Answers0