Selenium-Automation-Template/docs/core.utils.Browser.html

32 lines
1.8 KiB
HTML
Raw Normal View History

2020-04-11 20:39:42 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: class Browser</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><strong>core.utils.Browser</strong> = <a name="core.utils.Browser">class Browser</a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>The&nbsp;Browser&nbsp;allows&nbsp;us&nbsp;to&nbsp;bring&nbsp;in&nbsp;selenium&nbsp;driver&nbsp;(a.k.a&nbsp;browser)&nbsp;related&nbsp;objects<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Browser-get_browser"><strong>get_browser</strong></a>(self, browserType=None, headless=None)</dt><dd><tt>Construct&nbsp;new&nbsp;selenium&nbsp;driver&nbsp;(a.k.a&nbsp;browser&nbsp;object)<br>
Sets&nbsp;the&nbsp;"self.<strong>driver</strong>"&nbsp;in&nbsp;Context&nbsp;object.<br>
:note:&nbsp;Should&nbsp;consider&nbsp;creating&nbsp;methods&nbsp;per&nbsp;browser&nbsp;type.<br>
:param&nbsp;browserType:&nbsp;The&nbsp;browser&nbsp;we&nbsp;want&nbsp;to&nbsp;use<br>
:param&nbsp;headless:&nbsp;If&nbsp;we&nbsp;have&nbsp;a&nbsp;gui&nbsp;or&nbsp;not<br>
&nbsp;<br>
:return:&nbsp;the&nbsp;selenium&nbsp;browser&nbsp;driver</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table>
</body></html>