From 742862a9cc22434c56e115b078db423bd438071d Mon Sep 17 00:00:00 2001 From: Orcunn112 Date: Sun, 13 Nov 2022 14:31:59 +0300 Subject: [PATCH 1/3] The project was updated completely --- .idea/libraries/commons_io_2_8_0.xml | 9 ---- .idea/libraries/commons_io_2_8_0__1_.xml | 9 ++++ .idea/libraries/lib.xml | 10 ---- .idea/libraries/selenium_java_4_3.xml | 13 ----- TrendYolProjectTest.iml | 4 +- .../TestGruppen/Test1.class | Bin 562 -> 3222 bytes src/TestGruppen/POMCodes_112.java | 26 ++++++++++ src/TestGruppen/Test1.java | 49 ++++++++++++++++-- 8 files changed, 83 insertions(+), 37 deletions(-) delete mode 100644 .idea/libraries/commons_io_2_8_0.xml create mode 100644 .idea/libraries/commons_io_2_8_0__1_.xml delete mode 100644 .idea/libraries/lib.xml delete mode 100644 .idea/libraries/selenium_java_4_3.xml create mode 100644 src/TestGruppen/POMCodes_112.java diff --git a/.idea/libraries/commons_io_2_8_0.xml b/.idea/libraries/commons_io_2_8_0.xml deleted file mode 100644 index f471222..0000000 --- a/.idea/libraries/commons_io_2_8_0.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/commons_io_2_8_0__1_.xml b/.idea/libraries/commons_io_2_8_0__1_.xml new file mode 100644 index 0000000..37cb266 --- /dev/null +++ b/.idea/libraries/commons_io_2_8_0__1_.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/lib.xml b/.idea/libraries/lib.xml deleted file mode 100644 index 87528d0..0000000 --- a/.idea/libraries/lib.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/selenium_java_4_3.xml b/.idea/libraries/selenium_java_4_3.xml deleted file mode 100644 index 170a6d0..0000000 --- a/.idea/libraries/selenium_java_4_3.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/TrendYolProjectTest.iml b/TrendYolProjectTest.iml index 1a75927..bf01c64 100644 --- a/TrendYolProjectTest.iml +++ b/TrendYolProjectTest.iml @@ -8,8 +8,8 @@ - - + + \ No newline at end of file diff --git a/out/production/TrendYolProjectTest/TestGruppen/Test1.class b/out/production/TrendYolProjectTest/TestGruppen/Test1.class index 55f36a1d7b3c6c1e8ce34afb7dd107bdf8d658f4..084a3d259cded5e3802662a8bf70234cc71fba3a 100644 GIT binary patch literal 3222 zcmbVOS#%p$8U99=J+?G%5<5%LvlDuO%9ws^r8Sxm&4J~%$@&! z_urTM=70bAX8`x(cL`)LZDOX2?{f*nFl*xD3AAhC`7We2(Zp;QAB80PQS8FwxL{%~ zfo@E9;tBn}sJAaAaT%Y`pHJ$?Clh!IpVAw)W;?GRP7);ujax9Wm>~BhEkY)61`PB37hF+1p?aKA!ukb*wY}3UB z4};wmxOPiE3nt!xE{Q5{gj2z;|ms^!}BIyu<%8^s3~8v z@MV0(#8)kR4PUqL4bA(T_?Crl<0TW{vG83CTKFEmZ{Tn%JGa7SVG@s6_yK-s;zt&K zjGvhJsfC~6=N4YpGJav<75vh~uPpo;zhQx?C6UrDNL6(7Qv zR%bn5Ju2kll1iOQP1|ZITd~*DCC{npI>_E$M3K%qWl3`5z))&cx+QNlD_vLk5tD1z zQX`o$%{|J$qE{tn+g}VB2A4;k%q|Kw;nmy{lVdXEcV0LuoyjV%Iu@~P#5s=8jUd zX!M9X+sY=A(vG&SlP!p@zTI?`v+Q`wQrM0os_Z`PA*o5*!g`=Yh3(0!5zyBt9qHv} zSvQK+BkT$VcG$WlGP=X*oyC>eL5fmW`^BM`6_X?i1#5hF174#Oa(NjjqV5X4w@G39 z4&>9UQ}%K;+*;3yi`nPA^}iH_-8FiGmX ziLRO9KOnJzq=6f-ZlRmoclGS5V>ju0Hqc|Bj@~-<*3mae(!M(Gu4DfO4ltu1i1)=e zVXxrD0sYYz-@w5bUPpf&_uRmtX4-2wT*r|)&8i8x$&?%WHjrY^YeIyiI_`Z9N2zDa zy}sw-#;b2tx!rS&+G=;Th3o`!fE+Yr;pko#fGv@;^R>3BGs{;8VxmW0anFtHbB>3|r~ QdoYE^!o>R+PsEV_A2#%d^8f$< delta 259 zcmYL?K~BOz7=^zX+fG}mA}RtZ77{ij#*i4;cn&X6NJu;cXE2j^4_Rp9Lia4V0ShkR z5sa@D;w;{qf8PJTd1)_${_5xB6S$|B5^QS}&6 y(>?oJkRNJ-Bb9Aco>VYMme|I@8^J#yRfOuXYBdIXO0uIID=h!0%MB+|OXC;(lo>w& diff --git a/src/TestGruppen/POMCodes_112.java b/src/TestGruppen/POMCodes_112.java new file mode 100644 index 0000000..81c7836 --- /dev/null +++ b/src/TestGruppen/POMCodes_112.java @@ -0,0 +1,26 @@ +package TestGruppen; + +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.support.FindBy; +import org.openqa.selenium.support.PageFactory; + +import java.util.List; + +public class POMCodes_112 { + + public POMCodes_112(WebDriver driver) {PageFactory.initElements(driver, this);} + + @FindBy(xpath = "//button[text()='KABUL ET']") + public WebElement clickcokieaccept; + + @FindBy(css = "[class='component-list component-small-list']") + public WebElement Allimagines; + + @FindBy(xpath = "//*[@class='component-item']") + public List counttheelements; + + + +} + diff --git a/src/TestGruppen/Test1.java b/src/TestGruppen/Test1.java index d6ccfa5..2eeba39 100644 --- a/src/TestGruppen/Test1.java +++ b/src/TestGruppen/Test1.java @@ -1,16 +1,59 @@ package TestGruppen; import Utils.GenelWebDriver; +import org.openqa.selenium.JavascriptExecutor; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.interactions.Actions; +import org.openqa.selenium.support.ui.ExpectedConditions; +import org.testng.Assert; import org.testng.annotations.Test; +import org.testng.asserts.SoftAssert; public class Test1 extends GenelWebDriver { - @Test - void test1(){ - System.out.println("check 1 "); + @Test(priority = 1) + void test1() { + + Actions actions=new Actions(GenelWebDriver.driver); + SoftAssert sft=new SoftAssert(); + + POMCodes_112 elements = new POMCodes_112(driver); + elements.clickcokieaccept.click(); + + System.out.println("sayısı="+elements.counttheelements.size()); + + + actions.moveToElement(elements.Allimagines).build().perform(); + + for (int i = 0; i Date: Mon, 14 Nov 2022 00:14:01 +0300 Subject: [PATCH 2/3] The project was updated completely 1 --- src/TestGruppen/Test1.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/TestGruppen/Test1.java b/src/TestGruppen/Test1.java index 2eeba39..68b09bd 100644 --- a/src/TestGruppen/Test1.java +++ b/src/TestGruppen/Test1.java @@ -23,7 +23,6 @@ void test1() { System.out.println("sayısı="+elements.counttheelements.size()); - actions.moveToElement(elements.Allimagines).build().perform(); for (int i = 0; i Date: Mon, 14 Nov 2022 00:15:37 +0300 Subject: [PATCH 3/3] The project was updated completely/Orcun --- src/TestGruppen/POMCodes_112.java | 1 - src/TestGruppen/Test1.java | 2 -- src/Utils/GenelWebDriver.java | 3 --- 3 files changed, 6 deletions(-) diff --git a/src/TestGruppen/POMCodes_112.java b/src/TestGruppen/POMCodes_112.java index 81c7836..fabd6d2 100644 --- a/src/TestGruppen/POMCodes_112.java +++ b/src/TestGruppen/POMCodes_112.java @@ -21,6 +21,5 @@ public class POMCodes_112 { public List counttheelements; - } diff --git a/src/TestGruppen/Test1.java b/src/TestGruppen/Test1.java index 68b09bd..8cc0a22 100644 --- a/src/TestGruppen/Test1.java +++ b/src/TestGruppen/Test1.java @@ -11,7 +11,6 @@ public class Test1 extends GenelWebDriver { - @Test(priority = 1) void test1() { @@ -38,7 +37,6 @@ void test1() { - } public void scrollToIntoMiddle(WebElement element) { diff --git a/src/Utils/GenelWebDriver.java b/src/Utils/GenelWebDriver.java index 1ac4701..2c630e0 100644 --- a/src/Utils/GenelWebDriver.java +++ b/src/Utils/GenelWebDriver.java @@ -1,8 +1,6 @@ package Utils; -import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeDriverService; import org.openqa.selenium.support.ui.WebDriverWait; @@ -38,7 +36,6 @@ public void BaslangicIslemleri() { } - @AfterClass public void BitisIslemleri(){ System.out.println("Driver stop ....");