make sendKeys method work for mobile safari

This commit is contained in:
Jonathan Lipps
2013-03-08 10:27:54 -08:00
parent e8578ccedf
commit 3eb453d7a4
3 changed files with 33 additions and 7 deletions
+8 -5
View File
@@ -37,12 +37,15 @@ browser
comments.sendKeys("This is an awesome comment", function() {
browser.elementById('submit', function(err, submit) {
submit.click(function() {
browser.elementById('your_comments', function(err, res) {
res.text(function(err, text) {
text.should.include("This is an awesome comment");
browser.quit();
var next = function() {
browser.elementById('your_comments', function(err, res) {
res.text(function(err, text) {
text.should.include("This is an awesome comment");
browser.quit();
});
});
});
};
setTimeout(next, 1000);
});
});
});