Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I am working on a website. Here is the URL : http://northeastindiaholidays.com/.

There are two sliders on the front page:

  1. The one with in the background, with a full resolution image.
  2. The second one which slides the name of the background image.

I was thinking about the possible functional and UI test scenarios for the slider only.

I don't know if it is possible or even useful to design.

But if we design any such test cases, what would they be.

I mean a few examples here.

And can we use Selenium webdriver to execute those tests.

Thanks in advance.

share|improve this question
    
5 seconds of googling found Slider movement possible in Selenium? which is itself a duplicate ... And question was even upvoted... –  Peter Masiar Jun 11 at 13:23
    
Well Peter, I had looked into this one before coming here. But I am not sure if this applies to the slider I am referring to. Since I am new to Selenium, I may be off on this one. –  geeko_zac Jun 14 at 11:49

1 Answer 1

To verify that slider content can be changed manually, the following solution can be used:

WebElement slider = driver.findElement(By.xpath("//div[@id='slider']/a"));
Actions builder = new Actions(driver);
action.click(slider).sendKeys(Keys.ARROW_RIGHT).perform();

And then check that text or image has changed.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.