Re: [geb-user] Having difficulty using SauceLabs with Gradle

2019-11-04 Thread Marcin Erdmann
I think the easiest way for now will be to extend SauceLabsDriverFactory and override assembleProviderUrl(). That url should probably use https anyway, I've created an issue to address that: https://github.com/geb/issues/issues/599. On Mon, Nov 4, 2019 at 4:42 PM Ben Frey wrote: > I may have

Re: [geb-user] java.lang.StackOverFlow Exception on waitFor

2019-11-01 Thread Marcin Erdmann
> > Only setup required is maven, chrome and JDK1.8 > > Please let me know if you need anything else, hopefully the issue is > resolved soon! > > > On Tuesday, 29 October 2019 07:57:22 UTC+11, Marcin Erdmann wrote: >> >> Hi Raz, >> >> You're the third pers

Re: [geb-user] Is there a "best practice" configuration for running tests with Gradle in parallel?

2019-11-01 Thread Marcin Erdmann
If you're observing memory leaks or memory pressure in your tests, a quick fix would be to restart the test JVM (and also the browser because the browser is shut down by Geb when the test JVM shuts down) every N test classes - see

Re: [geb-user] StaleElementReferenceException after click was made

2019-11-01 Thread Marcin Erdmann
I'm afraid that if you want us to be able to help you will have to provide the full stacktrace and not just a snippet of it. Unfortunately, with the amount of information you provided it's impossible to get the necessary context to be able to understand what is going on. On Wed, Oct 30, 2019 at

Re: [geb-user] Having difficulty using SauceLabs with Gradle

2019-11-01 Thread Marcin Erdmann
rt your tests. > sauce-connect: - failed to check for existing tunnels > sauce-connect: - Sauce Connect could not establish a > connection > sauce-connect: - Please check your firewall and proxy settings > The command-line arguments for sc were > --user --api-key --se-port 4445

Re: [geb-user] Re: setting binary path for Portable Firefox and use it as default browser for tests

2019-10-30 Thread Marcin Erdmann
Are you sure you are running in the "firefox" geb environment? The easiest way to verify would be to simply throw an exception from the driver closure (e.g. driver = { throw new Exception("Yes, running in firefox environment") }), run again and see failures with the exception message. On Tue, Oct

Re: [geb-user] Having difficulty using SauceLabs with Gradle

2019-10-28 Thread Marcin Erdmann
A tunnel (if you are talking about a Sauce Labs tunnel) will not be needed because we won't be accessing anything specific to your company - gebish.org is accessible on the public Internet. Unless you are talking about some proxy that you are using which might potentially be stripping out the

Re: [geb-user] Having difficulty using SauceLabs with Gradle

2019-10-28 Thread Marcin Erdmann
will be able to share with me. On Mon, Oct 28, 2019 at 8:51 PM Ben Frey wrote: > Company-proprietary code and all, so I can't, unfortunately. Unless you > can think of a way around that. > > On Monday, October 28, 2019 at 3:39:15 PM UTC-5, Marcin Erdmann wrote: >> >> Yeah, it does no

Re: [geb-user] java.lang.StackOverFlow Exception on waitFor

2019-10-28 Thread Marcin Erdmann
Hi Raz, You're the third person reporting a problem where Geb's private methods and properties are mysteriously not seen from other places in the same class when using Geb with Cucumber and Maven (for the other two see

Re: [geb-user] Having difficulty using SauceLabs with Gradle

2019-10-28 Thread Marcin Erdmann
g. Where would I find the version of Selenium I'm using? The >>> only two Selenium dependencies I have in my build.gradle are >>> testCompile 'org.seleniumhq.selenium:selenium-chrome-driver:3.141.59' >>> testCompile 'org.seleniumhq.selenium:selenium-support:3.141.59' >&

Re: [geb-user] Having difficulty using SauceLabs with Gradle

2019-10-25 Thread Marcin Erdmann
e code from 14.1.1 in the BoG plus a > println for the username. I see the username being printed out in both > locations, so why is the Selenium code thinking the credentials aren't set? > > > On Wednesday, October 23, 2019 at 3:56:49 PM UTC-5, Marcin Erdmann wrote: >> >

Re: [geb-user] Having difficulty using SauceLabs with Gradle

2019-10-23 Thread Marcin Erdmann
The issue you created Ben looks good, thanks! On Wed, Oct 23, 2019 at 6:27 PM Ben Frey wrote: > Alright, I created https://github.com/geb/issues/issues/597. Please let > me know if you'd like any more details in the issue. > > On Wednesday, October 23, 2019 at 8:09:53 AM UTC-5, Ma

Re: [geb-user] Having difficulty using SauceLabs with Gradle

2019-10-23 Thread Marcin Erdmann
{ >>> filter { >>> includeTestsMatching 'stufftotest.*' >>> } >>> } >>> >>> >>> On Wednesday, October 23, 2019 at 6:27:12 AM UTC-5, Marcin Erdmann wrote: >>>> >>>> What's the Gr

Re: [geb-user] Having difficulty using SauceLabs with Gradle

2019-10-23 Thread Marcin Erdmann
ame > > where "testTaskName" is a Gradle task defined like this > task testTaskName(type: Test) { > filter { > includeTestsMatching 'stufftotest.*' > } > } > > > On Wednesday, October 23, 2019 at 6:27:12 AM UTC-5, Marcin Erdmann wrote: >&g

Re: [geb-user] Having difficulty using SauceLabs with Gradle

2019-10-23 Thread Marcin Erdmann
What's the Gradle task that you are running in CI? On Tue, Oct 22, 2019 at 6:33 PM Ben Frey wrote: > My tests are working locally, although I have to use the bonigarcia > WebDriverManager to retrieve a Chromedriver locally: > WebDriverManager.chromedriver().version('2.35').setup() > > In my

Re: [geb-user] Error message: It is currently in use by another Gradle instance

2019-10-21 Thread Marcin Erdmann
Hi, This looks more like a Gradle issue to me so this list is probably not the best place to ask your question. I'd suspect that you're more likely to get an answer if you ask at the Gradle Forums at https://discuss.gradle.org/. Marcin On Mon, Oct 21, 2019 at 10:55 AM medv nagy wrote: >

[geb-user] [ANN] Geb 3.2 has been released

2019-10-20 Thread Marcin Erdmann
Hi, Version 3.2 of Geb has been released and is available from Maven Central. This version contains a number of bug fixes and improvements. The full list of changes is as usual available in the Book of Geb at https://gebish.org/manual/current/#3-2. Cheers, Marcin -- You received this message

Re: [geb-user] Confusion about "Java properties file format"

2019-10-17 Thread Marcin Erdmann
certainly pursue bringing those in as long > as they're all open source. I assume that's the case? > > On Wednesday, October 16, 2019 at 2:24:19 AM UTC-5, Marcin Erdmann wrote: >> >> Yeah, that section could probably do with some improvements. Also, as far >> as I remembe

Re: [geb-user] Confusion about "Java properties file format"

2019-10-16 Thread Marcin Erdmann
Yeah, that section could probably do with some improvements. Also, as far as I remember, this property cannot be populated using a Java system property file because the format for them is one line per property and that property is designed to contain multiple lines. But all that shouldn't matter

Re: [geb-user] Re: Does Geb support JUnit XML generation for test reports?

2019-10-14 Thread Marcin Erdmann
cation style. If you look at my answers on SO - be it about >>> Geb, Spock or AspectJ - you will find that I go to great lengths in >>> order to provide comprehensive answers. I put a lot of time and effort >>> into them. Someone who genuinely does not know and can show

Re: [geb-user] Re: Does Geb support JUnit XML generation for test reports?

2019-10-14 Thread Marcin Erdmann
o not belong onto a mailing list or a forum > like SO. > > Whoever wants to have the last word now, may have it. > > Best regards > -- > Alexander Kriegisch > https://scrum-master.de > > > Marcin Erdmann schrieb am 12.10.2019 19:30 (GMT +02:00): > > > > Hi Ma

Re: [geb-user] Re: Does Geb support JUnit XML generation for test reports?

2019-10-12 Thread Marcin Erdmann
Hi Marc, Thanks for your email. I agree that Alexander has a tendency to be rude and to reply in condescending or hostile manner not only on this mailing list but also on Stack Overflow as you've noticed. One thing I'd like to make clear is that Alexander is by no way associated with the project

Re: [geb-user] Geb Spock

2019-10-07 Thread Marcin Erdmann
https://github.com/geb/geb-example-maven On Mon, Oct 7, 2019 at 10:33 AM Neepa Acharyya wrote: > Hi, > I just need with start with Geb and spock with maven configuration . > > Can anyone please help me to kick off with project? > > -- > You received this message because you are subscribed to

[geb-user] [ANN] Geb 3.1 has been released

2019-10-06 Thread Marcin Erdmann
Hi, Version 3.1 of Geb has been released and is available from Maven Central. The most significant new feature of this release is the introduction of NavigatorEventListener ( https://gebish.org/manual/current/#listening-to-navigator-events) and PageEventListener (

Re: [geb-user] Setting atCheckWaiting to true

2019-09-16 Thread Marcin Erdmann
Ramesh, When you set atCheckWaiting to false in your config script then nothing happens because it is the default. It basically means - only ever try to execute an at checker once and if it fails then throw an AssertionError (if assertions are enabled, which again is the default). In other words,

Re: [geb-user] Geb and Chromedriver 76 issues?

2019-09-03 Thread Marcin Erdmann
Jeremy, Not sure if it helps but what Geb does when you call $(name: "Zip Code") is driver.findElements(By.name("Zip Code")) as per the stacktrace you provided in the post to ChromeDriver mailing list: at org.openqa.selenium.By$ByName.findElements(By.java:276) at

Re: [geb-user] Re: can I use innerNavigatorFactory approach to for navigator used by Form Control Modules?

2019-06-25 Thread Marcin Erdmann
Marcin Erdmann wrote: > Hi Alex, > > The idea is that if you have configured a custom navigator to be used via > a custom navigator factory then all instances of navigators, including the > ones backing modules will be of your custom type. So if it's not the case > then it will

Re: [geb-user] Re: Error "MissingPropertyException: Unable to resolve atChecker" with Geb 2.3.1

2019-05-29 Thread Marcin Erdmann
Any chance you would be able to provide a reproducible sample, please? I won't be able to track down the issue without it just based on the information that you have provided so far, unfortunately. Cheers, Marcin On Wed, May 29, 2019 at 12:26 PM AlexB wrote: > No, we don't use GroovyFX. > > >

[geb-user] [ANN] Geb 3.0 has been released

2019-05-28 Thread Marcin Erdmann
Hi, Version 3.0 of Geb has been released today live on stage at GR8Conf EU 2019 and is now available from Maven Central. The most significant new feature of this release is the introduction of dynamic navigators, see http://gebish.org/manual/current/#dynamic-navigators for details. 3.0 is a

Re: [geb-user] Re: Debugging of geb.error.UnableToLoadException: Unable to load configuration from class...

2019-05-22 Thread Marcin Erdmann
he bottom at all of the root cause. I am currently on 2.3.1. > > Regards > Charles > > On Sunday, 14 April 2019 19:58:34 UTC+1, Marcin Erdmann wrote: >> >> Thanks for your email and the report of the issue you've encountered. The >> root exception, also re

Re: [geb-user] Re: Error "MissingPropertyException: Unable to resolve atChecker" with Geb 2.3.1

2019-05-17 Thread Marcin Erdmann
Klaus, Thanks for spending the time to provide an MCVE. I have to admit I have no idea what exactly is going on here, but what I'm certain of is: 1. This is happening in 2.3.1 because in that version private geb.Page#getAtChecker method has been introduced and it does not exist in 2.2, see: -

Re: [geb-user] Verifying some elements are not displayed

2019-05-08 Thread Marcin Erdmann
On Wed, May 8, 2019 at 3:32 AM Alexander Kriegisch wrote: > >- (...) Testing for invisibility of asynchronously loaded page >elements is always problematic because without waiting the test would pass >too quickly and falsely! > > Very true! -- You received this message because you

Re: [geb-user] GEB v2.3.1 example project test fails with Chrome Version 73.0.3683.103 (Official Build) (64-bit)

2019-05-01 Thread Marcin Erdmann
This is not a Geb issue but an issue with setup on your machine so you did the right thing by writing here and not creating an issue in the tracker. As per the stackoverflow thread you linked to, you are getting the popup because an extension has not been loaded as it was disabled by the

Re: [geb-user] Re: Debugging of geb.error.UnableToLoadException: Unable to load configuration from class...

2019-04-14 Thread Marcin Erdmann
Thanks for your email and the report of the issue you've encountered. The root exception, also referred to as cause is ignored in this case and not passed on in the constructor of UnableToLoadException:

Re: [geb-user] Extending NavigatorFactory to log actions like click(), sendKeys()

2019-04-14 Thread Marcin Erdmann
Yes, InnerNavigatorFactory has been conceived to allow users to provide their own implementation of Navigator. Your use case of adding some logging to certain methods defined on Navigator is exactly what this mechanism is for. Simply extend NonEmptyNavigator and EmptyNavigator with what's needed,

Re: [geb-user] Re: Geb not pointing to right page after after closing confirm dialogue in new window

2019-04-07 Thread Marcin Erdmann
As suggested in my reply to your Stack Overflow question, this looks like an issue in Geb with handling alerts - thanks for filing a ticket in the tracker for it. I suggested using the native (WebDriver API) way of handling alerts to work around the issue in this comment:

Re: [geb-user] Can Serenity+Cucumber+Geb work together?

2019-03-29 Thread Marcin Erdmann
I agree with Alexander that a MVCE would be useful, not only to help others help you but for you as well - your current setup looks already fairly complex and trying Geb + Cucumber + Serenity on its own would probably help by removing all of the moving parts currently exisitng in your setup and

Re: [geb-user] withWindow and withNewWindow trouble with redirect

2019-03-29 Thread Marcin Erdmann
Sorry for a very late response but I’ve just came back from holiday. I cannot explain why using waitFor inside of a withNewWindow block would prevent the page in the new window from loading. To have a chance to understand that I would need to see the full stacktrace thrown after the browser sits

Re: [geb-user] GEB-project organization

2019-01-09 Thread Marcin Erdmann
I'd say that it's a very general question, Michael, and one without one clear answer. The only time I worked on browser tests that lived in a separate repository was when I worked on application that was not a monolith - it had multiple front ends and multiple backend services. But even then we

[geb-user] [ANN] Geb 2.3 has been released

2018-12-27 Thread Marcin Erdmann
Hi, Version 2.3 of Geb has been released and is now available from Maven Central. Apart from a small number of improvements and fixes this release mainly consists of a large number of modules for previously unsupported HTML 5 inputs thanks to numerous contributions from Michael Kutz. A full

Re: [geb-user] 'Refreshing' stale modules from within the module itself

2018-12-20 Thread Marcin Erdmann
If the root element is something that contains multiple of these dynamic modules then you might need to use parametrised modules (there is a small entry about what a parameterised module is as part of the manual section on modules at http://gebish.org/manual/current/#modules). You could maybe use

Re: [geb-user] 'Refreshing' stale modules from within the module itself

2018-12-20 Thread Marcin Erdmann
Hi Martin, The problem you describe is quite common, at least I come across it quite frequently, especially in single page apps. The way I deal with it is to not use the element that is removed from the DOM as the base for the module but use the closest parent element which is not removed from

Re: [geb-user] Re: Does Geb support Windows WinApp Driver?

2018-12-20 Thread Marcin Erdmann
Hey Alexander, Thanks for sharing your experience with WinApp Driver. It's useful to know that WebDriver API can also be used to automate tests of Windows apps. I think that using page object in that particular context still has it benefits (single definition of content across multiple tests for

Re: [geb-user] Re: Adding reusable modules to content with additional selector criteria (vs its base)

2018-12-03 Thread Marcin Erdmann
rote: > Dear Marcin, > > Thank you. How would I go about declaring the content in the page/modal? > > > On Monday, December 3, 2018 at 1:34:20 PM UTC+1, Marcin Erdmann wrote: >> >> Hi Martin, >> >> You can simply change your Module base defini

Re: [geb-user] Can Module work withNewWindow?

2018-11-23 Thread Marcin Erdmann
orward to the fix > > пятница, 23 ноября 2018 г., 3:10:03 UTC+5 пользователь Marcin Erdmann > написал: >> >> Right. This makes sense. It's because this is called from within a class >> extending module which defines propertyMissing() that throws a >> MissingProp

Re: [geb-user] Can Module work withNewWindow?

2018-11-22 Thread Marcin Erdmann
, page: > NewWindowPage) { > def page = browser.getPage() > return page.txtElement > } > } > > > > > четверг, 22 ноября 2018 г., 2:12:47 UTC+5 пользователь Marcin Erdmann > написал: >> >> Hi Yura, >> >> Yes, I'm afraid that you are in

Re: [geb-user] Parallel ChromeDriver / RemoteWebDriver HttpHostConnectException

2018-04-09 Thread Marcin Erdmann
How are you managing your WebDriver instances? Are you using Geb's built-in cache for that? If so, did you switch it to cache an instance per thread when running tests against multiple threads as per http://gebish.org/manual/current/#driver-caching-configuration? Marcin P.s. I'd suggest to not

Re: [geb-user] withNewWindow throws NoNewWindowException for click of href="#" target="_blank"

2018-03-23 Thread Marcin Erdmann
Hi Brett, You are correct in thinking that the problem is most likely upstream of Geb and Gecko is either not opening the new window or reporting that no new window has been opened. Let's try to find what exactly the problem is. Some questions: 1. You said you recently upgraded the stack. Did

Re: [geb-user] Handling nested iframes with Geb

2018-03-15 Thread Marcin Erdmann
Hi Jeff, You will need to be more specific than "that's not working". Can you please share the error you're getting? The code that you pasted looks to me like it should work. Marcin On Thu, Mar 15, 2018 at 3:56 PM, Jeff wrote: > I'm new to Geb, and trying to use it to

Re: [geb-user] GebReportingSpec: support for reporting from setupSpec/cleanupSpec

2018-03-08 Thread Marcin Erdmann
ering in-general, whether there's a reason in-principal not to support > such reporting through setup/teardown of the spec. > > On Thursday, March 8, 2018 at 4:10:06 AM UTC+11, Marcin Erdmann wrote: >> >> Ok, I see what the problem is. You are using GebReportingSpec.report() >&g

Re: [geb-user] Obtaining class type of a FormElement

2018-03-06 Thread Marcin Erdmann
If you are after the type attribute of the elements returned by `cb` and `text` content definitions then cb.attr('type') or cb.@type should do the job (see http://gebish.org/manual/current/#accessing-tag-name-attributes-text-and-classes ). On Tue, Feb 27, 2018 at 10:40 PM, Samuel Rossinovic <

Re: [geb-user] Pages and navigation-related content

2018-01-24 Thread Marcin Erdmann
e to start from. I will have a look at > implementing. Thanks! > > On Wednesday, January 24, 2018 at 6:23:59 AM UTC+11, Marcin Erdmann wrote: >> >> How about extracting the non-navigation related content to modules (one >> content module per page) and reusing that?

Re: [geb-user] Browserstack - plugin configuration and test filtration

2018-01-21 Thread Marcin Erdmann
No idea where > path may not be null or empty string. path='null' is coming from. You will have to provide more of the stacktrace (is the message even coming from a stacktrace?) you are getting with the error for me to be able to help you. On Thu, Jan 18, 2018 at 3:05 PM, Mateusz Pluta

Re: [geb-user] How can I update the webdriver in Before/After Cucumber hooks?

2018-01-13 Thread Marcin Erdmann
Can you please elaborate why you need to set a new driver before each test scenario? Also, what do you mean by "a new driver" - a new instance of the same driver type or completely different driver? On Thu, Jan 11, 2018 at 6:46 PM, Meriya Thomas wrote: > Hi, > > I have

Re: [geb-user] how to pass more additional proxy options for SauceLabs plugin?

2018-01-03 Thread Marcin Erdmann
Assuming that you want to setup the proxy to be used by RemoteWebDriver which is the mechanism used to connect and drive browsers at SauceLabs then the best option would probably be to set these system properties for all test tasks which execute tests using browsers at SauceLabs. In your build:

Re: [geb-user] Geb_Testng_parallel

2017-12-30 Thread Marcin Erdmann
Geb has built-in WebDriver instance cache which by default only allows creation of a single WebDriver instance per JVM as described in http://gebish.org/manual/current/#driver-caching-configuration. You can change this behaviour to be instance per thread using cacheDriverPerThread config option

Re: [geb-user] how to pass baseUrl in the geb-saucelabs plugin?

2017-12-14 Thread Marcin Erdmann
Roland, You seem to be mixing up concepts. Base url is a built in Geb concept and has nothing to do with BrowserStack and SauceLabs Gradle plugins. As per the manual in http://gebish.org/manual/current/#geb-browserstack-plugin the application() method available inside of browserStack {} block

Re: [geb-user] how to use geb-browserstack plugin?

2017-12-11 Thread Marcin Erdmann
ility(CapabilityType.PROXY, proxy); > > I read about it here http://www.gebish.org/manual/current/#geb- > browserstack-plugin > > browserStack { > account { > proxyHost = '127.0.0.1' > proxyPort = '8080' > proxyUser = 'user' > proxy

Re: [geb-user] how to use geb-browserstack plugin?

2017-12-11 Thread Marcin Erdmann
nfigure a property named 'os_version', replace ':' > with '=' or ' ', otherwise it will not have the desired effect. > @ line 169, column 25. >os_version: "10" > ^ > > Could you please help me? > > Thank you very much in advance, > R

Re: [geb-user] how to use geb-browserstack plugin?

2017-12-07 Thread Marcin Erdmann
e URL configured and >> it was requested. Please see the Geb manual for different ways of >> managing the base URL (quick solution: you can set the >> 'geb.build.baseUrl' JVM system property) >> >> >> Could you please help me? >>

Re: [geb-user] cannot resolve clickAndHold

2017-12-04 Thread Marcin Erdmann
Can you please share a code snippet that triggers the error and the full stacktrace you're getting? On Tue, 5 Dec 2017 at 06:04, <shal...@limarktech.com> wrote: > Hi, > > I am facing same issue, any solution for this? > > Thanks > > > On Friday, April 21, 2017 a

Re: [geb-user] Element is not clickable at point

2017-12-04 Thread Marcin Erdmann
I do believe that Brian is right - the element you are trying to click is most probably temporarily overlaid due to some animation. Especially if the error is intermittent and varies as you describe it. waitFor will help if you take the time to analyse what is being animated at that particular

Re: [geb-user] How to refresh or reload a page using GEB?

2017-11-16 Thread Marcin Erdmann
On Wed, Nov 15, 2017 at 7:08 PM, Ramesh wrote: > or just use > > go() > > Note that using go() will not necessarily refresh the page but navigate to the base url. -- You received this message because you are subscribed to the Google Groups "Geb User Mailing List"

Re: [geb-user] Use Geb with Amazon Device Farm

2017-11-07 Thread Marcin Erdmann
You are mixing concepts here, Fabian. Geb is a browser automation toolkit and not a test framework. It can be used with any test framework and comes with integration with Spock, JUnit and TestNG, see http://www.gebish.org/manual/current/#spock-junit-testng. So you don't write tests in Geb, you are

Re: [geb-user] Passing gradle run time properties to Browserstack plugin

2017-11-01 Thread Marcin Erdmann
Inside of the browserStack {} configuration block provided by the Browser Stack Geb plugin there is a task {} block (see point 7 at http://www.gebish.org/manual/current/#geb-browserstack-plugin). This block configures all test tasks added by the plugin - it delegates to instances of tasks of type

Re: [geb-user] Re: How to use "Select" form control module

2017-11-01 Thread Marcin Erdmann
Did you by any chance place that statement in an asserting Spock block? By asserting I mean `then` or `expect`. On Wed, 1 Nov 2017 at 08:57, Rahman Mahbub wrote: > JFYI, > departureFrom.selected = "NRT" <-- gives error in Eclipse: > Groovy:Expected a condition, but found

Re: [geb-user] require:false for a template inheriting another

2017-11-01 Thread Marcin Erdmann
ossibly just documenting it in the book... > > > On Tuesday, October 31, 2017 at 8:19:49 AM UTC+11, Marcin Erdmann wrote: > >> I wouldn't say that the behaviour you're seeing is intended in a way that >> it was foreseen, but yes, this is how it works, you will need to mark

Re: [geb-user] Page Content From a list

2017-10-19 Thread Marcin Erdmann
ines of: > > def fillForm() { > ids.each { /* it */ << 'foo' } > } > > > > On Wednesday, October 18, 2017 at 5:29:21 PM UTC+11, Marcin Erdmann wrote: >> >> If you’re asking whether content defined in this dynamic way can be used >> with form control

Re: [geb-user] Page Content From a list

2017-10-18 Thread Marcin Erdmann
ct response! >> >> >> On Saturday, October 14, 2017 at 4:57:05 AM UTC-5, Marcin Erdmann wrote: >>> >>> Content defintions are method calls and not map entries. You should use >>> the following: >>> >>> static def ids = ['header', 'title',

Re: [geb-user] Test configuration

2017-10-14 Thread Marcin Erdmann
There is nothing stopping you from using GebConfig.groovy for any arbitrary configuration but I personally wouldn't as I find it not a clean solution - you'd be mixing concerns. I wouldn't do it especially as it's relatively easy to roll your own config using the same mechanism Geb is using which

Re: [geb-user] Page Content From a list

2017-10-14 Thread Marcin Erdmann
Content defintions are method calls and not map entries. You should use the following: static def ids = ['header', 'title', 'element1', 'etc'] static content = { ids.each { id -> "$id"({ $(id: id) }) } } On Fri, Oct 13, 2017 at 5:32 PM, Adam Gilbert <

Re: [geb-user] Run single Cucumber test with Geb

2017-10-13 Thread Marcin Erdmann
No worries and good luck. On Fri, Oct 13, 2017 at 8:44 AM, Rasmus Hovendal <hoven...@gmail.com> wrote: > Sounds reasonable - i'll try that. Thanks for replying and sorry for > posting in wrong mailing list :) > > 2017-10-12 14:50 GMT+02:00 Marcin Erdmann <marcin.erdm...@pro

Re: [geb-user] waiting: on module content, complex at clauses

2017-10-12 Thread Marcin Erdmann
On Thu, Oct 12, 2017 at 10:10 AM, Samuel Rossinovic < samuel.rossino...@gmail.com> wrote: > >- What is the effect of setting (wait: true) on a content template >that is a Module? a ModuleList? > > Setting wait to true on a content template will cause waiting until that temple returns a

Re: [geb-user] Run single Cucumber test with Geb

2017-10-12 Thread Marcin Erdmann
Asking in whatever is the support channel for the cucumber plugin used in that example project (https://github.com/samueltbrown/gradle-cucumber-plugin) will probably yield a better chance of getting an answer to your question. Marcin On Thu, Oct 12, 2017 at 1:44 PM, Rasmus Hovendal

Re: [geb-user] Unable to run Selenium geb files in Chrome Driver (Windows OS)

2017-10-12 Thread Marcin Erdmann
I think that you are getting this error because you did not import ChromeDriverManager in GebConfig.groovy. >From what I can tell you are using Gradle to build your project so there is no need to use WebDriverManager. I created, what I believe to be, an easier way to manage your webdriver

Re: [geb-user] passing more options to DownloadSupport methods

2017-10-09 Thread Marcin Erdmann
Sam, Can you please explain what you mean by "pass the certificate's resource name & password as arguments to the closure"? I had a look at the snippet you linked to and I don't quite get what you are trying to achieve and where you you want pass the data from. Marcin On Mon, Oct 9, 2017 at

Re: [geb-user] StaleElementReferenceException in Geb

2017-10-09 Thread Marcin Erdmann
If Page transition doesn't involve a to() call, but rather, just an at() > <https://groups.google.com/forum/#!topic/geb-user/YArbpe-aWzc>, will that > affect the above? > > > > On Friday, October 6, 2017 at 8:07:28 AM UTC+11, Marcin Erdmann wrote: >> >> No, th

[geb-user] [ANN] Geb 2.0-rc-1 has been released

2017-10-08 Thread Marcin Erdmann
Hi everyone, Version 2.0-rc-1 of Geb is now available from Maven Central. Given it's a release candidate, it will be highly appreciated if you can try it out and provide feedback. The release of the next major version after only two releases in the 1.x line is caused by unavoidable breaking

Re: [geb-user] Geb popularity and future

2017-10-08 Thread Marcin Erdmann
As promised, here are the download statistics for geb-core artifact from maven central: http://oi63.tinypic.com/2qxxl6g.jpg On Sun, Oct 8, 2017 at 8:07 AM, Jakub wrote: > Hi Marcin, > > thank you for your reply. To me, the numbers are convincing, and so far I > can say

Re: [geb-user] StaleElementReferenceException in Geb

2017-10-05 Thread Marcin Erdmann
ng dumbfounded by cases where I > believe my geb code is mirroring what I see in the browser, yet some > underlying, invisible issue fails a test. > > > On Monday, September 25, 2017 at 4:18:55 AM UTC+10, Marcin Erdmann wrote: >> >> Geb indeed evaluates te

Re: [geb-user] Geb popularity and future

2017-10-05 Thread Marcin Erdmann
Hi Jakub, Geb has been around since 2010 and is not going away as far as I'm concerned. If you look at commit history on github, it has a healthy stream of commits over the years: https://github.com/geb/geb/graphs/contributors. I personally intend to maintain the project in the future. You can

Re: [geb-user] clicking a page object that is required: false

2017-10-03 Thread Marcin Erdmann
Hi, Thanks for reporting. This looks like an oversight, especially as all click() overloads on EmptyNavigator apart from the one taking no arguments are actually throwing UnsupportedOperationException, see

Re: [geb-user] Firefox 55 - Unsupported Command mouseMoveTo

2017-09-29 Thread Marcin Erdmann
I suspect that it might be one of the features that is not yet implemented in Gecko driver. Or it might be only implemented in the latest versions of the driver. Do you know if SauceLabs are using the latest version of geckodriver binary? I'd try to verify what happens when the test is run locally

Re: [geb-user] Verify that content does not exist. Iterating over content templates

2017-09-29 Thread Marcin Erdmann
There are multiple questions in your email, hopefully I will be able to adress them all. First of all, I'd suggest you indeed use required: false in your content definitions. And if your "nested" definitions might return an empty navigator, I'd mark them as not required. I understand that this

Re: [geb-user] StaleElementReferenceException in Geb

2017-09-24 Thread Marcin Erdmann
Geb indeed evaluates templates on every call but there are multiple situations when results of that evaluation are "cached" in the context of what you're doing. To name three: 1. Some operations are not atomic. What I mean by that is what looks like a single Geb call results in multiple WebDriver

Re: [geb-user] Re: GEB go "http://google.com" fails on OS X FireFox and Chrome

2017-09-12 Thread Marcin Erdmann
As far as I can tell you are getting an SSL certificate error. This will be something specific to your environment, not related to Geb, possobly related to WebDriver. The only reason I can think of for you gettig this error is that your FF instalation is custom or the set of standard certificates

Re: [geb-user] Page load hangs when calling to() in setup()

2017-09-11 Thread Marcin Erdmann
I do not understand why if you set MySpec.setup() to call 'to Index', test1 hangs until the test fails, only loading parts of the Index page. I would expect doing 'to Index' in setup() to resolve your issue. Can you please explain why only part of your index page is loaded in that case? On Mon,

Re: [geb-user] Re: GEB go "http://google.com" fails on OS X FireFox and Chrome

2017-09-08 Thread Marcin Erdmann
You are using relatively new versions of browsers and both of them now need special additional executable (chromedriver and geckodriver respectively) and a bit of configuration to be able to be used with WebDriver. If you just want to get started then I'd suggest downgrading FF below version 47

Re: [geb-user] GEB go "http://google.com" fails on OS X FireFox and Chrome

2017-09-07 Thread Marcin Erdmann
Looks like your Chrome is crashing for some reason when it is being started by WebDriver. Can you please confirm that you are able to run Chrome on your machine when starting it manually, that is not through WebDriver? A quick Google search seems to suggest people seeing similar issues when Google

Re: [geb-user] Test fails inconsistently on evaluation of front-end-generated, post-DOMContentLoaded content

2017-09-03 Thread Marcin Erdmann
; >> >> it returns 0 objects, whereas if the line is split to: >> >> def cartRows = $("table tr").tail().moduleList(CartRow) >> cartRows.find { it.productName == "The Book Of Geb"} >> >> >> find *does* yield the expected object. >>

Re: [geb-user] Test fails inconsistently on evaluation of front-end-generated, post-DOMContentLoaded content

2017-09-03 Thread Marcin Erdmann
cted object. > > Is there some module equivalent of at() waiting? > > Thanks! > > On Tuesday, August 29, 2017 at 8:05:02 AM UTC+10, Marcin Erdmann wrote: > > Yes there is. Do not specify `wait: true` on your content and wrap your at >> checker in a wait for call,

Re: [geb-user] GebConfig waiting presets ignored

2017-08-30 Thread Marcin Erdmann
No worries, I'm glad you figured it out on your own. :) On Tue, 29 Aug 2017 at 14:45, 'Marko Pareigis' via Geb User Mailing List < geb-user@googlegroups.com> wrote: > OMG how embarrasing 'presets = {' was the only problem I had ... why > did I put the '=' in there ;-) > > 2017-08-29 14:00

Re: [geb-user] "to" content DSL param - will clicking the content return the page like to()

2017-08-28 Thread Marcin Erdmann
> Thanks. > > I am keen to try this solution, but am unsure how to pass a Page class > reference as a parameter. > > > On Thursday, August 17, 2017 at 5:01:00 PM UTC+10, Marcin Erdmann wrote: >> >> If I remember correctly (on my mobile atm) Navigator.click() returns the

Re: [geb-user] Test fails inconsistently on evaluation of front-end-generated, post-DOMContentLoaded content

2017-08-28 Thread Marcin Erdmann
Yes there is. Do not specify `wait: true` on your content and wrap your at checker in a wait for call, either explicitly: static at = { waitFor { heading == "Accounts - Owing" } or implicitly by using atCheckWaiting: http://www.gebish.org/manual/current/#page-level-at-check-waiting. On Mon,

Re: [geb-user] "to" content DSL param - will clicking the content return the page like to()

2017-08-17 Thread Marcin Erdmann
If I remember correctly (on my mobile atm) Navigator.click() returns the clicked navigator instance, so your assumption is not correct. I would suggest writing a custom module implementation with a method called, for example, clickTo() having HelpPage as the return type and the implementation

Re: [geb-user] Base property for moduleList nested in a module

2017-08-17 Thread Marcin Erdmann
As long as someSelExpr returns a single element navigator the bases for CheckboxItem and CheckboxList will be exactly the same. I suspect it is not the case and someSelExpr returns multiple element navigator (why would you use moduleList otherwise?). In that case the base for CheckboxList will be

Re: [geb-user] GebConfig.groovy file seems to be ignored

2017-08-04 Thread Marcin Erdmann
; > Lee > > On Thursday, August 3, 2017 at 2:46:08 AM UTC-5, Marcin Erdmann wrote: > >> Lee, >> >> What's the full path to your GebConfig.groovy file? It should be located >> in the root of one of resource directories or root of one of the source >>

Re: [geb-user] Is there something like 'Categories' within Geb?

2017-07-10 Thread Marcin Erdmann
gt; I can see where we may have tests with the same Category spread across > packages, and just want to execute all those tests regardless of where they > reside. > > I appreciate all of your help, > > Lee > > > On Saturday, July 8, 2017 at 10:43:57 AM UTC-5, Marcin Erdma

Re: [geb-user] Is there something like 'Categories' within Geb?

2017-07-08 Thread Marcin Erdmann
t; > Can't load category class [com.package.testclass.Database]. > > org.gradle.api.InvalidUserDataException: Can't load category class >> [com.package.testclass.Database]. > > > On Sunday, July 2, 2017 at 1:29:16 PM UTC-5, Marcin Erdmann wrote: >> >> Lee, >>

Re: [geb-user] Is there something like 'Categories' within Geb?

2017-07-02 Thread Marcin Erdmann
Lee, Stefan is definitely right that this question is not really a Geb question as Geb is test and build framework agnostic (although I'm sure a lot people will agree that using it with Spock is the idiomatic way) and running particular tests is a concern for the test and build framework in my

<    1   2   3   >