Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion are there any webkit equivalents to selenium's send_keys and dialog handling?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joe Ferris  
View profile   Translate to Translated (View Original)
 More options Jun 28 2012, 8:47 am
From: Joe Ferris <jfer...@thoughtbot.com>
Date: Thu, 28 Jun 2012 08:47:21 -0400
Local: Thurs, Jun 28 2012 8:47 am
Subject: Re: are there any webkit equivalents to selenium's send_keys and dialog handling?

Hey David,

There currently isn't a quick way to send specific keys. However, you can use createEvent (https://developer.mozilla.org/en/DOM/document.createEvent) to simulate a lot of behavior together with Capybara's standard execute_script method.

Currently, capybara-webkit automatically accepts all alert/confirm dialogs.

-Joe

On Wednesday, June 27, 2012 at 1:33 AM, David Morton wrote:
> Using selenium, I can send keystroke input to the page with:

>    native.send_keys(:return)

> and hit ok on dialogs with:

>   page.driver.browser.switch_to.alert.accept

> Are there any webkit alternatives?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.