avernet
avernet

Reputation: 31753

YUI Test: How to simulate more complicated user actions in JavaScript?

I have a number of tests written with YUI Test. YUI Test capabilities when it comes to simulating users' actions are quite limited, or rather fairly low level. For instance, I can't easily simulate the user typing in a text field, with the events and modifications to DOM objects that go with it.

This is something that Selenium does much better, but Selenium is ran in a different way. Is there code in Selenium or some other library that I could call to simulate users' actions, like "type this text in this button", and still keep my test as a YUI Test?

Upvotes: 2

Views: 1091

Answers (1)

Santi
Santi

Reputation: 4468

I don't think you'll be able to keep them as YUI tests. You could somehow import selenium's js libs in your tests and call the methods in browserbot to make those complex actions you say, but I'd prefer to keep things clear and create a selenium test suite properly.

Upvotes: 2

Related Questions