Development

I’m using Selenium in my Groovy application as a Maven dependency. Now I’m looking for a way to log the used Selenium Version to the console.
I tried this:
BuildInfo info = new BuildInfo();
def infoString = info.toString();

But infoString only contains:
“Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown'”.
I also tried reading the version from the classpath of the project and though this works in a Java project in a groovy project the classpath no longer contains the used selenium version.
In a java project, the infoString also contains the used version, revision etc.
Any help would be very much appreciated!

I am working on a mobile project, but I got stuck with it, as I cannot Locate any element for this Login pop-up Box through UIAutomator Viewer, the only elements being displayed by the UIAutomator viewer are the web Elements that are beneath the Login pop-up box.

How can I go about identifying the Username, Password input boxes, Sign In button and any other element(s) on this Login pop-up box.

I wonder if there is a way to assert that XML response does NOT contain any other tags than those expected?
I am using plain http requests (no WSDL, schema validation, not SOAP, not REST) and the application protocol is custom for a particular application (POS systems).

I was thinking (and started) of creating a custom SOAPUI library with script that contains:

a reference table
a function that checks if returned tag is on the list (in reference table)

if the returned tag is not on the list, then assertion fails

So, my question is: is there a better way to validate that?
The response XMLs have a lot of fields, some mandatory, some optional and some conditional depending on other (within same request).