-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathselenium-core.t
163 lines (160 loc) · 6.17 KB
/
selenium-core.t
1
2
3
4
5
6
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
#!/usr/bin/perl
use strict;
use warnings;
use Test::More qw/no_plan/;
BEGIN {
use lib 't/lib';
use_ok 'LWP::UserAgent'; # mocked
use_ok 'HTTP::Response'; # mocked
use lib 'lib';
use t::WWW::Selenium;
}
my $sel = t::WWW::Selenium->new;
isa_ok $sel, 't::WWW::Selenium';
$sel->open;
$sel->_method_exists("click");
$sel->_method_exists("double_click");
$sel->_method_exists("context_menu");
$sel->_method_exists("click_at");
$sel->_method_exists("double_click_at");
$sel->_method_exists("context_menu_at");
$sel->_method_exists("fire_event");
$sel->_method_exists("focus");
$sel->_method_exists("key_press");
$sel->_method_exists("shift_key_down");
$sel->_method_exists("shift_key_up");
$sel->_method_exists("meta_key_down");
$sel->_method_exists("meta_key_up");
$sel->_method_exists("alt_key_down");
$sel->_method_exists("alt_key_up");
$sel->_method_exists("control_key_down");
$sel->_method_exists("control_key_up");
$sel->_method_exists("key_down");
$sel->_method_exists("key_up");
$sel->_method_exists("mouse_over");
$sel->_method_exists("mouse_out");
$sel->_method_exists("mouse_down");
$sel->_method_exists("mouse_down_right");
$sel->_method_exists("mouse_down_at");
$sel->_method_exists("mouse_down_right_at");
$sel->_method_exists("mouse_up");
$sel->_method_exists("mouse_up_right");
$sel->_method_exists("mouse_up_at");
$sel->_method_exists("mouse_up_right_at");
$sel->_method_exists("mouse_move");
$sel->_method_exists("mouse_move_at");
$sel->_method_exists("type");
$sel->_method_exists("type_keys");
$sel->_method_exists("set_speed");
$sel->_method_exists("get_speed");
$sel->_method_exists("check");
$sel->_method_exists("uncheck");
$sel->_method_exists("select");
$sel->_method_exists("add_selection");
$sel->_method_exists("remove_selection");
$sel->_method_exists("remove_all_selections");
$sel->_method_exists("submit");
$sel->_method_exists("open");
$sel->_method_exists("open_window");
$sel->_method_exists("select_window");
$sel->_method_exists("select_pop_up");
$sel->_method_exists("deselect_pop_up");
$sel->_method_exists("select_frame");
$sel->_method_exists("get_whether_this_frame_match_frame_expression");
$sel->_method_exists("get_whether_this_window_match_window_expression");
$sel->_method_exists("wait_for_pop_up");
$sel->_method_exists("choose_cancel_on_next_confirmation");
$sel->_method_exists("choose_ok_on_next_confirmation");
$sel->_method_exists("answer_on_next_prompt");
$sel->_method_exists("go_back");
$sel->_method_exists("refresh");
$sel->_method_exists("close");
$sel->_method_exists("is_alert_present");
$sel->_method_exists("is_prompt_present");
$sel->_method_exists("is_confirmation_present");
$sel->_method_exists("get_alert");
$sel->_method_exists("get_confirmation");
$sel->_method_exists("get_prompt");
$sel->_method_exists("get_location");
$sel->_method_exists("get_title");
$sel->_method_exists("get_body_text");
$sel->_method_exists("get_value");
$sel->_method_exists("get_text");
$sel->_method_exists("highlight");
$sel->_method_exists("get_eval");
$sel->_method_exists("is_checked");
$sel->_method_exists("get_table");
$sel->_method_exists("get_selected_labels");
$sel->_method_exists("get_selected_label");
$sel->_method_exists("get_selected_values");
$sel->_method_exists("get_selected_value");
$sel->_method_exists("get_selected_indexes");
$sel->_method_exists("get_selected_index");
$sel->_method_exists("get_selected_ids");
$sel->_method_exists("get_selected_id");
$sel->_method_exists("is_something_selected");
$sel->_method_exists("get_select_options");
$sel->_method_exists("get_attribute");
$sel->_method_exists("is_text_present");
$sel->_method_exists("is_element_present");
$sel->_method_exists("is_visible");
$sel->_method_exists("is_editable");
$sel->_method_exists("get_all_buttons");
$sel->_method_exists("get_all_links");
$sel->_method_exists("get_all_fields");
$sel->_method_exists("get_attribute_from_all_windows");
$sel->_method_exists("dragdrop");
$sel->_method_exists("set_mouse_speed");
$sel->_method_exists("get_mouse_speed");
$sel->_method_exists("drag_and_drop");
$sel->_method_exists("drag_and_drop_to_object");
$sel->_method_exists("window_focus");
$sel->_method_exists("window_maximize");
$sel->_method_exists("get_all_window_ids");
$sel->_method_exists("get_all_window_names");
$sel->_method_exists("get_all_window_titles");
$sel->_method_exists("get_html_source");
$sel->_method_exists("set_cursor_position");
$sel->_method_exists("get_element_index");
$sel->_method_exists("is_ordered");
$sel->_method_exists("get_element_position_left");
$sel->_method_exists("get_element_position_top");
$sel->_method_exists("get_element_width");
$sel->_method_exists("get_element_height");
$sel->_method_exists("get_cursor_position");
$sel->_method_exists("get_expression");
$sel->_method_exists("get_xpath_count");
$sel->_method_exists("get_css_count");
$sel->_method_exists("assign_id");
$sel->_method_exists("allow_native_xpath");
$sel->_method_exists("ignore_attributes_without_value");
$sel->_method_exists("wait_for_condition");
$sel->_method_exists("set_timeout");
$sel->_method_exists("wait_for_page_to_load");
$sel->_method_exists("wait_for_frame_to_load");
$sel->_method_exists("get_cookie");
$sel->_method_exists("get_cookie_by_name");
$sel->_method_exists("is_cookie_present");
$sel->_method_exists("create_cookie");
$sel->_method_exists("delete_cookie");
$sel->_method_exists("delete_all_visible_cookies");
$sel->_method_exists("set_browser_log_level");
$sel->_method_exists("run_script");
$sel->_method_exists("add_location_strategy");
$sel->_method_exists("capture_entire_page_screenshot");
$sel->_method_exists("rollup");
$sel->_method_exists("add_script");
$sel->_method_exists("remove_script");
$sel->_method_exists("use_xpath_library");
$sel->_method_exists("set_context");
$sel->_method_exists("attach_file");
$sel->_method_exists("capture_screenshot");
$sel->_method_exists("capture_screenshot_to_string");
$sel->_method_exists("capture_entire_page_screenshot_to_string");
$sel->_method_exists("shut_down_selenium_server");
$sel->_method_exists("retrieve_last_remote_control_logs");
$sel->_method_exists("key_down_native");
$sel->_method_exists("key_up_native");
$sel->_method_exists("key_press_native");
$sel->_method_exists("wait_for_text_present");
$sel->_method_exists("wait_for_element_present");