Improved closing dialog for selenium.
This commit is contained in:
parent
c0e5c4885c
commit
c5ba4f39cb
1 changed files with 12 additions and 8 deletions
|
@ -141,10 +141,12 @@ class FormTest < TestCase
|
||||||
css: 'body div.modal',
|
css: 'body div.modal',
|
||||||
value: 'Thank you for your inquiry',
|
value: 'Thank you for your inquiry',
|
||||||
)
|
)
|
||||||
click(
|
|
||||||
browser: customer,
|
# click on backgroud (not on thank you dialog)
|
||||||
css: 'body div.modal .js-close',
|
element = customer.find_elements({ css: 'body div.modal' })[0]
|
||||||
)
|
customer.action.move_to(element, 200, 200).perform
|
||||||
|
customer.action.click.perform
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
exists_not(
|
exists_not(
|
||||||
browser: customer,
|
browser: customer,
|
||||||
|
@ -243,10 +245,12 @@ class FormTest < TestCase
|
||||||
css: 'body div.modal',
|
css: 'body div.modal',
|
||||||
value: 'Thank you for your inquiry',
|
value: 'Thank you for your inquiry',
|
||||||
)
|
)
|
||||||
click(
|
|
||||||
browser: customer,
|
# click on backgroud (not on thank you dialog)
|
||||||
css: 'body div.modal .js-close',
|
element = customer.find_elements({ css: 'body div.modal' })[0]
|
||||||
)
|
customer.action.move_to(element, 200, 200).perform
|
||||||
|
customer.action.click.perform
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
exists_not(
|
exists_not(
|
||||||
browser: customer,
|
browser: customer,
|
||||||
|
|
Loading…
Reference in a new issue