1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.internal.actions.drag</title> 4<meta charset="utf-8"> 5</head><body bgcolor="#f0f0f8"> 6 7<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8<tr bgcolor="#7799ee"> 9<td valign=bottom> <br> 10<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.actions.html"><font color="#ffffff">actions</font></a>.drag</strong></big></big></font></td 11><td align=right valign=bottom 12><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/actions/drag.py">telemetry/internal/actions/drag.py</a></font></td></tr></table> 13 <p><tt>A Telemetry page_action that performs the "drag" action on pages.<br> 14 <br> 15Action parameters are:<br> 16- selector: If no selector is defined then the action attempts to drag the<br> 17 document element on the page.<br> 18- element_function: CSS selector used to evaluate callback when test completes<br> 19- text: The element with exact text is selected.<br> 20- left_start_ratio: ratio of start point's left coordinate to the element<br> 21 width.<br> 22- top_start_ratio: ratio of start point's top coordinate to the element height.<br> 23- left_end_ratio: ratio of end point's left coordinate to the element width.<br> 24- left_end_ratio: ratio of end point's top coordinate to the element height.<br> 25- speed_in_pixels_per_second: speed of the drag gesture in pixels per second.<br> 26- use_touch: boolean value to specify if gesture should use touch input or not.</tt></p> 27<p> 28<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 29<tr bgcolor="#aa55cc"> 30<td colspan=3 valign=bottom> <br> 31<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 32 33<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 34<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br> 35</td><td width="25%" valign=top><a href="telemetry.internal.actions.page_action.html">telemetry.internal.actions.page_action</a><br> 36</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 37<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 38<tr bgcolor="#ee77aa"> 39<td colspan=3 valign=bottom> <br> 40<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 41 42<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 43<td width="100%"><dl> 44<dt><font face="helvetica, arial"><a href="telemetry.internal.actions.page_action.html#PageAction">telemetry.internal.actions.page_action.PageAction</a>(<a href="__builtin__.html#object">__builtin__.object</a>) 45</font></dt><dd> 46<dl> 47<dt><font face="helvetica, arial"><a href="telemetry.internal.actions.drag.html#DragAction">DragAction</a> 48</font></dt></dl> 49</dd> 50</dl> 51 <p> 52<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 53<tr bgcolor="#ffc8d8"> 54<td colspan=3 valign=bottom> <br> 55<font color="#000000" face="helvetica, arial"><a name="DragAction">class <strong>DragAction</strong></a>(<a href="telemetry.internal.actions.page_action.html#PageAction">telemetry.internal.actions.page_action.PageAction</a>)</font></td></tr> 56 57<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 58<td width="100%"><dl><dt>Method resolution order:</dt> 59<dd><a href="telemetry.internal.actions.drag.html#DragAction">DragAction</a></dd> 60<dd><a href="telemetry.internal.actions.page_action.html#PageAction">telemetry.internal.actions.page_action.PageAction</a></dd> 61<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 62</dl> 63<hr> 64Methods defined here:<br> 65<dl><dt><a name="DragAction-RunAction"><strong>RunAction</strong></a>(self, tab)</dt></dl> 66 67<dl><dt><a name="DragAction-WillRunAction"><strong>WillRunAction</strong></a>(self, tab)</dt></dl> 68 69<dl><dt><a name="DragAction-__init__"><strong>__init__</strong></a>(self, selector<font color="#909090">=None</font>, text<font color="#909090">=None</font>, element_function<font color="#909090">=None</font>, left_start_ratio<font color="#909090">=None</font>, top_start_ratio<font color="#909090">=None</font>, left_end_ratio<font color="#909090">=None</font>, top_end_ratio<font color="#909090">=None</font>, speed_in_pixels_per_second<font color="#909090">=800</font>, use_touch<font color="#909090">=False</font>, synthetic_gesture_source<font color="#909090">='DEFAULT'</font>)</dt></dl> 70 71<hr> 72Methods inherited from <a href="telemetry.internal.actions.page_action.html#PageAction">telemetry.internal.actions.page_action.PageAction</a>:<br> 73<dl><dt><a name="DragAction-CleanUp"><strong>CleanUp</strong></a>(self, tab)</dt></dl> 74 75<hr> 76Data descriptors inherited from <a href="telemetry.internal.actions.page_action.html#PageAction">telemetry.internal.actions.page_action.PageAction</a>:<br> 77<dl><dt><strong>__dict__</strong></dt> 78<dd><tt>dictionary for instance variables (if defined)</tt></dd> 79</dl> 80<dl><dt><strong>__weakref__</strong></dt> 81<dd><tt>list of weak references to the object (if defined)</tt></dd> 82</dl> 83</td></tr></table></td></tr></table> 84</body></html>