Skip to content

Instantly share code, notes, and snippets.

package org.richfaces.fragment.dataTable;
import java.util.List;
import org.jboss.arquillian.graphene.Graphene;
import org.jboss.arquillian.graphene.fragment.Root;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.richfaces.fragment.common.picker.ChoicePicker;
@jstefek
jstefek / storage
Last active August 29, 2015 14:00
public class AttributeSetup<T> { // better name ?
private final T defaultValue;
private T actualValue;
public AttributeSetup(T defaultValue) {
if (defaultValue == null) {
throw new IllegalArgumentException("Default value cannot be null!");
}
this.defaultValue = defaultValue;
driver.findElements(By.cssSelector("div.rf-edt[id$=richEDT] .rf-edt-b .rf-edt-cnt tr");//30, OK
driver.findElement(By.cssSelector("div.rf-edt[id$=richEDT]")).findElements(By.cssSelector(".rf-edt-b .rf-edt-cnt tr"); //41, KO
driver.findElement(By.cssSelector("div.rf-edt[id$=richEDT]")).findElements(ByJQuery.cssSelector(".rf-edt-b .rf-edt-cnt tr");//41, KO
driver.findElement(By.cssSelector("div.rf-edt[id$=richEDT]")).findElements(ByJQuery.selector(".rf-edt-b .rf-edt-cnt tr");//30, OK
mvn -Dtest=org.richfaces.tests.metamer.ftest.richExtendedDataTable.TestExtendedDataTableSimple#testFirst -Dtemplates=edt -DexpludedGroups=Future,extended -Pwildfly-managed-8-1 clean test
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@jstefek
jstefek / release-settings.xml
Created November 26, 2014 09:57
richfaces release settings
<settings>
<localRepository>/home/hudson/users-tmp/lfryc/richfaces-release-m2-repo</localRepository>
<mirrors>
<mirror>
<id>jboss-staging-repository-group</id>
<mirrorOf>!jboss-qa-releases,!jboss-public-repository-group,central</mirrorOf>
<name>JBoss.org Staging Repository Group</name>
<url>https://repository.jboss.org/nexus/content/groups/staging</url>
</mirror>
</mirrors>
/*
* JBoss, Home of Professional Open Source
* Copyright 2010-2015, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
/*
* JBoss, Home of Professional Open Source
* Copyright 2010-2015, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository></localRepository>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<pluginGroups/>
<servers/>
<!DOCTYPE html>
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div>TODO write content</div>
<div style="overflow: scroll; height: 200px; width: 600px;">
<?xml version="1.0" encoding="UTF-8"?>
<!--
JBoss, Home of Professional Open Source
Copyright 2013, Red Hat, Inc. and individual contributors
by the @authors tag. See the copyright.txt in the distribution for a
full listing of individual contributors.
This is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version.