Questions tagged [graphene2]

Graphene 2 project is designed as set of extensions for Selenium WebDriver project focused on rapid development and usability in Java environment.

API is straightforward and enforces tester to write Ajax-enabled and reusable tests and test abstractions,
encourages to write tests in a consistent level of abstraction using Page Objects and Page Fragments,
the code is robust with improved readability,
    supports request guarding and interception,
    improved Waiting API,
allows WebDriver API interception
focuses on portability across browsers,
it enables JQuery selectors as a location strategy which is familiar to web development community
brings concepts for on-the-fly injection of extensions to a page code (enabling advanced testing features)
integrates with Arquillian Core and Arquillian Drone extension
    in order to browser setup browser and container integration easily

With all the concepts above, Graphene 2 brings power to space of enterprise Java-based testing

32 questions
1
vote
1 answer

Initialize Page Objects - Arquillian - Selenium

I am new to Selenium and Arquillian framework. I am trying to implement Page Object Model. Webdriver browser capabilities are saved in arquillian xml file. I am using TestNG and created the following classes: public class Test{ @Drone Webdriver…
1
vote
1 answer

@FindBy with Arquillian Graphene using className

@FindBy(className = "shellTileBase") private WebElement tile; @FindBy(className = "FilterDefault FilterIcon UiIcon IconMirrorInRTL") private WebElement form; I am working with selenium and testng but am trying to add arquilliian to my testing.…
Sharon
  • 146
  • 1
  • 8
1
vote
2 answers

Arquillian Graphene @Location placeholder

I'm learning Arquillian right now I wonder how to create page that has a placeholder inside the path. For example: @Location("/posts/{id}") public class BlogPostPage { public String getContent() { // ... …
Yavin
  • 445
  • 3
  • 15
1
vote
1 answer

Problems following arquillian-graphene guide

A friend and I are having serious difficulties following this guide: http://arquillian.org/guides/functional_testing_using_graphene/ Previously we did the first Getting Started guide with arquillian, having also serious issues with the jboss…
Borra
  • 23
  • 7
0
votes
0 answers

graphene mutation: Variable '$aufmassVom' got invalid value ''; Date cannot represent value: ''

I get the message Variable '$aufmassVom' got invalid value ''; Date cannot represent value: '' when I send this graphql mutation with an empty value for "aufmassVom": mutation { createParzelle(standort: "test", aufmassVom: "", besonderheiten:…
Andre
  • 623
  • 2
  • 9
  • 20
0
votes
1 answer

Can't use stringified JSON in graphene test

I'm trying to write a test that takes in a stringified json value for one of my fields (questionData) and it's failing: I wrote the mutation like this: query = '''mutation { createScorecard( name: "Test…
Batman
  • 5,563
  • 18
  • 79
  • 155
0
votes
1 answer

How to make working MavenImporter on Graphene 2.3

I'm working with a web application based on jsf, and I've some functional tests in which Arquillian is used. The dependencies of my pom file are the following 1.1.14.Final
Gavi
  • 1,300
  • 1
  • 19
  • 39
0
votes
0 answers

How to access PrimeFaces components through Graphene in the most portable way?

I'm writing Arquillian+Graphene functional tests for a Java EE web client with Primefaces 6.1 components and would like to write them in the most portable way from the beginning. I noticed that there's no possibility to perform operations like…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
0
votes
0 answers

How to do login into Before annotated method using Graphene?

I'm learning Graphene and created to page objects for a login page and a welcome page. Loginpage @Location("myurl/login.xhtml") public class LoginPage { @Drone private WebDriver driver; @FindBy(id = "username") private WebElement…
bish
  • 3,381
  • 9
  • 48
  • 69
0
votes
1 answer

How to inject a Drone instance without managing its lifecycle?

I have a Graphene Page Object. @Location("/page") public class MyPage { @Drone private WebDriver driver; // page methods using the driver } And a Test Class that uses the page object. @RunWith(Arquillian.class) public class MyTest…
Vsevolod Golovanov
  • 4,068
  • 3
  • 31
  • 65
0
votes
0 answers

Arquillian, Graphene and PrimeFaces. How to interact with the fileUpload component?

I've a web application with JSF 2.2, PrimeFaces 6.0. All is working fine, but I don't know in which way I can interact with the fileUpload component coming from Prime Faces. In which way can I upload a file using Arquillian, Graphene and Drone? Just…
Gavi
  • 1,300
  • 1
  • 19
  • 39
0
votes
2 answers

Arquillian for Blackbox Selenium testing

I am trying to use Arquillian / Graphene for my selenium blackbox testing. I would like to use arquillian along with testng. I do not use any jboss/tomcat. I would like to run my tests as standalone tests as we do in testng. My test is very…
KitKarson
  • 5,211
  • 10
  • 51
  • 73
0
votes
1 answer

Arquillian Graphene/Drone tests use wrong port to access WebLogic managed server

I'm using Arquillian to perform integration tests for one of my projects and have found that when the application is deployed to a WebLogic 12c R2 container the wrong port number is being used by Arquillian Graphene/Drone to perform the browser…
Paul H
  • 2,104
  • 7
  • 39
  • 53
0
votes
1 answer

Why JSF UI components are not displayed in Graphene WebDriver test browser instance?

I wonder why my JSF 2.2 UI input components are not rendered in my Arquillian Drone Graphene WebDriver's test browser instance. My test page is as follows:
yayayokoho3
  • 1,209
  • 2
  • 16
  • 40
0
votes
2 answers

what is good configuration of arquillian-drone-graphene functional testing?

I could not find a good configuration for JEE7 web application functional testing using arquillian-drone-graphene. Note: I can run CDI and EJB tests in Arquillian test suite; they work fine. My POM.xml is as follows: