selenium-webdriver 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/jobbie/src/rb/lib/selenium/webdriver/ie/lib.rb +93 -89
- metadata +1 -1
@@ -1,94 +1,98 @@
|
|
1
|
-
module Selenium
|
2
|
-
module
|
3
|
-
|
1
|
+
module Selenium
|
2
|
+
module WebDriver
|
3
|
+
module IE
|
4
|
+
module Lib
|
5
|
+
extend FFI::Library
|
4
6
|
|
5
|
-
|
7
|
+
ffi_lib WebDriver::IE::DLL
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
9
|
+
attach_function :wdAddBooleanScriptArg, [:pointer, :int ], :int
|
10
|
+
attach_function :wdAddCookie, [:pointer, :pointer ], :int
|
11
|
+
attach_function :wdAddDoubleScriptArg, [:pointer, :double ], :int
|
12
|
+
attach_function :wdAddElementScriptArg, [:pointer, :pointer ], :int
|
13
|
+
attach_function :wdAddNumberScriptArg, [:pointer, :long ], :int
|
14
|
+
attach_function :wdAddStringScriptArg, [:pointer, :pointer ], :int
|
15
|
+
attach_function :wdcGetElementAtIndex, [:pointer, :int, :pointer ], :int
|
16
|
+
attach_function :wdcGetElementCollectionLength, [:pointer, :pointer ], :int
|
17
|
+
attach_function :wdcGetStringAtIndex, [:pointer, :int, :pointer ], :int
|
18
|
+
attach_function :wdcGetStringCollectionLength, [:pointer, :pointer ], :int
|
19
|
+
attach_function :wdClose, [:pointer ], :int
|
20
|
+
attach_function :wdCopyString, [:pointer, :int, :pointer ], :int
|
21
|
+
attach_function :wdeClear, [:pointer ], :int
|
22
|
+
attach_function :wdeClick, [:pointer ], :int
|
23
|
+
attach_function :wdeGetAttribute, [:pointer, :pointer, :pointer ], :int
|
24
|
+
attach_function :wdeGetDetailsOnceScrolledOnToScreen, [:pointer, :pointer, :pointer, :pointer, :pointer, :pointer ], :int
|
25
|
+
attach_function :wdeGetLocation, [:pointer, :pointer, :pointer ], :int
|
26
|
+
attach_function :wdeGetSize, [:pointer, :pointer, :pointer ], :int
|
27
|
+
attach_function :wdeGetTagName, [:pointer, :pointer ], :int
|
28
|
+
attach_function :wdeGetText, [:pointer, :pointer ], :int
|
29
|
+
attach_function :wdeGetValueOfCssProperty, [:pointer, :pointer, :pointer ], :int
|
30
|
+
attach_function :wdeIsDisplayed, [:pointer, :pointer ], :int
|
31
|
+
attach_function :wdeIsEnabled, [:pointer, :pointer ], :int
|
32
|
+
attach_function :wdeIsSelected, [:pointer, :pointer ], :int
|
33
|
+
attach_function :wdeMouseDownAt, [:pointer, :long, :long ], :int #hwnd, nativelong
|
34
|
+
attach_function :wdeMouseMoveTo, [:pointer, :long, :long, :long, :long, :long ], :int # hwnd, 5x nativelong
|
35
|
+
attach_function :wdeMouseUpAt, [:pointer, :long, :long ], :int # hwnd
|
36
|
+
attach_function :wdeSendKeys, [:pointer, :pointer ], :int
|
37
|
+
attach_function :wdeSetSelected, [:pointer ], :int
|
38
|
+
attach_function :wdeSubmit, [:pointer ], :int
|
39
|
+
attach_function :wdeToggle, [:pointer, :pointer ], :int
|
40
|
+
attach_function :wdExecuteScript, [:pointer, :pointer, :pointer, :pointer ], :int
|
41
|
+
attach_function :wdeFreeElement, [:pointer ], :int
|
42
|
+
attach_function :wdFindElementByClassName, [:pointer, :pointer, :pointer, :pointer ], :int
|
43
|
+
attach_function :wdFindElementById, [:pointer, :pointer, :pointer, :pointer ], :int
|
44
|
+
attach_function :wdFindElementByLinkText, [:pointer, :pointer, :pointer, :pointer ], :int
|
45
|
+
attach_function :wdFindElementByName, [:pointer, :pointer, :pointer, :pointer ], :int
|
46
|
+
attach_function :wdFindElementByPartialLinkText, [:pointer, :pointer, :pointer, :pointer ], :int
|
47
|
+
attach_function :wdFindElementByTagName, [:pointer, :pointer, :pointer, :pointer ], :int
|
48
|
+
attach_function :wdFindElementByXPath, [:pointer, :pointer, :pointer, :pointer ], :int
|
49
|
+
attach_function :wdFindElementsByClassName, [:pointer, :pointer, :pointer, :pointer ], :int
|
50
|
+
attach_function :wdFindElementsById, [:pointer, :pointer, :pointer, :pointer ], :int
|
51
|
+
attach_function :wdFindElementsByLinkText, [:pointer, :pointer, :pointer, :pointer ], :int
|
52
|
+
attach_function :wdFindElementsByName, [:pointer, :pointer, :pointer, :pointer ], :int
|
53
|
+
attach_function :wdFindElementsByPartialLinkText, [:pointer, :pointer, :pointer, :pointer ], :int
|
54
|
+
attach_function :wdFindElementsByTagName, [:pointer, :pointer, :pointer, :pointer ], :int
|
55
|
+
attach_function :wdFindElementsByXPath, [:pointer, :pointer, :pointer, :pointer ], :int
|
56
|
+
attach_function :wdFreeDriver, [:pointer ], :int
|
57
|
+
attach_function :wdFreeElementCollection, [:pointer, :int ], :int
|
58
|
+
attach_function :wdFreeScriptArgs, [:pointer ], :int
|
59
|
+
attach_function :wdFreeScriptResult, [:pointer ], :int
|
60
|
+
attach_function :wdFreeString, [:pointer ], :int
|
61
|
+
attach_function :wdFreeStringCollection, [:pointer ], :int
|
62
|
+
attach_function :wdGet, [:pointer, :pointer ], :int
|
63
|
+
attach_function :wdGetAllWindowHandles, [:pointer, :pointer ], :int
|
64
|
+
attach_function :wdGetBooleanScriptResult, [:pointer, :pointer ], :int
|
65
|
+
attach_function :wdGetCookies, [:pointer, :pointer ], :int
|
66
|
+
attach_function :wdGetCurrentUrl, [:pointer, :pointer ], :int
|
67
|
+
attach_function :wdGetCurrentWindowHandle, [:pointer, :pointer ], :int
|
68
|
+
attach_function :wdGetDoubleScriptResult, [:pointer, :pointer ], :int
|
69
|
+
attach_function :wdGetElementScriptResult, [:pointer, :pointer, :pointer ], :int
|
70
|
+
attach_function :wdGetNumberScriptResult, [:pointer, :pointer ], :int
|
71
|
+
attach_function :wdGetPageSource, [:pointer, :pointer ], :int
|
72
|
+
attach_function :wdGetScriptResultType, [:pointer, :pointer ], :int
|
73
|
+
attach_function :wdGetStringScriptResult, [:pointer, :pointer ], :int
|
74
|
+
attach_function :wdGetTitle, [:pointer, :pointer ], :int
|
75
|
+
attach_function :wdGetVisible, [:pointer, :pointer ], :int
|
76
|
+
attach_function :wdGoBack, [:pointer ], :int
|
77
|
+
attach_function :wdGoForward, [:pointer ], :int
|
78
|
+
attach_function :wdNewDriverInstance, [:pointer ], :int
|
79
|
+
attach_function :wdNewScriptArgs, [:pointer, :int ], :int
|
80
|
+
attach_function :wdSetVisible, [:pointer, :int ], :int
|
81
|
+
attach_function :wdStringLength, [:pointer, :pointer ], :int
|
82
|
+
attach_function :wdSwitchToActiveElement, [:pointer, :pointer ], :int
|
83
|
+
attach_function :wdSwitchToFrame, [:pointer, :pointer ], :int
|
84
|
+
attach_function :wdSwitchToWindow, [:pointer, :pointer ], :int
|
85
|
+
attach_function :wdWaitForLoadToComplete, [:pointer ], :int
|
86
|
+
end
|
85
87
|
|
86
|
-
|
87
|
-
|
88
|
+
module Kernel32
|
89
|
+
extend FFI::Library
|
88
90
|
|
89
|
-
|
91
|
+
ffi_lib "kernel32.dll"
|
90
92
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
end #
|
93
|
+
attach_function :MultiByteToWideChar, [:int, :long, :pointer, :int, :pointer, :int ], :int
|
94
|
+
attach_function :WideCharToMultiByte, [:int, :long, :pointer, :int, :pointer, :int, :pointer, :pointer], :int
|
95
|
+
end
|
96
|
+
end # IE
|
97
|
+
end # WebDriver
|
98
|
+
end # Selenium
|