scalopus
scalopus

Reputation: 2710

Replace tool for Selenium for testing Javascript

I have problem with Selenium tool to testing the web application which contains some of jQuery. (Some problem based on javascript event such onclick issue, onchange issue). Sometime, fireEvent() cannot help to show correct behaviour.

Such as I use jquery.facebox plugin (plugin such blockUI), in case that I click, it should show fade in, but it wasn't, and it try to open new page with content inside facebox instead.

Are there any other free software which we can use to make function test such selenium? or any selenium plugin that help to solve the problem with javascript?

Upvotes: 2

Views: 804

Answers (3)

Nashibukasan
Nashibukasan

Reputation: 2028

I understand you are looking for an alternative so with that in mind WatiN is a common choice, though it only works well (IMO the firefox support is not great) in IE and you are likely to hit the same roadblocks.

However, it sounds to me that you are (potentially) not interacting with the UI correctly. You might benefit more from trying to call the javascript through Selenium WebDriver 'Actions' before canning Selenium altogether. I have found I have problems trying to directly evaluate javascript through Selenium WebDriver, but I have also not come across a situation where 'Actions' didn't call the necessary javascript for me.

Maybe post some code on the issues you are having?

EDIT: Also, are you using Selenium IDE or WebDriver? That might be a solution for you in the first place.

Upvotes: 0

Dror Helper
Dror Helper

Reputation: 30780

Never used it but I heard that Telerik's Test Studio is a good Selenium alternative

Upvotes: 0

jrabary
jrabary

Reputation: 2441

You can look at Phantomjs. It à headless driver for Javascript.

Upvotes: 2

Related Questions