Skip to content

Instantly share code, notes, and snippets.

View mknorth's full-sized avatar

Maksym Kravchuk mknorth

View GitHub Profile
package homework3;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterGroups;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
public class BrowserLogin {
package homework6;
public class SortingAlgorithms {
public static void main(String[] args) {
int[] arr = {0,-2,3,4,235,35,36,36,23,3};
int temp,j;
for(int i = 0; i < arr.length - 1; i++){
if (arr[i] > arr[i + 1]) {
temp = arr[i + 1];
@mknorth
mknorth / Task6Akinator.java
Created December 26, 2017 13:28
Akinator
package homework4;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
//import java.security.Key;
import java.util.Scanner;
package homework3;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.testng.annotations.AfterGroups;
import org.testng.annotations.Test;
public class BanksExample extends BrowserLogin {
double averagePurchase;
double averageSele;
package homework2;
public class IntCharFloatCharFloatCharInt {
public static void main(String[] args) {
char xChar;
Integer x2 = new Integer(75);
xChar = (char) x2.intValue();
System.out.println("Char-x2: " + xChar);
@mknorth
mknorth / FacebookExamXPath.java
Last active December 11, 2017 11:58
HomeWork
package homework1;
//логинит на Фейсбук и выводит титул и надпись на загруженной картинке
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class FacebookExamXPath {
public static void main(String[] args) {