Questions tagged [selenium-fitnesse-bridge]

A FitNesse fixture that integrates the Selenium web test automation API with test specifications in a FitNesse wiki.

25 questions
8
votes
3 answers

How do regular expressions work in selenium?

I want to store part of an id, and throw out the rest. For example, I have an html element with an id of 'element-12345'. I want to throw out 'element-' and keep '12345'. How can I accomplish this? I can capture and echo the value, like this: |…
Andrew
  • 227,796
  • 193
  • 515
  • 708
2
votes
3 answers

Selenium: How do I use javascript to clear a value from a form field?

I'm using the selenium IDE and the Selenium-Fitnesse Bridge fixture and I'm trying to test that when I clear a default value out of a form field, my form displays an error message. So when I record with the Selenium IDE, what it does is the…
Andrew
  • 227,796
  • 193
  • 515
  • 708
2
votes
1 answer

I am getting error in FitNesse while slim communication with browser _ Could not send/receive data with SUT

The error I got is fitnesse.testsystems.slim.SlimCommunicationException: Could not send/receive data with SUT FitNesse Code: !define TEST_SYSTEM {slim} !path C:\FitNesseUsingSelenium\bin\Debug*.dll !define COMMAND_PATTERN {%m -r…
2
votes
2 answers

FitNesse: Comparing data in Slim Test system

Table example: !script|SomeTest | |Goto |$Url | |check |IsAt|IndexPage|true| |Index |CheckUserOrder? | |0 |Name1 | |1 |Name2 | Code example: public class SomeTest { public string…
Aman
  • 224
  • 2
  • 4
  • 14
1
vote
1 answer

Fitnesse wiki unable to call selenium method correctly

I am trying to write a simple fixture that opens the browser and navigates to www.google.com. When I run the wiki page, it passes with all green, but the browser never opens up (I don't think the method even gets called by the wiki). Can someone…
snikt
  • 581
  • 4
  • 11
  • 27
1
vote
1 answer

How to bring running chrome instance in foreground/ontop when test is run through fitnesse wiki

I have different selenium tests created on my fitnesse wiki. Fitnesse wiki is opened in a chrome browser. Now, When I hit on Test to run a particular test on fitnesse wiki, it opens a new chrome instance and runs tests there. The problem is that the…
1
vote
1 answer

Selenium Fitnesse Bridge: How do I store and echo a variable?

I'm using the Selenium Fitnesse Bridge Fixture in order to write tests in Fitnesse for Selenium. It's great because it covers ALL the functions that Selenium has. However, the problem I'm running into is storing variables like I would in Selenium…
Andrew
  • 227,796
  • 193
  • 515
  • 708
1
vote
2 answers

How to capture only part of an id?

I'm trying to capture the id of an element that will be randomly generated. I can successfully capture the value of my element id like this... | storeAttribute | //div[1]@id | variableName | Now my variable will be something…
Andrew
  • 227,796
  • 193
  • 515
  • 708
1
vote
3 answers

How to test or call a java method using fitnesse?

My requirement is to test or call a java method directly through fitnesse tool. I have used this tool for REST testing, but never for calling java methods directly. Also googled , but no solution. Any help would be appreciated. Thanks
Vineet Singla
  • 1,609
  • 2
  • 20
  • 34
1
vote
1 answer

How to set multiple headers in fitnesse?

I have a requirement to set more than one header while testing REST calls using Fitnesse Client. Tried with |setHeader|!-myheader1 : value1-!!-myheader2:value2-!| |setHeader|!-myheader1 : value1-!\n\r!-myheader2:value2-!| |setHeader|!-myheader1 :…
Vineet Singla
  • 1,609
  • 2
  • 20
  • 34
1
vote
1 answer

Fitnesse Test History: is it possible to mark the result yellow in TestHistory when all tests are successful but there is an exception raised?

I believe someone with deep Fitnesse knowledge would help me. Use case: I have a Fitnesse suite with a path to the results like http://localhost/FrontPage.AutomatedTesting.FlightScenarios.Storage?pageHistory&resultDate=20130402183449 Here, all…
Racoon
  • 951
  • 3
  • 14
  • 32
1
vote
2 answers

What to use today about Behaviour-Driven Development and Acceptance Tests?

Some years ago I´ve tried to work with BDD and some tools of Acceptance tests, like Selenium/Web-driver, Fitnesse and JBehave. I´d like to back to work with that in my current project, so I would like to know what the community is using of tools to…
0
votes
2 answers

Could not invoke constructor

I am getting an error Could not invoke constructor. All my class paths are proper. The Division Fixture actually used to work but now is broken. I have never gotten My Selenium FitNesse to work. Any Ideas? Wiki: Code: package…
0
votes
3 answers

Change fitNesse port through Eclipse

Using Eclipse, I have created a Fitnesse framework. When I run the simple calculator example (Right Click - Run as java app) my console throws the error - Starting FitNesse on port: 80 SEVERE: FitNesse cannot be started... SEVERE: Port 80 is…
snikt
  • 581
  • 4
  • 11
  • 27
0
votes
2 answers

How to add a button in FitNesse Test case?

The scenario is as follow: I want to pause the test when it encounters the Button in the Wiki page Test Scenario. It should wait until the user presses the Button and once the button is pressed the test should continue.
1
2