This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.company.seleniumframework.functional; | |
| import com.company.seleniumframework.AutomationTest; | |
| import com.company.seleniumframework.Browser; | |
| import com.company.seleniumframework.Config; | |
| import org.junit.Test; | |
| import org.openqa.selenium.By; | |
| @Config(url="http://aviprobo.doorfree.com/control.html", browser= Browser.CHROME) | |
| public class TextArea extends AutomationTest { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.company.seleniumframework.functional; | |
| import com.company.seleniumframework.AutomationTest; | |
| import com.company.seleniumframework.Browser; | |
| import com.company.seleniumframework.Config; | |
| import org.junit.Test; | |
| import org.openqa.selenium.By; | |
| @Config(url="https://collaboration.skype.com/promotion/?cm_mmc=AFCJ%7C1250_B1-_-11129583-1225267", browser= Browser.CHROME) | |
| public class SkypeTest extends AutomationTest { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Color | |
| attr_reader :r, :g, :b | |
| def initialize(r,g,b) | |
| @r = r | |
| @g = g | |
| @b = b | |
| end | |
| def brightness_index |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Config(url="http://flipkart.com", browser=Browser.FIREFOX) | |
| public class TestFlipKart extends AutomationTest { | |
| @Test | |
| public void testLoginLogout() { | |
| String username = "<username>"; | |
| String password = "<password>"; | |
| click(By.cssSelector("a[href*='/login']")) | |
| .setText(By.cssSelector("input[name='email']"), username) | |
| .setText(By.cssSelector("input[name='password']"), password) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This tests My Site | |
| */ | |
| @Config(url="http://mysite.com", browser=CHROME) | |
| public class TestMySite extends AutomationTest { | |
| @Test | |
| public void testSomething() { | |
| click(By.linkText("something")) | |
| .validateText(By.cssSelector("input"), "something"); |
NewerOlder