Module: Lebowski::Runtime::SproutCoreExtensions

Includes:
Lebowski
Included in:
SproutCoreDriver
Defined in:
lib/lebowski/runtime/sprout_core_extensions.rb

Constant Summary

HTTP_HEADERS =
{ 'Content-Type' => 'application/x-www-form-urlencoded; charset=utf-8' }
REMOTE_CONTROL_COMMAND_TIMEOUT =
/^timed out after/i

Instance Method Summary (collapse)

Instance Method Details

- (Object) __sc_test_computing_property_path(key, path)

Selenium User Extensions Testing/Debugging Calls



542
543
544
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 542

def __sc_test_computing_property_path(key, path)
  __remote_control_command("scTestComputePropertyPath", [key.to_s, path,])
end

- (Object) __sc_test_object_array_lookup(key, path, lookup)



556
557
558
559
560
561
562
563
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 556

def __sc_test_object_array_lookup(key, path, lookup)
  params = ObjectEncoder.encode_hash({
    :key => key.to_s,
    :path => path,
    :lookup => lookup,
  })
  __remote_control_command("scTestObjectArrayLookup", [params,])
end

- (Object) __sc_test_sending_encoded_array(key, array)



551
552
553
554
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 551

def __sc_test_sending_encoded_array(key, array)
  str = ObjectEncoder.encode_array(array)
  __remote_control_command("scTestDecodingEncodedArray", [key.to_s, str,])
end

- (Object) __sc_test_sending_encoded_hash(key, hash)



546
547
548
549
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 546

def __sc_test_sending_encoded_hash(key, hash)
  str = ObjectEncoder.encode_hash(hash)
  __remote_control_command("scTestDecodingEncodedHash", [key.to_s, str,])
end

- (Object) get_css_selector_count(selector)



476
477
478
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 476

def get_css_selector_count(selector)
  return __number_command("getCssSelectorCount", [selector, ])
end

- (Object) get_element_child_nodes_count(selector, index)



532
533
534
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 532

def get_element_child_nodes_count(selector, index)
  return __number_command("getElementChildNodesCount", [selector, index])
end

- (Object) get_element_tag_name(selector, index)



528
529
530
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 528

def get_element_tag_name(selector, index)
  return __string_command("getElementTagName", [selector, index,])
end

- (Object) get_sc_collection_view_content_disclosure_state(scpath, index)



371
372
373
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 371

def get_sc_collection_view_content_disclosure_state(scpath, index)
  return __number_command("getScCollectionViewContentDisclosureState", [scpath, index,])
end

- (Object) get_sc_collection_view_content_group_indexes(scpath)

SC Collection View Selenium Calls



351
352
353
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 351

def get_sc_collection_view_content_group_indexes(scpath)
  return __number_array_command("getScCollectionViewContentGroupIndexes", [scpath,])
end

- (Object) get_sc_collection_view_content_is_group(scpath, index)



367
368
369
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 367

def get_sc_collection_view_content_is_group(scpath, index)
  return __boolean_command("getScCollectionViewContentIsGroup", [scpath, index,])
end

- (Object) get_sc_collection_view_content_is_selected(scpath, index)



363
364
365
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 363

def get_sc_collection_view_content_is_selected(scpath, index)
  return __boolean_command("getScCollectionViewContentIsSelected", [scpath, index,])
end

- (Object) get_sc_collection_view_content_now_showing_indexes(scpath)



359
360
361
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 359

def get_sc_collection_view_content_now_showing_indexes(scpath)
  return __number_array_command("getScCollectionViewContentNowShowingIndexes", [scpath,])
end

- (Object) get_sc_collection_view_content_outline_level(scpath, index)



375
376
377
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 375

def get_sc_collection_view_content_outline_level(scpath, index)
  return __number_command("getScCollectionViewContentOutlineLevel", [scpath, index,])
end

- (Object) get_sc_collection_view_content_selected_indexes(scpath)



355
356
357
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 355

def get_sc_collection_view_content_selected_indexes(scpath)
  return __number_array_command("getScCollectionViewContentSelectedIndexes", [scpath,])
end

- (Object) get_sc_core_query(scpath, selector)



321
322
323
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 321

def get_sc_core_query(scpath, selector)
  return __number_command("getScCoreQuery", [scpath, selector])
end

- (Object) get_sc_core_query_element_attribute(handle, elemIndex, attribute)



337
338
339
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 337

def get_sc_core_query_element_attribute(handle, elemIndex, attribute)
  return __string_command("getScCoreQueryElementAttribute", [handle, "#{elemIndex}:#{attribute}",])
end

- (Object) get_sc_core_query_element_classes(handle, elemIndex)



329
330
331
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 329

def get_sc_core_query_element_classes(handle, elemIndex)
  return __string_command("getScCoreQueryElementClasses", [handle, elemIndex,])
end

- (Object) get_sc_core_query_element_html(handle, elemIndex)



333
334
335
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 333

def get_sc_core_query_element_html(handle, elemIndex)
  return __string_command("getScCoreQueryElementHTML", [handle, elemIndex,])
end

- (Object) get_sc_core_query_element_tag(handle, elemIndex)



345
346
347
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 345

def get_sc_core_query_element_tag(handle, elemIndex)
  return __string_command("getScCoreQueryElementTag", [handle, elemIndex,])
end

- (Object) get_sc_core_query_element_text(handle, elemIndex)



341
342
343
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 341

def get_sc_core_query_element_text(handle, elemIndex)
  return __string_command("getScCoreQueryElementText", [handle, elemIndex,])
end

- (Object) get_sc_core_query_size(handle)



325
326
327
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 325

def get_sc_core_query_size(handle)
  return __number_command("getScCoreQuerySize", [handle,])
end

- (Object) get_sc_element_height(type, *params)



148
149
150
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 148

def get_sc_element_height(type, *params)
  return get_element_height(__locator(type, *params))
end

- (Object) get_sc_element_width(type, *params)



144
145
146
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 144

def get_sc_element_width(type, *params)
  return get_element_width(__locator(type, *params))
end

- (Lebowski::Coords) get_sc_element_window_position(type, *params)

Returns:



138
139
140
141
142
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 138

def get_sc_element_window_position(type, *params)
  value = __number_array_command("getScElementWindowPosition", [__locator(type, *params)])
  return nil if value.nil?
  return Coords.new(value[0], value[1])
end

- (Object) get_sc_guid(scpath)

SC Object Foundation Selenium Calls



36
37
38
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 36

def get_sc_guid(scpath)
  return __string_command("getScGuid", [scpath])
end

- (Object) get_sc_localized_string(str)



413
414
415
416
417
418
419
420
421
422
423
424
425
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 413

def get_sc_localized_string(str)
  if @localized_string_cache.nil?
    @localized_string_cache = {}
  end

  if @localized_string_cache.has_key?(str)
    return @localized_string_cache[str]
  else
    val = __string_command("getScLocalizedString", [str, ])
    @localized_string_cache[str] = val
    return val
  end
end

- (Object) get_sc_object_array_index_lookup(scpath, lookup_params)



404
405
406
407
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 404

def get_sc_object_array_index_lookup(scpath, lookup_params)
  encoded_params = ObjectEncoder.encode_hash(lookup_params)
  return __number_array_command("getScObjectArrayIndexLookup", [scpath, encoded_params])
end

- (Object) get_sc_object_class_name(scpath)



40
41
42
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 40

def get_sc_object_class_name(scpath)
  return __string_command("getScObjectClassName", [scpath])
end

- (Object) get_sc_object_class_names(scpath)



56
57
58
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 56

def get_sc_object_class_names(scpath)
  return __string_array_command("getScObjectClassNames", [scpath])
end

- (Object) get_sc_path_boolean_array_value(scpath)



82
83
84
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 82

def get_sc_path_boolean_array_value(scpath)
  return __boolean_array_command("getScPropertyValue", [scpath])
end

- (Object) get_sc_path_boolean_value(scpath)



70
71
72
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 70

def get_sc_path_boolean_value(scpath)
  return __boolean_command("getScPropertyValue", [scpath])
end

- (Object) get_sc_path_number_array_value(scpath)



78
79
80
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 78

def get_sc_path_number_array_value(scpath)
  return __number_array_command("getScPropertyValue", [scpath])
end

- (Object) get_sc_path_number_value(scpath)



66
67
68
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 66

def get_sc_path_number_value(scpath)
  return __number_command("getScPropertyValue", [scpath])
end

- (Object) get_sc_path_string_array_value(scpath)



74
75
76
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 74

def get_sc_path_string_array_value(scpath)
  return __string_array_command("getScPropertyValue", [scpath])
end

- (Object) get_sc_path_string_value(scpath)

SC Object Property Selenium Calls



62
63
64
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 62

def get_sc_path_string_value(scpath)
  return __string_command("getScPropertyValue", [scpath])
end

- (Object) get_sc_property_array_value(scpath, property)



105
106
107
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 105

def get_sc_property_array_value(scpath, property)
  return get_sc_property_string_array_value(scpath, property)
end

- (Object) get_sc_property_boolean_array_value(scpath, property)



119
120
121
122
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 119

def get_sc_property_boolean_array_value(scpath, property)
  full_path = "#{scpath}.#{property}"
  return __boolean_array_command("getScPropertyValue", [full_path,])
end

- (Object) get_sc_property_boolean_value(scpath, property)



95
96
97
98
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 95

def get_sc_property_boolean_value(scpath, property)
  full_path = "#{scpath}.#{property}"
  return __boolean_command("getScPropertyValue", [full_path,])
end

- (Object) get_sc_property_number_array_value(scpath, property)



114
115
116
117
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 114

def get_sc_property_number_array_value(scpath, property)
  full_path = "#{scpath}.#{property}"
  return __number_array_command("getScPropertyValue", [full_path,])
end

- (Object) get_sc_property_number_value(scpath, property)



100
101
102
103
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 100

def get_sc_property_number_value(scpath, property)
  full_path = "#{scpath}.#{property}"
  return __number_command("getScPropertyValue", [full_path,])
end

- (Object) get_sc_property_string_array_value(scpath, property)



109
110
111
112
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 109

def get_sc_property_string_array_value(scpath, property)
  full_path = "#{scpath}.#{property}"
  return __string_array_command("getScPropertyValue", [full_path,])
end

- (Object) get_sc_property_string_value(scpath, property)



90
91
92
93
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 90

def get_sc_property_string_value(scpath, property)
  full_path = "#{scpath}.#{property}"
  return __string_command("getScPropertyValue", [full_path,])
end

- (Object) get_sc_property_value(scpath, property)



86
87
88
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 86

def get_sc_property_value(scpath, property)
  return get_sc_property_string_value(scpath, property)
end

- (Object) get_sc_scrollable_parent_view_layer_id(path)



536
537
538
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 536

def get_sc_scrollable_parent_view_layer_id(path)
  return __string_command("getScScrollableParentViewLayerId", [path])
end

- (Object) get_sc_selection_set_indexes(scpath)



409
410
411
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 409

def get_sc_selection_set_indexes(scpath)
  return __number_array_command("getScSelectSetIndexes", [scpath, ])
end

- (Object) get_sc_type_of(scpath)



48
49
50
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 48

def get_sc_type_of(scpath)
  return __string_command("getScTypeOf", [scpath])
end

- (Object) get_sc_type_of_array_content(scpath)



52
53
54
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 52

def get_sc_type_of_array_content(scpath)
  return __string_command("getScTypeOfArrayContent", [scpath])
end

- (Object) get_sc_view_child_view_count(scpath)



152
153
154
155
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 152

def get_sc_view_child_view_count(scpath)
  full_path = "#{scpath}.childViews.length"
  return __number_command("getScPropertyValue", [full_path, ])
end

- (Lebowski::Rect) get_sc_view_frame(scpath)

Returns:



131
132
133
134
135
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 131

def get_sc_view_frame(scpath)
  value = __number_array_command("getScViewFrame", [scpath])
  return nil if value.nil?
  return Rect.new(value[0], value[1], value[2], value[3])
end

- (Object) get_sc_view_layer(scpath)

SC View Object Foundation Selenium Calls



126
127
128
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 126

def get_sc_view_layer(scpath)
  return string_command("getScViewLayer", [scpath, ])
end

- (Object) initialize_sc_selenium_extension(timeout)



22
23
24
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 22

def initialize_sc_selenium_extension(timeout)
  __remote_control_command("initializeScSeleniumExtension", [timeout,])
end

- (Object) is_sc_bundle_loaded(bundle)



400
401
402
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 400

def is_sc_bundle_loaded(bundle) 
  return __boolean_command("isScBundleLoaded", [bundle])
end

- (Object) is_sc_object_kind_of_class(scpath, klass)



44
45
46
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 44

def is_sc_object_kind_of_class(scpath, klass)
  return __boolean_command("isScObjectKindOfClass", [scpath, klass])
end

- (Boolean) is_sc_opened_window?(locator_type, locator_value)

Returns:

  • (Boolean)


454
455
456
457
458
459
460
461
462
463
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 454

def is_sc_opened_window?(locator_type, locator_value)
  hash = {
    :locatorType => locator_type,
    :locatorValue => locator_value
  }
  
  encoded_hash = ObjectEncoder.encode_hash(hash)
  
  return __boolean_command("isScOpenedWindow", [encoded_hash])
end

- (Boolean) key_down?(key)

Returns:

  • (Boolean)


282
283
284
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 282

def key_down?(key)
  return __key_pressed?(key)
end

- (Boolean) key_up?(key)

Returns:

  • (Boolean)


286
287
288
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 286

def key_up?(key)
  return (not __key_pressed?(key))
end

- (Object) open_sc_application(app_root_path, timeout = nil)



26
27
28
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 26

def open_sc_application(app_root_path, timeout=nil) 
  __remote_control_command("openScApplication", [app_root_path, timeout])
end

- (Object) range_delete_content(*params)



496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 496

def range_delete_content(*params)
  hash = nil
  
  if params.length == 0 
    raise ArgumentError.new "no parameters were supplied"
  end
  
  if params[0].kind_of? Hash
    hash = params[0]
  end
    
  encoded_hash = ObjectEncoder.encode_hash(hash)
  
  __remote_control_command("rangeDeleteContent", [encoded_hash])
end

- (Object) range_insert_content(*params)



512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 512

def range_insert_content(*params) 
  hash = nil
  
  if params.length == 0 
    raise ArgumentError.new "no parameters were supplied"
  end
  
  if params[0].kind_of? Hash
    hash = params[0]
  end
    
  encoded_hash = ObjectEncoder.encode_hash(hash)
  
  __remote_control_command("rangeInsertContent", [encoded_hash])
end

- (Object) sc_basic_click(type, *params)



220
221
222
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 220

def sc_basic_click(type, *params)
  __remote_control_command("click", [__locator(type, *params), ])
end

- (Object) sc_click(type, *params)



224
225
226
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 224

def sc_click(type, *params)
  __remote_control_command("scClick", [__locator(type, *params), ])
end

- (Object) sc_close_opened_window(locator_type, locator_value)



465
466
467
468
469
470
471
472
473
474
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 465

def sc_close_opened_window(locator_type, locator_value)
  hash = {
    :locatorType => locator_type,
    :locatorValue => locator_value
  }
  
  encoded_hash = ObjectEncoder.encode_hash(hash)
  
  return __boolean_command("scCloseOpenedWindow", [encoded_hash])
end

- (Object) sc_core_query_done(handle)

SC Core Query Selenium Calls



317
318
319
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 317

def sc_core_query_done(handle)
  __remote_control_command("scCoreQueryDone", [handle,])
end

- (Object) sc_disable_all_autoscrolling

Disables all autoscrolling when performing a drag and drop operation within a SproutCore Application. Call this when you don't want autoscrolling to interfere with some user action.

See Also:

  • sc_disable_all_autoscrolling


387
388
389
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 387

def sc_disable_all_autoscrolling
  __remote_control_command("scDisableAllAutoscrolling")
end

- (Object) sc_double_click_at(type, x, y, *params)



215
216
217
218
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 215

def sc_double_click_at(type, x, y, *params)
  encoded_params = ObjectEncoder.encode_hash({ :x => x, :y => y })
  __remote_control_command("scDoubleClickAt", [__locator(type, *params), encoded_params])
end

- (Object) sc_enable_all_autoscrolling

Used to enable all autoscrolling. Call this after you have completed a user action that you did not want autoscrolling to intefere with.

See Also:

  • sc_disable_all_autoscrolling


396
397
398
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 396

def sc_enable_all_autoscrolling
  __remote_control_command("scEnableAllAutoscrolling")
end

- (Object) sc_enable_mouse_move_event



240
241
242
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 240

def sc_enable_mouse_move_event()
  __remote_control_command("scEnableMouseMoveEvent", [])
end

- (Object) sc_focus(type, *params)



244
245
246
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 244

def sc_focus(type, *params)
  __remote_control_command("focus", [__locator(type, *params), ])
end

- (Object) sc_key_down(type, key, *params)



248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 248

def sc_key_down(type, key, *params)
  if key == :meta_key
    meta_key_down
  elsif key == :alt_key
    alt_key_down
  elsif key == :ctrl_key
    control_key_down
  elsif key == :shift_key
    shift_key_down
  elsif key.kind_of? Symbol
    __remote_control_command("scFunctionKeyDown", [__locator(type, *params), key.to_s])
  else
    __remote_control_command("scKeyDown", [__locator(type, *params), key])
  end
  __register_key_as_down(key)
end

- (Object) sc_key_up(type, key, *params)



265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 265

def sc_key_up(type, key, *params)
  if key == :meta_key
    meta_key_up
  elsif key == :alt_key
    alt_key_up
  elsif key == :ctrl_key
    control_key_up
  elsif key == :shift_key
    shift_key_up
  elsif key.kind_of? Symbol
    __remote_control_command("scFunctionKeyUp", [__locator(type, *params), key.to_s])
  else
    __remote_control_command("scKeyUp", [__locator(type, *params), key])
  end
  __register_key_as_up(key)
end

- (Object) sc_mouse_down(type, *params)



174
175
176
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 174

def sc_mouse_down(type, *params)
  __remote_control_command("scMouseDown", [__locator(type, *params)])
end

- (Object) sc_mouse_down_at(type, x, y, *params)



195
196
197
198
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 195

def sc_mouse_down_at(type, x, y, *params)
  encoded_params = ObjectEncoder.encode_hash({ :x => x, :y => y })
  __remote_control_command("scMouseDownAt", [__locator(type, *params), encoded_params])
end

- (Object) sc_mouse_move(type, *params) Also known as: sc_mouse_enter, sc_mouse_exit



167
168
169
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 167

def sc_mouse_move(type, *params)
  __remote_control_command("mouseMove", [__locator(type, *params),])
end

- (Object) sc_mouse_move_at(type, x, y, *params)



190
191
192
193
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 190

def sc_mouse_move_at(type, x, y, *params)
  encoded_params = ObjectEncoder.encode_hash({ :x => x, :y => y })
  __remote_control_command("scMouseMoveAt", [__locator(type, *params), encoded_params])
end

- (Object) sc_mouse_up(type, *params)



178
179
180
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 178

def sc_mouse_up(type, *params)
  __remote_control_command("scMouseUp", [__locator(type, *params)])
end

- (Object) sc_mouse_up_at(type, x, y, *params)



200
201
202
203
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 200

def sc_mouse_up_at(type, x, y, *params)
  encoded_params = ObjectEncoder.encode_hash({ :x => x, :y => y })
  __remote_control_command("scMouseUpAt", [__locator(type, *params), encoded_params])
end

- (Object) sc_mouse_wheel_delta_x(type, delta, *params)



232
233
234
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 232

def sc_mouse_wheel_delta_x(type, delta, *params)
  __remote_control_command("scMouseWheelDeltaX", [__locator(type, *params), delta])
end

- (Object) sc_mouse_wheel_delta_y(type, delta, *params)



236
237
238
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 236

def sc_mouse_wheel_delta_y(type, delta, *params)
  __remote_control_command("scMouseWheelDeltaY", [__locator(type, *params), delta])
end

- (Object) sc_right_click(type, *params)



228
229
230
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 228

def sc_right_click(type, *params)
  __remote_control_command("scRightClick", [__locator(type, *params), ])
end

- (Object) sc_right_mouse_down(type, *params)



182
183
184
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 182

def sc_right_mouse_down(type, *params)
  __remote_control_command("scMouseDownRight", [__locator(type, *params)])
end

- (Object) sc_right_mouse_down_at(type, x, y, *params)



205
206
207
208
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 205

def sc_right_mouse_down_at(type, x, y, *params)
  encoded_params = ObjectEncoder.encode_hash({ :x => x, :y => y })
  __remote_control_command("scMouseDownRightAt", [__locator(type, *params), encoded_params])
end

- (Object) sc_right_mouse_up(type, *params)



186
187
188
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 186

def sc_right_mouse_up(type, *params)
  __remote_control_command("scMouseUpRight", [__locator(type, *params)])
end

- (Object) sc_right_mouse_up_at(type, x, y, *params)



210
211
212
213
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 210

def sc_right_mouse_up_at(type, x, y, *params)
  encoded_params = ObjectEncoder.encode_hash({ :x => x, :y => y })
  __remote_control_command("scMouseUpRightAt", [__locator(type, *params), encoded_params])
end

- (Object) sc_select(type, optionLocator, *params)



163
164
165
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 163

def sc_select(type, optionLocator, *params)
  __remote_control_command("select", [__locator(type, *params), optionLocator, ])
end

- (Object) sc_select_main_window



439
440
441
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 439

def sc_select_main_window()
  sc_select_window('top', '')
end

- (Object) sc_select_window(locator_type, locator_value)



443
444
445
446
447
448
449
450
451
452
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 443

def sc_select_window(locator_type, locator_value)
  hash = {
    :locatorType => locator_type,
    :locatorValue => locator_value
  }
  
  encoded_hash = ObjectEncoder.encode_hash(hash)
  
  __remote_control_command("scSelectWindow", [encoded_hash])
end

- (Object) sc_type(type, text, *params)

SC View Object Event Selenium Calls



159
160
161
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 159

def sc_type(type, text, *params)
  __remote_control_command("type", [__locator(type, *params), text, ])
end

- (Object) sc_type_key(type, key, *params)



290
291
292
293
294
295
296
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 290

def sc_type_key(type, key, *params)
  if key.kind_of? Symbol
    __remote_control_command("scTypeFunctionKey", [__locator(type, *params), key.to_s, ])
  else
    __remote_control_command("scTypeKey", [__locator(type, *params), key, ])
  end
end

- (Object) sc_view_scroll_to_visible(scpath)



298
299
300
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 298

def sc_view_scroll_to_visible(scpath)
  __remote_control_command("scViewScrollToVisible", [scpath])
end

- (Object) sc_wait_until(root_scpath, join, conditions, timeout = nil)



302
303
304
305
306
307
308
309
310
311
312
313
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 302

def sc_wait_until(root_scpath, join, conditions, timeout=nil)
  params = {
    :rootPath => root_scpath,
    :join => join,
    :conditions => conditions,
    :timeout => timeout
  }
  
  encoded_params = ObjectEncoder.encode_hash(params)
  
  __remote_control_command("scWaitUntil", [encoded_params])
end

- (Object) sc_window_maximize



435
436
437
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 435

def sc_window_maximize()
  __remote_control_command("scWindowMaximize")
end

- (Object) sc_window_move_to(x, y)



427
428
429
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 427

def sc_window_move_to(x, y)
  __remote_control_command("scWindowMoveTo", [x, y])
end

- (Object) sc_window_resize_to(width, height)



431
432
433
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 431

def sc_window_resize_to(width, height)
  __remote_control_command("scWindowResizeTo", [width, height])
end

- (Object) select_range(*params)



480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 480

def select_range(*params)
  hash = nil
  
  if params.length == 0 
    raise ArgumentError.new "no parameters were supplied"
  end
  
  if params[0].kind_of? Hash
    hash = params[0]
  end
    
  encoded_hash = ObjectEncoder.encode_hash(hash)
  
  __remote_control_command("selectRange", [encoded_hash])
end

- (Object) set_application_name(name)

SC Application Setup Selenium Calls



18
19
20
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 18

def set_application_name(name)
  __remote_control_command("setScApplicationName", [name,])
end

- (Object) update_sc_application_context(app_name, timeout = nil)



30
31
32
# File 'lib/lebowski/runtime/sprout_core_extensions.rb', line 30

def update_sc_application_context(app_name, timeout=nil)
  __remote_control_command("updateScApplicationContext", [app_name, timeout])
end