cucumber « selenium « Java Testing Q&A

Home
Java Testing Q&A
1.Development
2.FindBugs
3.HTMLUnit
4.hudson
5.junit
6.performance
7.plugin
8.profile
9.selenium
10.Tools
11.unit test
Java Testing Q&A » selenium » cucumber 

1. Cucumber + Selenium on javascript apps    stackoverflow.com

I am trying to learn how to best use Cucumber + Selenium. For the most part it seems to be very straight forward but I would like to get some guidance ...

2. How to get cucumber to run the same steps against Selenium and a headless browser    stackoverflow.com

I've been doing some work testing web applications with Cucumber and I currently have a number of steps set up to run with Culerity. This works well, but there are ...

3. How to use Page Object pattern with Cucumber and Webrat / Selenium?    stackoverflow.com

I'm looking at a cucumber test suite that is somewhat brittle right now; many small steps, and no knowledge of the page itself. I'd like to factor out the logic involved in ...

4. selenium cannot find element with class in IE    stackoverflow.com

I'm using selenium_client with cucumber, webrat + IE As you'd expect, Firefox works fine. I've tried the following:

selenium.is_visible("css=#flash .flash_notice")
selenium.is_visible("xpath=//*[@id='flash']/*[@class='flash_notice]")
selenium.is_visible("xpath=//*[@id='flash']/*[contains(@class,'flash_notice]')")
both cannot find the element. I think it must be something to do with IE, ...

5. changing selenium domain/subdomain within cucumber scenarios    stackoverflow.com

So, I have a Rails webapp that utilizes subdomains for separating the admin functionality from the public functionality using subdomain-fu. So there is functionality(that I want to test!) contained within two ...

6. Testing for javascript alerts with Capybara    stackoverflow.com

I'm using Cucumber + capybara + selenium to run automated testing, but I'm having trouble finding a way to assert that a javascript alert is displayed. This question seems has ...

7. cucumber, capybara & selenium works randomly    stackoverflow.com

Setup with cucumber, capybara and selenium but some scenarios works only randomly.
Running
ruby 1.8.6 on rvm
rails 2.3.8
selenium pops open firefox 3.6

I have tried to add this with no luck:

with_scope(selector) ...

8. Using custom Selenium server on capybara    stackoverflow.com

I'm trying to use capybara and Selenium but with custom server for Selenium, for example I want to route the server to saucelabs.com, is anyone here are have try it before? Thanks ...

9. How can I make cucumber with capybara and selenium fire Ajax on page load    stackoverflow.com

I have the following as a cucumber story:

@javascript
Scenario: Showing the page
  Given I am a logged in user
  And there is a member with a site 
  And ...

10. Cucumber and Capybara, clicking a non-link or button element    stackoverflow.com

I am trying to test an inplace editor using Cucumber/Capybara/Selenium stack, but my problem is that the editor is activated by clicking a div and not a link or button. I ...

11. Is there a way to detect that I'm in a Selenium Webdriver page from Javascript    stackoverflow.com

I'd like to suppress the initialization of TinyMCE inside my tests and can do this easily if the Javascript can detect that I'm running inside a Selenium-automated page. So, is there some ...

12. capybara/selenium woe    stackoverflow.com

I'm attempting to set up a js cucumber environment in a rails3 app with capybara on osx10.6. I've tried using culerity with rvm jruby and rvm 1.8.7 and 1.9.2 ...

13. How to make cucumber/selenium run Thin server instead of Webrick    stackoverflow.com

where do I have to setup or configure to fire cucumber/selenium test to run Thin server instead of the default Webrick server?

14. Cucumber + Capybara + Selenium: selecting text    stackoverflow.com

I'm making changes to a text editor, and I need to be able to select text to manipulate it with JavaScript. How do I select text with Cucumber, Capybara and Selenium? ...

15. How to easily switch between Webrat and Selenium?    stackoverflow.com

Please let me know how can I easily switch between Webrat and Selinium? Selinium takes longer as it simulates by opening the real browser. In some cases I do not ...

16. Remote Selenium WebDriver not responding to Cucumber tests    stackoverflow.com

I've set up a feature in cucumber and am using the @javascript tag to have it run in selenium On my dev machine selenium runs fine but because webdriver doesn't support native ...

17. How should we automate system testing?    stackoverflow.com

We are building a large CRM system based on the SalesForce.com cloud. I am trying to put together a test plan for the system but I am unsure how to create ...

18. Tell Cucumber tests to run on https    stackoverflow.com

I am running cucumber tests with Webrat in external mode that is using Selenium. In production we are running behind https and so we are required to run our cucumber ...

19. Using Capybara and Selenium to hover over an element    stackoverflow.com

I have a link on a page which only appears when hovering over a certain element. But I can't figure out how to emulate this and then click on the link ...

20. Toggle javascript support programmatically without restarting firefox    stackoverflow.com

The problem: toggle javascript support without restarting firefox (nor resorting to different driver) during cucumber test run. If Firefox's prefutils were exposed to javascript in a web page, that ...

21. Capybara with Selenium Webdriver click_link does not work when link text has line break    stackoverflow.com

I am using Selenium2 with Capybara 1.0.0, WebDriver and Cucumber 1.0.0 running on a Windows 7 workstation. I have run into a problem with my Cucumber tests where certain links simply don't ...

22. calling javascript from cucumber step    stackoverflow.com

Can I call javascript on a page from a cucumber step using the capybara selenium driver? specifically i need to generate a change event when a form field is filled (doesnt ...

23. Cucumber How to Hover over an element?    stackoverflow.com

I have an element styled with a css hover. I tried using this

page.execute_script(“$(‘#{selector}’).mouseover();”)
but does not work? anyone else encountered this problem using a css hover? Thanks!

24. Capybara/Selenium/Chrome not able to change value of select drop-down    stackoverflow.com

When I run my test with the features, steps, and HTML below the test executes without error (until it fails on the assertion steps), but I can see that no change ...

25. Capybara/selenium: wait for element to become hidden    stackoverflow.com

I need to wait for loading bar (div#loading) to disappear (become display: none) in a cucumber step. I'd expect the following to do the trick

find('#loading').should_not be_visible
But it doesn't seem to be ...

26. Set headers - capybara mechanize or selenium    stackoverflow.com

In my cucumbers, I need to add a key/value pair to the http headers when I request a page with capybara using the mechanize driver or perhaps the selenium driver. I'm ...

27. "bundle exec cucumber" times out while "cucumber" does not    stackoverflow.com

I'm on Windows XP running RailsInstaller 2.0. I want to test a remote web site using cucumber + capybara + selenium I found this excellent starting point : https://github.com/thuss/standalone-cucumber#readme When I use the ...

28. Dynamic record creation in capybara with selenium does not work    stackoverflow.com

I am trying to run cucumber tests of my app over capybara with selenium driver. In the test steps i dynamically create users to login to the app . But the ...

29. Running cucumber tests with HtmlUnitDriver    stackoverflow.com

When I run my tests with FirefoxDriver I have no problems, but when I just change FirefoxDriver to HtmlUnitDriver happens the follow error:

[INFO]   java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.startsWithIgnoreCase(Ljava/lang/String;Ljava/lang/String;)Z (NativeException)
[INFO]   com/gargoylesoftware/htmlunit/util/URLCreator.java:66:in ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.