This file contains 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
import com.codeborne.selenide.WebDriverRunner; | |
import com.github.kklisura.cdt.protocol.commands.Network; | |
import com.github.kklisura.cdt.protocol.types.network.Request; | |
import com.github.kklisura.cdt.services.ChromeDevToolsService; | |
import com.github.kklisura.cdt.services.ChromeService; | |
import com.github.kklisura.cdt.services.impl.ChromeServiceImpl; | |
import com.github.kklisura.cdt.services.types.ChromeTab; | |
import org.junit.jupiter.api.Test; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.Capabilities; |
This file contains 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
public class AccountTest { | |
public static void main(String[] args) { | |
Account account = new Account("111-22-33-4444"); | |
System.out.println("Остаток на счету " + account.number + ": " + account.getBalance()); | |
account.pay(3); | |
System.out.println("Остаток на счету " + account.number + ": " + account.getBalance()); | |
} | |
} |
This file contains 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
public class AnimalsTest { | |
public static void main(String[] args) { | |
Cat cat = new Cat("Tom", 8); | |
Mouse mouse = new Mouse("Jerry", 3); | |
System.out.println("Cat name is: " + cat.getName()); | |
System.out.println("Mouse name is: " + mouse.getName()); | |
System.out.println("Mouse weight is: " + mouse.weight); | |
} | |
} |
This file contains 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
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
public class FileTest { | |
public static void main(String[] args) throws IOException { | |
int[] numbers = new int[] {1,2,3,4,5}; | |
try (PrintWriter writer = new PrintWriter(new FileWriter("zopa.txt"))) { | |
for (int number : numbers) { |
This file contains 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
import com.codeborne.selenide.SelenideElement; | |
import org.junit.jupiter.api.Test; | |
import static com.codeborne.selenide.CollectionCondition.size; | |
import static com.codeborne.selenide.Selectors.byText; | |
import static com.codeborne.selenide.Selenide.$; | |
import static com.codeborne.selenide.Selenide.$$; | |
public class PageObjectWithoutContainersTest { |
This file contains 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
org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information) | |
Command duration or timeout: 0 milliseconds | |
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html | |
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' | |
System info: host: 'Andreis-MacBook-Pro.local', ip: 'fe80:0:0:0:455:5eaa:5b43:e5e8%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.5', java.version: '1.8.0_144' | |
Driver info: io.appium.java_client.android.AndroidDriver | |
Capabilities {acceptSslCerts: true, appActivity: com.android.calculator2.Cal..., appPackage: com.android.calculator2, automationName: Appium, databaseEnabled: false, desired: {acceptSslCerts: true, appActivity: com.android.calculator2.Cal..., appPackage: com.android.calculator2, automationName: Appium, deviceName: 0123456789ABCDEF, handlesAlerts: true, javascriptE |
This file contains 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
public class kt_6_1 { | |
public static void main(String[] args) { | |
int esimene[][] = new int[4][4]; | |
int teine[][] = new int[4][4]; | |
int kolmas[][] = new int[4][4]; | |
for (int x = 0; x < 4; x++) { | |
for (int y = 0; y < 4; y++) { | |
esimene[y][x] = (int) (Math.random() * 100); | |
teine[y][x] = (int) (Math.random() * 100); | |
kolmas[y][x] = (int) (Math.random() * 100); |
This file contains 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
import com.codeborne.selenide.Configuration; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.junit.runners.Parameterized; | |
import org.openqa.selenium.By; | |
import java.util.Arrays; | |
import java.util.List; |
NewerOlder