Questions tagged [geb]

Geb is a library for headless web browsing on the JVM, suitable for automation and functional web testing. It uses Groovy to provide a concise story-like DSL for defining steps, and a concise and manageable DSL for defining page structure using the page object pattern.

Geb is a library for headless web browsing on the JVM, suitable for automation and functional web testing. It utilises the dynamic language features of Groovy to provide a concise story-like DSL for defining steps, and a concise and manageable DSL for defining page structure using the page object pattern.

Geb is based on the automation framework WebDriver and it can be used for scripting, scraping and general automation — or equally as a functional/web/acceptance testing solution via integration with testing frameworks such as Spock, JUnit, Selenium & TestNG.

822 questions
0
votes
0 answers

How to type quotation mark and apostrophe in Geb test in Chrome browser

I'm having trouble automating the typing of quotation mark and apostrophe characters in a text field with ChromeDriver. By text field I mean an usual input type text element: The Geb tests work with Chrome and…
Tomas Pinos
  • 2,812
  • 14
  • 22
0
votes
1 answer

Geb drive method

I'm trying to learn how to use Geb and I'm getting an error. Could you guys help me out? I'm trying to use the drive method but it is not working. I've tested a few of the other Browser's methods and they work all right. Just the drive method is…
Guachala
  • 1
  • 1
0
votes
1 answer

Grails test-app -https

i've just upgraded my app to grails 2.3.4 and i'm implementing Cucumber and Geb test in order to keep it all covered. The problem is that one of the requirements of the application that should only listen secure connections (https) so i added in…
Juan
  • 1
0
votes
1 answer

Geb Tests for pages with javascript in grails 2.3.5

I am upgrading from grails 2.2.4 to grails 2.3.5 and the last problem I am having is with geb functional tests. I have upgraded geb to 0.9.2. The first problem is that it seems like it is first trying to run the geb tests as spock tests even though…
0
votes
1 answer

How to execute geb helper functions exactly one after another?

I have a Groovy class like this: // All import stuffs class Test extends GebSpec{ def setupSpec() { // Works just fine } def setup() { // Works just fine } // Now I have some helper functions // and I want…
Sharif Mamun
  • 3,508
  • 5
  • 32
  • 51
0
votes
1 answer

Can't run Geb tests using HtmlUnitDriver under Maven

I am running the example Google spec, i.e: class GoogleHomePageSpec extends GebReportingSpec { def "first result for wikipedia search should be wikipedia"() { given: to GoogleHomePage expect: at GoogleHomePage when: …
profpfeff
  • 1
  • 5
0
votes
1 answer

Functional testing for redactor textarea by geb

I am trying to enter text in redctor text field to test functional testing by geb.But i am not able to do so because textarea is invisible.when it is simple html text field than i am able to do so by personal{$("#personalStatement").value("hi I AM…
user3091180
  • 21
  • 1
  • 7
0
votes
1 answer

Window closes before I get to "then:" clause while using withNewWindow()

We are using Geb for our functional tests. In our app, clicking a link opens a new window. Inside our "when:" clause, we are able to use withNewWindow() to click the link and open the new window, and make a few quick assertions. The problem is that…
jcd
  • 221
  • 4
  • 15
0
votes
2 answers

how to test select2 by geb

I am trying to select option from the select2 dropDown list but i am not able to do so This is the code enter code here
vijay pujar
  • 1,683
  • 4
  • 19
  • 32
0
votes
0 answers

Grails using Geb from its downloaded source

I am using Grails 2.2.3, seleniumVersion = "2.27.0", spockVersion = "spock-grails-support:0.7-groovy-2.0", geb = "0.9.2", on windows 7 (unfortunately not my choice) When I run a dependency report there are no errors. Running a full build the only…
Calahad
  • 1,408
  • 14
  • 22
0
votes
1 answer

Spock functional tests are failing on Chrome and IE because of Proxy settings

This is bit of a strange issue. I have number of Spock tests (functional tests) and I have been running these perfectly fine on all the browsers (namely, IE-10, FF and Chrome). But just recently I have hit a stumbling block where I'm not able to…
vijay pujar
  • 1,683
  • 4
  • 19
  • 32