"chrome not reachable" error displayed with Non SDK build

36 views
Skip to first unread message

himabindu jambula

unread,
Sep 13, 2021, 2:45:33 AM9/13/21
to nw.js
"chrome not reachable" error displayed with Selenium web driver while automating nodejs application using PyTest framework

I have copied chrome driver from SDK build of node webkit to Non SDK build and written below code. I am seeing the issues.

Could any body suggest how to automate non SDK builds of node web kit.

import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("nwapp=C:/Program Files (x86)/Veripos/Quantum/")
#chrome_options.add_experimental_option("nwargs", ["arg1", "arg2"])
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument("--disable-setuid-sandbox")


driver = webdriver.Chrome(executable_path=r'C:/Program Files (x86)/Veripos/Quantum/chromedriver.exe',options=chrome_options)


print ("I am successful")
time.sleep(15) # Wait 5s to see the web page
search_box = driver.find_element_by_xpath("//a[contains(@id,'button-1015')]")
search_box.click()
time.sleep(15)
search_box = driver.find_element_by_xpath("//span[contains(@id,'button-1162-btnIconEl')]")
search_box.click()



Below error displayed.

C:\Python27\python.exe D:/Automation/WebUI3.x/Driver/TestQuantumLaunch.py
Traceback (most recent call last):
  File "D:/Automation/WebUI3.x/Driver/TestQuantumLaunch.py", line 11, in <module>
    driver = webdriver.Chrome(executable_path=r'C:/Program Files (x86)/Veripos/Quantum/chromedriver.exe',options=chrome_options)
  File "C:\Python27\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
    desired_capabilities=desired_capabilities)
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: chrome not reachable
  (Driver info: chromedriver=2.21 (0675721bdd08bbdf0cc064d1241b507795b3b7d3),platform=Windows NT 10.0 x86_64)

Reply all
Reply to author
Forward
0 new messages