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