Skip to content

Instantly share code, notes, and snippets.

View gerixx's full-sized avatar

Gerald Ehmayer gerixx

View GitHub Profile
@gerixx
gerixx / ReflectionChangeFinalMember.java
Last active October 14, 2019 11:10
Java reflection example to change final member
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
// Extended code from https://stackoverflow.com/questions/3301635/change-private-static-final-field-using-java-reflection
// to support change of final members of an instance.
public class ReflectionChangeFinalMember {
@gerixx
gerixx / ClickIssueSafari13.java
Created October 10, 2019 08:45
Selenium click issue with Safari 13
import java.net.URL;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
/**
* Safari 13.0.2 on macOS 10.15
*/
public class ClickIssueSafari13 {