Skip to content

Instantly share code, notes, and snippets.

View nhatthuyld's full-sized avatar

nhatthuy nhatthuyld

  • Ho Chi Minh, Viet Nam
View GitHub Profile
package com.examples.seleniumrc;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
package com.examples.seleniumrc;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
package com.examples.seleniumrc;
import java.util.function.Predicate;
import javax.swing.plaf.synth.SynthStyleFactory;
import org.hamcrest.core.Is;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
public static class WebDriverExtensions
{
public static void ClickElement(this IWebElement element, Drivers driverChoice)
{
switch (driverChoice)
{
case Drivers.InternetExplorer:
element.SendKeys("\n");
break;
default:
package com.examples.seleniumrc;
import java.util.function.Predicate;
import javax.swing.plaf.synth.SynthStyleFactory;
import org.hamcrest.core.Is;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
package com.examples.seleniumrc;
import java.util.function.Predicate;
import javax.swing.plaf.synth.SynthStyleFactory;
import org.hamcrest.core.Is;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
@nhatthuyld
nhatthuyld / Booking_moi nhat.java
Last active May 25, 2016 05:04
oh my got! it is half day
package com.examples.seleniumrc;
import java.util.function.Predicate;
import javax.swing.plaf.synth.SynthStyleFactory;
import org.hamcrest.core.Is;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
package com.examples.seleniumrc;
import java.util.function.Predicate;
import javax.swing.plaf.synth.SynthStyleFactory;
import org.hamcrest.core.Is;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
package com.examples.seleniumrc;
import java.util.function.Predicate;
import javax.swing.plaf.synth.SynthStyleFactory;
import org.hamcrest.core.Is;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
@nhatthuyld
nhatthuyld / 25-05-16-23h.java
Created May 26, 2016 00:06
get class for checking table header
package com.examples.seleniumrc;
import javax.swing.plaf.synth.SynthStyleFactory;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;