awetestlib 0.1.13-x86-mingw32 → 0.1.14-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/awetestlib/logging.rb +17 -3
- data/lib/awetestlib/regression/browser.rb +520 -394
- data/lib/awetestlib/regression/drag_and_drop.rb +15 -0
- data/lib/awetestlib/regression/find.rb +322 -290
- data/lib/awetestlib/regression/legacy.rb +3 -35
- data/lib/awetestlib/regression/page_data.rb +27 -26
- data/lib/awetestlib/regression/runner.rb +3 -1
- data/lib/awetestlib/regression/tables.rb +57 -0
- data/lib/awetestlib/regression/user_input.rb +991 -859
- data/lib/awetestlib/regression/utilities.rb +41 -18
- data/lib/awetestlib/regression/validations.rb +392 -419
- data/lib/awetestlib/regression/waits.rb +59 -66
- data/lib/awetestlib/runner.rb +1 -0
- data/lib/awetestlib.rb +1 -1
- data/lib/version.rb +2 -2
- data/test/create_zoho.rb +1 -0
- data/test/create_zoho_account1.rb +2 -0
- data/test/create_zoho_account2.rb +1 -0
- data/test/zoho_util.rb +8 -6
- metadata +4 -4
@@ -1,5 +1,10 @@
|
|
1
1
|
module Awetestlib
|
2
2
|
module Regression
|
3
|
+
# Methods for moving and resizing elements, manipulating the mouse, and checking for relative positioning of elements,
|
4
|
+
# including overlap, overlay, etc.
|
5
|
+
# @note Still experimental. Works with IE but not fully tested with Firefox or Chrome in Windows.
|
6
|
+
# Not compatible with Mac
|
7
|
+
# Rdoc is work in progress
|
3
8
|
module DragAndDrop
|
4
9
|
|
5
10
|
def verify_element_inside(inner_element, outer_element, desc = '')
|
@@ -373,6 +378,16 @@ module Awetestlib
|
|
373
378
|
alias validate_move verify_resize
|
374
379
|
alias validate_resize verify_resize
|
375
380
|
|
381
|
+
def validate_drag_drop(err, tol, exp, act)
|
382
|
+
ary = [false, "failed, expected: #{exp}, actual: #{act}, err: #{err}"]
|
383
|
+
if err == 0
|
384
|
+
ary = [true, 'succeeded ']
|
385
|
+
elsif err.abs <= tol
|
386
|
+
ary = [true, "within tolerance (+-#{tol}px) "]
|
387
|
+
end
|
388
|
+
ary
|
389
|
+
end
|
390
|
+
|
376
391
|
end
|
377
392
|
end
|
378
393
|
end
|