Selenium webdriver without making server of the pc












1














I have read the comments below for this question:
What are the differences between 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver'?



I would like to ask: Can alone run webdriver without server?
I only install selenium with "pip install selenium" and downloaded a chrome webdriver from chrome website.



If I run a code like this:



from selenium import webdriver
from selenium.webdriver.common.keys import Keys

driver = webdriver.Firefox()
driver.get("http://www.python.org")
assert "Python" in driver.title
elem = driver.find_element_by_name("q")
elem.clear()
elem.send_keys("pycon")
elem.send_keys(Keys.RETURN)


then my pc on a network at my workplace will work as a server ? Or my pc will work as normal, like if I just run a python like this without any modul:



print("hello")


I am worry about making a server of my pc at my workplace and cause some issue for my co-workers. I just want some task and process automate, I have a lot of copy-paste task from a website, which can be visited inside the company, so this website cannot be accessed by public. I am not a programmer (but have some experience in python), so I didnt learnt about networks, just an engineer who would like to make simplier/faster the tasks.










share|improve this question





























    1














    I have read the comments below for this question:
    What are the differences between 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver'?



    I would like to ask: Can alone run webdriver without server?
    I only install selenium with "pip install selenium" and downloaded a chrome webdriver from chrome website.



    If I run a code like this:



    from selenium import webdriver
    from selenium.webdriver.common.keys import Keys

    driver = webdriver.Firefox()
    driver.get("http://www.python.org")
    assert "Python" in driver.title
    elem = driver.find_element_by_name("q")
    elem.clear()
    elem.send_keys("pycon")
    elem.send_keys(Keys.RETURN)


    then my pc on a network at my workplace will work as a server ? Or my pc will work as normal, like if I just run a python like this without any modul:



    print("hello")


    I am worry about making a server of my pc at my workplace and cause some issue for my co-workers. I just want some task and process automate, I have a lot of copy-paste task from a website, which can be visited inside the company, so this website cannot be accessed by public. I am not a programmer (but have some experience in python), so I didnt learnt about networks, just an engineer who would like to make simplier/faster the tasks.










    share|improve this question



























      1












      1








      1


      0





      I have read the comments below for this question:
      What are the differences between 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver'?



      I would like to ask: Can alone run webdriver without server?
      I only install selenium with "pip install selenium" and downloaded a chrome webdriver from chrome website.



      If I run a code like this:



      from selenium import webdriver
      from selenium.webdriver.common.keys import Keys

      driver = webdriver.Firefox()
      driver.get("http://www.python.org")
      assert "Python" in driver.title
      elem = driver.find_element_by_name("q")
      elem.clear()
      elem.send_keys("pycon")
      elem.send_keys(Keys.RETURN)


      then my pc on a network at my workplace will work as a server ? Or my pc will work as normal, like if I just run a python like this without any modul:



      print("hello")


      I am worry about making a server of my pc at my workplace and cause some issue for my co-workers. I just want some task and process automate, I have a lot of copy-paste task from a website, which can be visited inside the company, so this website cannot be accessed by public. I am not a programmer (but have some experience in python), so I didnt learnt about networks, just an engineer who would like to make simplier/faster the tasks.










      share|improve this question















      I have read the comments below for this question:
      What are the differences between 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver'?



      I would like to ask: Can alone run webdriver without server?
      I only install selenium with "pip install selenium" and downloaded a chrome webdriver from chrome website.



      If I run a code like this:



      from selenium import webdriver
      from selenium.webdriver.common.keys import Keys

      driver = webdriver.Firefox()
      driver.get("http://www.python.org")
      assert "Python" in driver.title
      elem = driver.find_element_by_name("q")
      elem.clear()
      elem.send_keys("pycon")
      elem.send_keys(Keys.RETURN)


      then my pc on a network at my workplace will work as a server ? Or my pc will work as normal, like if I just run a python like this without any modul:



      print("hello")


      I am worry about making a server of my pc at my workplace and cause some issue for my co-workers. I just want some task and process automate, I have a lot of copy-paste task from a website, which can be visited inside the company, so this website cannot be accessed by public. I am not a programmer (but have some experience in python), so I didnt learnt about networks, just an engineer who would like to make simplier/faster the tasks.







      python selenium selenium-webdriver server webdriver






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 22 at 22:01









      DebanjanB

      37.9k73375




      37.9k73375










      asked Nov 22 at 11:10









      johndoel

      365




      365
























          1 Answer
          1






          active

          oldest

          votes


















          2














          As per How Does WebDriver ‘Drive’ the Browser Selenium-WebDriver makes direct calls to the browser using each browser’s native support for automation. These direct calls and the features they support depends on the browser you are using.



          The WebDriver consists of three separate pieces.




          • First of all, there is the Browser itself (e.g. Firefox / Chrome).

          • Next, the language bindings provided by the Selenium project (i.e. the Driver).

          • The executable downloaded either from GeckoDriver or ChromeDriver repository which acts as a bridge between Browser Client and the Driver. This executable is called WebDriver which we often refer as the Server to keep things simple.


          So to execute you test you would require all these three pieces.




          • Mostly you will be having Firefox and Chrome browsers installed in your local system.


          • Start a command prompt using the cmd.exe program and run the pip command as given below to install selenium.



            pip install selenium


          • You can find a detailed discussion in Python : no module named selenium


          • The GeckoDriver and ChromeDriver can be downloaded from the respective locations.


          • Now, you can execute your script which is as follows:



            from selenium import webdriver
            from selenium.webdriver.common.keys import Keys

            driver = webdriver.Firefox(executable_path=r'C:pathtogeckodriver.exe')
            driver.get("http://www.python.org")
            assert "Python" in driver.title
            elem = driver.find_element_by_name("q")
            elem.clear()
            elem.send_keys("pycon")
            elem.send_keys(Keys.RETURN)







          share|improve this answer





















          • I've never heard anyone refer to WebDriver as the "Server" (even though it is one). When someone refers to the "Server" in the context of Selenium, they typically mean the Java-based Selenium Servers (as in Selenium Standalone or Selenium Grid Hub)
            – Corey Goldberg
            Nov 26 at 21:29











          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%2f53429669%2fselenium-webdriver-without-making-server-of-the-pc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          As per How Does WebDriver ‘Drive’ the Browser Selenium-WebDriver makes direct calls to the browser using each browser’s native support for automation. These direct calls and the features they support depends on the browser you are using.



          The WebDriver consists of three separate pieces.




          • First of all, there is the Browser itself (e.g. Firefox / Chrome).

          • Next, the language bindings provided by the Selenium project (i.e. the Driver).

          • The executable downloaded either from GeckoDriver or ChromeDriver repository which acts as a bridge between Browser Client and the Driver. This executable is called WebDriver which we often refer as the Server to keep things simple.


          So to execute you test you would require all these three pieces.




          • Mostly you will be having Firefox and Chrome browsers installed in your local system.


          • Start a command prompt using the cmd.exe program and run the pip command as given below to install selenium.



            pip install selenium


          • You can find a detailed discussion in Python : no module named selenium


          • The GeckoDriver and ChromeDriver can be downloaded from the respective locations.


          • Now, you can execute your script which is as follows:



            from selenium import webdriver
            from selenium.webdriver.common.keys import Keys

            driver = webdriver.Firefox(executable_path=r'C:pathtogeckodriver.exe')
            driver.get("http://www.python.org")
            assert "Python" in driver.title
            elem = driver.find_element_by_name("q")
            elem.clear()
            elem.send_keys("pycon")
            elem.send_keys(Keys.RETURN)







          share|improve this answer





















          • I've never heard anyone refer to WebDriver as the "Server" (even though it is one). When someone refers to the "Server" in the context of Selenium, they typically mean the Java-based Selenium Servers (as in Selenium Standalone or Selenium Grid Hub)
            – Corey Goldberg
            Nov 26 at 21:29
















          2














          As per How Does WebDriver ‘Drive’ the Browser Selenium-WebDriver makes direct calls to the browser using each browser’s native support for automation. These direct calls and the features they support depends on the browser you are using.



          The WebDriver consists of three separate pieces.




          • First of all, there is the Browser itself (e.g. Firefox / Chrome).

          • Next, the language bindings provided by the Selenium project (i.e. the Driver).

          • The executable downloaded either from GeckoDriver or ChromeDriver repository which acts as a bridge between Browser Client and the Driver. This executable is called WebDriver which we often refer as the Server to keep things simple.


          So to execute you test you would require all these three pieces.




          • Mostly you will be having Firefox and Chrome browsers installed in your local system.


          • Start a command prompt using the cmd.exe program and run the pip command as given below to install selenium.



            pip install selenium


          • You can find a detailed discussion in Python : no module named selenium


          • The GeckoDriver and ChromeDriver can be downloaded from the respective locations.


          • Now, you can execute your script which is as follows:



            from selenium import webdriver
            from selenium.webdriver.common.keys import Keys

            driver = webdriver.Firefox(executable_path=r'C:pathtogeckodriver.exe')
            driver.get("http://www.python.org")
            assert "Python" in driver.title
            elem = driver.find_element_by_name("q")
            elem.clear()
            elem.send_keys("pycon")
            elem.send_keys(Keys.RETURN)







          share|improve this answer





















          • I've never heard anyone refer to WebDriver as the "Server" (even though it is one). When someone refers to the "Server" in the context of Selenium, they typically mean the Java-based Selenium Servers (as in Selenium Standalone or Selenium Grid Hub)
            – Corey Goldberg
            Nov 26 at 21:29














          2












          2








          2






          As per How Does WebDriver ‘Drive’ the Browser Selenium-WebDriver makes direct calls to the browser using each browser’s native support for automation. These direct calls and the features they support depends on the browser you are using.



          The WebDriver consists of three separate pieces.




          • First of all, there is the Browser itself (e.g. Firefox / Chrome).

          • Next, the language bindings provided by the Selenium project (i.e. the Driver).

          • The executable downloaded either from GeckoDriver or ChromeDriver repository which acts as a bridge between Browser Client and the Driver. This executable is called WebDriver which we often refer as the Server to keep things simple.


          So to execute you test you would require all these three pieces.




          • Mostly you will be having Firefox and Chrome browsers installed in your local system.


          • Start a command prompt using the cmd.exe program and run the pip command as given below to install selenium.



            pip install selenium


          • You can find a detailed discussion in Python : no module named selenium


          • The GeckoDriver and ChromeDriver can be downloaded from the respective locations.


          • Now, you can execute your script which is as follows:



            from selenium import webdriver
            from selenium.webdriver.common.keys import Keys

            driver = webdriver.Firefox(executable_path=r'C:pathtogeckodriver.exe')
            driver.get("http://www.python.org")
            assert "Python" in driver.title
            elem = driver.find_element_by_name("q")
            elem.clear()
            elem.send_keys("pycon")
            elem.send_keys(Keys.RETURN)







          share|improve this answer












          As per How Does WebDriver ‘Drive’ the Browser Selenium-WebDriver makes direct calls to the browser using each browser’s native support for automation. These direct calls and the features they support depends on the browser you are using.



          The WebDriver consists of three separate pieces.




          • First of all, there is the Browser itself (e.g. Firefox / Chrome).

          • Next, the language bindings provided by the Selenium project (i.e. the Driver).

          • The executable downloaded either from GeckoDriver or ChromeDriver repository which acts as a bridge between Browser Client and the Driver. This executable is called WebDriver which we often refer as the Server to keep things simple.


          So to execute you test you would require all these three pieces.




          • Mostly you will be having Firefox and Chrome browsers installed in your local system.


          • Start a command prompt using the cmd.exe program and run the pip command as given below to install selenium.



            pip install selenium


          • You can find a detailed discussion in Python : no module named selenium


          • The GeckoDriver and ChromeDriver can be downloaded from the respective locations.


          • Now, you can execute your script which is as follows:



            from selenium import webdriver
            from selenium.webdriver.common.keys import Keys

            driver = webdriver.Firefox(executable_path=r'C:pathtogeckodriver.exe')
            driver.get("http://www.python.org")
            assert "Python" in driver.title
            elem = driver.find_element_by_name("q")
            elem.clear()
            elem.send_keys("pycon")
            elem.send_keys(Keys.RETURN)








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 22 at 22:04









          DebanjanB

          37.9k73375




          37.9k73375












          • I've never heard anyone refer to WebDriver as the "Server" (even though it is one). When someone refers to the "Server" in the context of Selenium, they typically mean the Java-based Selenium Servers (as in Selenium Standalone or Selenium Grid Hub)
            – Corey Goldberg
            Nov 26 at 21:29


















          • I've never heard anyone refer to WebDriver as the "Server" (even though it is one). When someone refers to the "Server" in the context of Selenium, they typically mean the Java-based Selenium Servers (as in Selenium Standalone or Selenium Grid Hub)
            – Corey Goldberg
            Nov 26 at 21:29
















          I've never heard anyone refer to WebDriver as the "Server" (even though it is one). When someone refers to the "Server" in the context of Selenium, they typically mean the Java-based Selenium Servers (as in Selenium Standalone or Selenium Grid Hub)
          – Corey Goldberg
          Nov 26 at 21:29




          I've never heard anyone refer to WebDriver as the "Server" (even though it is one). When someone refers to the "Server" in the context of Selenium, they typically mean the Java-based Selenium Servers (as in Selenium Standalone or Selenium Grid Hub)
          – Corey Goldberg
          Nov 26 at 21:29


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f53429669%2fselenium-webdriver-without-making-server-of-the-pc%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

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

          Calculate evaluation metrics using cross_val_predict sklearn

          Insert data from modal to MySQL (multiple modal on website)