Skip to content

Commit a7c61cb

Browse files
committed
updating py docs for 2.37 release
1 parent ba4f854 commit a7c61cb

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

docs/api/py/_sources/index.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ If you have `pip <http://www.pip-installer.org>`_ on your system, you can simply
3636

3737
pip install -U selenium
3838

39-
Alternately, you can download the source distribution from `PyPI <http://pypi.python.org/pypi/selenium>`_ (e.g. selenium-2.36.tar.gz), unarchive it, and run::
39+
Alternately, you can download the source distribution from `PyPI <http://pypi.python.org/pypi/selenium>`_ (e.g. selenium-2.37.tar.gz), unarchive it, and run::
4040

4141
python setup.py install
4242

@@ -70,7 +70,7 @@ Example 1:
7070

7171
browser = webdriver.Firefox()
7272

73-
browser.get('http://www.yahoo.com)
73+
browser.get('http://www.yahoo.com')
7474
assert 'Yahoo!' in browser.title
7575

7676
elem = browser.find_element_by_name('p') # Find the search box
@@ -107,11 +107,11 @@ For normal WebDriver scripts (non-Remote), the Java server is not needed.
107107

108108
However, to use Selenium Webdriver Remote or the legacy Selenium API (Selenium-RC), you need to also run the Selenium server. The server requires a Java Runtime Environment (JRE).
109109

110-
Download the server separately, from: http://selenium.googlecode.com/files/selenium-server-standalone-2.36.0.jar
110+
Download the server separately, from: http://selenium.googlecode.com/files/selenium-server-standalone-2.37.0.jar
111111

112112
Run the server from the command line::
113113

114-
java -jar selenium-server-standalone-2.36.0.jar
114+
java -jar selenium-server-standalone-2.37.0.jar
115115

116116
Then run your Python client scripts.
117117

docs/api/py/index.html

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h2>Installing<a class="headerlink" href="#installing" title="Permalink to this
8787
<p>If you have <a class="reference external" href="http://www.pip-installer.org">pip</a> on your system, you can simply install or upgrade the Python bindings:</p>
8888
<div class="highlight-python"><pre>pip install -U selenium</pre>
8989
</div>
90-
<p>Alternately, you can download the source distribution from <a class="reference external" href="http://pypi.python.org/pypi/selenium">PyPI</a> (e.g. selenium-2.36.tar.gz), unarchive it, and run:</p>
90+
<p>Alternately, you can download the source distribution from <a class="reference external" href="http://pypi.python.org/pypi/selenium">PyPI</a> (e.g. selenium-2.37.tar.gz), unarchive it, and run:</p>
9191
<div class="highlight-python"><pre>python setup.py install</pre>
9292
</div>
9393
<p>Note: both of the methods described above install <cite>selenium</cite> as a system-wide package That will require administrative/root access to ther machine. You may consider using a <a class="reference external" href="http://www.virtualenv.org/">virtualenv</a> to create isolated Python environments instead.</p>
@@ -113,18 +113,19 @@ <h2>Example 1:<a class="headerlink" href="#example-1" title="Permalink to this h
113113
<li>search for &#8220;seleniumhq&#8221;</li>
114114
<li>close the browser</li>
115115
</ul>
116-
<div class="highlight-python"><pre>from selenium import webdriver
117-
from selenium.webdriver.common.keys import Keys
116+
<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">selenium</span> <span class="kn">import</span> <span class="n">webdriver</span>
117+
<span class="kn">from</span> <span class="nn">selenium.webdriver.common.keys</span> <span class="kn">import</span> <span class="n">Keys</span>
118118

119-
browser = webdriver.Firefox()
119+
<span class="n">browser</span> <span class="o">=</span> <span class="n">webdriver</span><span class="o">.</span><span class="n">Firefox</span><span class="p">()</span>
120120

121-
browser.get('http://www.yahoo.com)
122-
assert 'Yahoo!' in browser.title
121+
<span class="n">browser</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s">&#39;http://www.yahoo.com&#39;</span><span class="p">)</span>
122+
<span class="k">assert</span> <span class="s">&#39;Yahoo!&#39;</span> <span class="ow">in</span> <span class="n">browser</span><span class="o">.</span><span class="n">title</span>
123123

124-
elem = browser.find_element_by_name('p') # Find the search box
125-
elem.send_keys('seleniumhq' + Keys.RETURN)
124+
<span class="n">elem</span> <span class="o">=</span> <span class="n">browser</span><span class="o">.</span><span class="n">find_element_by_name</span><span class="p">(</span><span class="s">&#39;p&#39;</span><span class="p">)</span> <span class="c"># Find the search box</span>
125+
<span class="n">elem</span><span class="o">.</span><span class="n">send_keys</span><span class="p">(</span><span class="s">&#39;seleniumhq&#39;</span> <span class="o">+</span> <span class="n">Keys</span><span class="o">.</span><span class="n">RETURN</span><span class="p">)</span>
126126

127-
browser.quit()</pre>
127+
<span class="n">browser</span><span class="o">.</span><span class="n">quit</span><span class="p">()</span>
128+
</pre></div>
128129
</div>
129130
</div>
130131
<div class="section" id="example-2">
@@ -151,9 +152,9 @@ <h2>Example 2:<a class="headerlink" href="#example-2" title="Permalink to this h
151152
<h2>Selenium Server (optional)<a class="headerlink" href="#selenium-server-optional" title="Permalink to this headline"></a></h2>
152153
<p>For normal WebDriver scripts (non-Remote), the Java server is not needed.</p>
153154
<p>However, to use Selenium Webdriver Remote or the legacy Selenium API (Selenium-RC), you need to also run the Selenium server. The server requires a Java Runtime Environment (JRE).</p>
154-
<p>Download the server separately, from: <a class="reference external" href="http://selenium.googlecode.com/files/selenium-server-standalone-2.36.0.jar">http://selenium.googlecode.com/files/selenium-server-standalone-2.36.0.jar</a></p>
155+
<p>Download the server separately, from: <a class="reference external" href="http://selenium.googlecode.com/files/selenium-server-standalone-2.37.0.jar">http://selenium.googlecode.com/files/selenium-server-standalone-2.37.0.jar</a></p>
155156
<p>Run the server from the command line:</p>
156-
<div class="highlight-python"><pre>java -jar selenium-server-standalone-2.36.0.jar</pre>
157+
<div class="highlight-python"><pre>java -jar selenium-server-standalone-2.37.0.jar</pre>
157158
</div>
158159
<p>Then run your Python client scripts.</p>
159160
</div>

docs/api/py/objects.inv

20 Bytes
Binary file not shown.

docs/api/py/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)