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
-1
votes
1 answer

How to run groovy scripts in gradle project from windows command line

I have created one gradle project for Geb-Spock. In this project I have created scripts in Groovy class. I would like to execute those scripts from command line with the help of gradle commands. So that I can achieve Jenkins - Gradle - Geb…
Durgesh
  • 585
  • 4
  • 12
  • 33
-1
votes
1 answer

Testing the .json response of a regular Grails controller

I am attempting to run Unit tests on my controllers, but testing for the '.json' result, not just the regular result. For example, instead of User/Index, I want to test the User/Index.json result. How do I do this in a Unit (or geb?) test? These…
naspinski
  • 34,020
  • 36
  • 111
  • 167
-1
votes
2 answers

At what time Geb is building the DOM tree of a page?

I'm facing problems when interacting with dynamic pages i.e. it's static content becomes invalid after time. Normally, I save the page object when going to the page for the first time: to StartPage def startPage = at StartPage When accessing the…
AndyDoe
  • 31
  • 1
  • 6
-1
votes
2 answers

How to call a method from another class in groovy?

For Instance, I have a class like this: class firstOne{ .... def A (){ } } class secondOne{ // I need to call and use method A from class firstOne // even I get error if I try to follow Java like calls // firstOne method…
Sharif Mamun
  • 3,508
  • 5
  • 32
  • 51
-1
votes
2 answers

Continuous integration for automation tools

I am trying to find out as to which CI (Continuous Integration) tools are available for automation tools such as QTP, Selenium webdriver, Waitr and GEB.
Krishna S
  • 71
  • 3
  • 12
-2
votes
1 answer

Intellisense not working properly for SPOCK framework in Eclipse Indigo

On Pageclasses (e.g LogInExample.groovy) user-defined or inbuilt methods or variables are not auto populated due to which it seems difficult to code. For example when we write Checkbox. after putting this dot inbuilt methods should be auto populated…
user2854098
  • 13
  • 1
  • 3
-2
votes
3 answers

How to grab the value of the span element using jQuery

I have the following code: Ext. Subtotal 100,087,000.00 I used the following to grab the…
vijay pujar
  • 1,683
  • 4
  • 19
  • 32
-3
votes
1 answer

how can i add js to geb locator?

After this code I have error: gebLocator(wait: true) { $("a#fCoverage") } browser.js.exec(gebLocator+ ".addEventListener('click', function(){alert('GTM')});") Error message: groovy.lang.MissingMethodException: No signature of method: …
Denys Medvediev
  • 1,160
  • 3
  • 16
  • 32
-3
votes
1 answer

Geb Browser automation with filemaker

I have doubt with GEB browser automation. The URL will be opened via filemaker web viewer and then we to geb automation process. Is it possible? Can You provide any examples?
Palaniraja
  • 233
  • 9
  • 27
-3
votes
2 answers

Converting string to integer, but preceding zero is being removed -Follow up

This question has been answered so please close it... Thanks for the clarifications!! I looked at the question above but there is an use case which we should consider before closing the issue: I have a situation where I raise an order and the system…
vijay pujar
  • 1,683
  • 4
  • 19
  • 32
-4
votes
1 answer

How to run Geb TestCases from windows command line?

I want to be able to run the geb testcases(SampleTestCase.groovy) from windows command line? I am having a hard time doing so, can anyone please help me out with this? Thanks
-12
votes
1 answer

what is the context of bellow code

what is the actual meaning of these two statements? waitFor(20) { !userDropdown.text().contains("Sign In") } waitFor(20) { title ==~ /[\w\d \-\@()]+( - [\w\d \-]+){0,1} is using Bintray/ }
1 2 3
54
55