• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

When attempting to run Selenium via nohup on the server, an error is encountered.

Messages
8
Country
indonesia
When I run the script with Python 3.10 on my local computer, it works correctly, but when I try to run it on the server using nohup, I get errors. The versions of the driver and the program are the same.

Errors:

Code:
NoSuchWindowException: Message: no such window: target window already closed from unknown error: web view not found (Session info: chrome=110.0.5481.100) or WebDriverException: Message: disconnected: Unable to receive message from renderer (failed to check if window was closed: disconnected: not connected to DevTools) (Session info: headless chrome=110.0.5481.100)

When trying driver.window_handles (to find out how many windows), another error: selenium.common.exceptions.WebDriverException: Message: disconnected: not connected to DevTools (failed to check if window was closed: disconnected: not connected to DevTools) (Session info: chrome=110.0.5481.100). Maybe someone has encountered or knows what the problem is?

Code:
Code:
options = webdriver.ChromeOptions()
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('disable-infobars')
options.add_argument("user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36")
loc = os.getcwd()
serv = Service("%s/chromedriver" % loc)
os.chmod("%s/chromedriver" % loc, 755) driver: webdriver.Chrome = webdriver.Chrome(options=options, service=serv) driver.get("any_link")
 
Hi,

Can you give some background info what you try to achieve? It's not really clear how this is related to flight simulator tool development.
 
Back
Top