nw.js chromedriver won't run from outside of the project folderHow to open chrome developer console using Selenium in Python?Selenium file upload url “path is not absolute”ChromeDriver for NW.js ApplicationError while trying to open chrome python-seleniumExecutable needs to be in PATH - Running Selenium on GNURoot on AndroidHow to open web browser using selenium module in python 2.7?Error with using chrome headless browser for python selenium based test cases on CentOSChrome closing after some time and produce error selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service in python“Python selenuim” --user-data-dir option ERROR: could not remove old devtools port fileDocker Selenium: selenium.common.exceptions.WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 127

Retract an already submitted recommendation letter (written for an undergrad student)

Is there really no use for MD5 anymore?

What does MLD stand for?

"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"

How do I produce this Greek letter koppa: Ϟ in pdfLaTeX?

Can a stored procedure reference the database in which it is stored?

Why must Chinese maps be obfuscated?

Contradiction proof for inequality of P and NP?

Unknown code in script

Creating a chemical industry from a medieval tech level without petroleum

Will I lose my paid in full property

Is Electric Central Heating worth it if using Solar Panels?

Co-worker works way more than he should

Cayley's Matrix Notation

What does "function" actually mean in music?

Multiple options vs single option UI

What does a straight horizontal line above a few notes, after a changed tempo mean?

How do I deal with a coworker that keeps asking to make small superficial changes to a report, and it is seriously triggering my anxiety?

Crossed out red box fitting tightly around image

Find the identical rows in a matrix

What is this word supposed to be?

Is there any pythonic way to find average of specific tuple elements in array?

How to keep bees out of canned beverages?

Older movie/show about humans on derelict alien warship which refuels by passing through a star



nw.js chromedriver won't run from outside of the project folder


How to open chrome developer console using Selenium in Python?Selenium file upload url “path is not absolute”ChromeDriver for NW.js ApplicationError while trying to open chrome python-seleniumExecutable needs to be in PATH - Running Selenium on GNURoot on AndroidHow to open web browser using selenium module in python 2.7?Error with using chrome headless browser for python selenium based test cases on CentOSChrome closing after some time and produce error selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service in python“Python selenuim” --user-data-dir option ERROR: could not remove old devtools port fileDocker Selenium: selenium.common.exceptions.WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 127






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I am trying to set up automated tests on an nw.js based app using selenium-python with chromedriver and for practical reasons (frequent reinstallation...) I want to keep chromedriver separated from the rest of the files in another folder. My tests work only when the chromedriver is located at the same folder as the rest of the project (along with nw.exe). If I try to place it anywhere else and alter paths with 'binary_location', 'chrome_driver_binary' and 'add_argument' accordingly, I always end up with exceptions such as




selenium.common.exceptions.WebDriverException: Message: unknown error:
cannot find Chrome binary




or




selenium.common.exceptions.WebDriverException: Message: unknown error:
Failed to create a Chrome process




Nw.js documentation wasn't helpful as it only says the following:



from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("nwapp=/path/to/your/app")

driver = webdriver.Chrome(executable_path='/path/to/nwjs/chromedriver', chrome_options=chrome_options)


Thanks in advance for any ideas.










share|improve this question




























    1















    I am trying to set up automated tests on an nw.js based app using selenium-python with chromedriver and for practical reasons (frequent reinstallation...) I want to keep chromedriver separated from the rest of the files in another folder. My tests work only when the chromedriver is located at the same folder as the rest of the project (along with nw.exe). If I try to place it anywhere else and alter paths with 'binary_location', 'chrome_driver_binary' and 'add_argument' accordingly, I always end up with exceptions such as




    selenium.common.exceptions.WebDriverException: Message: unknown error:
    cannot find Chrome binary




    or




    selenium.common.exceptions.WebDriverException: Message: unknown error:
    Failed to create a Chrome process




    Nw.js documentation wasn't helpful as it only says the following:



    from selenium import webdriver
    from selenium.webdriver.chrome.options import Options
    chrome_options = Options()
    chrome_options.add_argument("nwapp=/path/to/your/app")

    driver = webdriver.Chrome(executable_path='/path/to/nwjs/chromedriver', chrome_options=chrome_options)


    Thanks in advance for any ideas.










    share|improve this question
























      1












      1








      1








      I am trying to set up automated tests on an nw.js based app using selenium-python with chromedriver and for practical reasons (frequent reinstallation...) I want to keep chromedriver separated from the rest of the files in another folder. My tests work only when the chromedriver is located at the same folder as the rest of the project (along with nw.exe). If I try to place it anywhere else and alter paths with 'binary_location', 'chrome_driver_binary' and 'add_argument' accordingly, I always end up with exceptions such as




      selenium.common.exceptions.WebDriverException: Message: unknown error:
      cannot find Chrome binary




      or




      selenium.common.exceptions.WebDriverException: Message: unknown error:
      Failed to create a Chrome process




      Nw.js documentation wasn't helpful as it only says the following:



      from selenium import webdriver
      from selenium.webdriver.chrome.options import Options
      chrome_options = Options()
      chrome_options.add_argument("nwapp=/path/to/your/app")

      driver = webdriver.Chrome(executable_path='/path/to/nwjs/chromedriver', chrome_options=chrome_options)


      Thanks in advance for any ideas.










      share|improve this question














      I am trying to set up automated tests on an nw.js based app using selenium-python with chromedriver and for practical reasons (frequent reinstallation...) I want to keep chromedriver separated from the rest of the files in another folder. My tests work only when the chromedriver is located at the same folder as the rest of the project (along with nw.exe). If I try to place it anywhere else and alter paths with 'binary_location', 'chrome_driver_binary' and 'add_argument' accordingly, I always end up with exceptions such as




      selenium.common.exceptions.WebDriverException: Message: unknown error:
      cannot find Chrome binary




      or




      selenium.common.exceptions.WebDriverException: Message: unknown error:
      Failed to create a Chrome process




      Nw.js documentation wasn't helpful as it only says the following:



      from selenium import webdriver
      from selenium.webdriver.chrome.options import Options
      chrome_options = Options()
      chrome_options.add_argument("nwapp=/path/to/your/app")

      driver = webdriver.Chrome(executable_path='/path/to/nwjs/chromedriver', chrome_options=chrome_options)


      Thanks in advance for any ideas.







      selenium selenium-chromedriver nw.js






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 22 at 16:32









      Tomáš HartmanTomáš Hartman

      61




      61






















          0






          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',
          autoActivateHeartbeat: false,
          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%2f55304035%2fnw-js-chromedriver-wont-run-from-outside-of-the-project-folder%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55304035%2fnw-js-chromedriver-wont-run-from-outside-of-the-project-folder%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

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript