diff --git a/Object Repository/Page_My ID/div_( ( ) , - . _ _538061.rs b/Object Repository/Page_My ID/div_( ( ) , - . _ _538061.rs new file mode 100644 index 0000000000000000000000000000000000000000..e04c3d4b9fa6b0930f40f3ec596dc46c2a6d3a9b --- /dev/null +++ b/Object Repository/Page_My ID/div_( ( ) , - . _ _538061.rs @@ -0,0 +1,103 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>div_( ( ) , - . _ _538061</name> + <tag></tag> + <elementGuidId>7f54b5fa-b455-4285-9877-3ad7912535d1</elementGuidId> + <selectorCollection> + <entry> + <key>CSS</key> + <value>div.alert.alert-danger.text-center</value> + </entry> + <entry> + <key>XPATH</key> + <value>//small[@id='alert-js']/div</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>true</useRalativeImagePath> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>tag</name> + <type>Main</type> + <value>div</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>class</name> + <type>Main</type> + <value>alert alert-danger text-center</value> + </webElementProperties> + <webElementProperties> + <isSelected>true</isSelected> + <matchCondition>equals</matchCondition> + <name>text</name> + <type>Main</type> + <value>ไม่พบตัวอักษรอักขระพิเศษ ในรหัสผ่านใหม่ของท่านตัวอย่าง (! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~)Not found symbol in your new passwordExample(! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~)</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath</name> + <type>Main</type> + <value>id("alert-js")/div[@class="alert alert-danger text-center"]</value> + </webElementProperties> + <webElementXpaths> + <isSelected>true</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:idRelative</name> + <type>Main</type> + <value>//small[@id='alert-js']/div</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:neighbor</name> + <type>Main</type> + <value>(.//*[normalize-space(text()) and normalize-space(.)='number'])[1]/following::div[1]</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:neighbor</name> + <type>Main</type> + <value>(.//*[normalize-space(text()) and normalize-space(.)='symbol'])[1]/following::div[1]</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:neighbor</name> + <type>Main</type> + <value>(.//*[normalize-space(text()) and normalize-space(.)='Change Password'])[1]/preceding::div[1]</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:neighbor</name> + <type>Main</type> + <value>(.//*[normalize-space(text()) and normalize-space(.)='© 2018 COMPUTER CENTER BURAPHA UNIVERSITY ALL RIGHTS RESERVED.'])[1]/preceding::div[9]</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:neighbor</name> + <type>Main</type> + <value>//*/text()[normalize-space(.)='ไม่พบตัวอักษรอักขระพิเศษ ในรหัสผ่านใหม่ของท่าน']/parent::*</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:position</name> + <type>Main</type> + <value>//small/div</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:customAttributes</name> + <type>Main</type> + <value>//div[(text() = concat("ไม่พบตัวอักษรอักขระพิเศษ ในรหัสผ่านใหม่ของท่านตัวอย่าง (! " # $ % & " , "'" , " ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~)Not found symbol in your new passwordExample(! " # $ % & " , "'" , " ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~)") or . = concat("ไม่พบตัวอักษรอักขระพิเศษ ในรหัสผ่านใหม่ของท่านตัวอย่าง (! " # $ % & " , "'" , " ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~)Not found symbol in your new passwordExample(! " # $ % & " , "'" , " ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~)"))]</value> + </webElementXpaths> +</WebElementEntity> diff --git a/Object Repository/Page_My ID/div_(Re-New Password) _11379c.rs b/Object Repository/Page_My ID/div_(Re-New Password) _11379c.rs new file mode 100644 index 0000000000000000000000000000000000000000..2eec34bca52e297a9bfb3cd92c7acba138fd8595 --- /dev/null +++ b/Object Repository/Page_My ID/div_(Re-New Password) _11379c.rs @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>div_(Re-New Password) _11379c</name> + <tag></tag> + <elementGuidId>086d11f4-25a5-4cd8-a4d9-7e95ac2b1866</elementGuidId> + <selectorCollection> + <entry> + <key>CSS</key> + <value></value> + </entry> + <entry> + <key>XPATH</key> + <value>//form[@id='form-change-pass']/div[5]</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>true</useRalativeImagePath> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>tag</name> + <type>Main</type> + <value>div</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>class</name> + <type>Main</type> + <value>form-group</value> + </webElementProperties> + <webElementProperties> + <isSelected>true</isSelected> + <matchCondition>equals</matchCondition> + <name>text</name> + <type>Main</type> + <value> + รหัสผ่านใหม่อีกครั้ง (Re-New Password) + + + Show Password + </value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath</name> + <type>Main</type> + <value>id("form-change-pass")/div[@class="form-group"]</value> + </webElementProperties> + <webElementXpaths> + <isSelected>true</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:idRelative</name> + <type>Main</type> + <value>//form[@id='form-change-pass']/div[5]</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:neighbor</name> + <type>Main</type> + <value>(.//*[normalize-space(text()) and normalize-space(.)='รหัสผ่านใหม่ (New Password)'])[1]/following::div[1]</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:neighbor</name> + <type>Main</type> + <value>(.//*[normalize-space(text()) and normalize-space(.)='บัญชีผู้ใช้ (Username)'])[1]/following::div[3]</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:neighbor</name> + <type>Main</type> + <value>//*/text()[normalize-space(.)='Show Password']/parent::*</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:position</name> + <type>Main</type> + <value>//div[5]</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:customAttributes</name> + <type>Main</type> + <value>//div[(text() = ' + รหัสผ่านใหม่อีกครั้ง (Re-New Password) + + + Show Password + ' or . = ' + รหัสผ่านใหม่อีกครั้ง (Re-New Password) + + + Show Password + ')]</value> + </webElementXpaths> +</WebElementEntity> diff --git a/Object Repository/Page_My ID/div_Messenger.rs b/Object Repository/Page_My ID/div_Messenger.rs new file mode 100644 index 0000000000000000000000000000000000000000..8c3f8c5d3e866aebad4b266c133f53b546547c4a --- /dev/null +++ b/Object Repository/Page_My ID/div_Messenger.rs @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>div_Messenger</name> + <tag></tag> + <elementGuidId>6924d00e-f266-4c9d-a70a-46286359fee5</elementGuidId> + <selectorCollection> + <entry> + <key>CSS</key> + <value>div._94vf._9pmv > div</value> + </entry> + <entry> + <key>XPATH</key> + <value>//div[@id='u_0_0_+U']/div/div/div/div/div</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>true</useRalativeImagePath> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>tag</name> + <type>Main</type> + <value>div</value> + </webElementProperties> + <webElementProperties> + <isSelected>true</isSelected> + <matchCondition>equals</matchCondition> + <name>text</name> + <type>Main</type> + <value>แชทกับ สำนักคอมพิวเตอร์ มหาวิทยาลัยบูรพาสวัสดี มีอะไรให้เราช่วยไหมเข้าสู่ระบบ Messenger</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath</name> + <type>Main</type> + <value>id("u_0_0_+U")/div[1]/div[1]/div[@class="_94ve"]/div[@class="_94vf _9pmv"]/div[1]</value> + </webElementProperties> + <webElementProperties> + <isSelected>true</isSelected> + <matchCondition>equals</matchCondition> + <name>ref_element</name> + <type>Main</type> + <value>Object Repository/Page_My ID/iframe_Change Password_f34e7dd86768e8c</value> + </webElementProperties> + <webElementXpaths> + <isSelected>true</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:idRelative</name> + <type>Main</type> + <value>//div[@id='u_0_0_+U']/div/div/div/div/div</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:position</name> + <type>Main</type> + <value>//div/div/div/div/div/div/div/div/div</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:customAttributes</name> + <type>Main</type> + <value>//div[(text() = 'แชทกับ สำนักคอมพิวเตอร์ มหาวิทยาลัยบูรพาสวัสดี มีอะไรให้เราช่วยไหมเข้าสู่ระบบ Messenger' or . = 'แชทกับ สำนักคอมพิวเตอร์ มหาวิทยาลัยบูรพาสวัสดี มีอะไรให้เราช่วยไหมเข้าสู่ระบบ Messenger')]</value> + </webElementXpaths> +</WebElementEntity> diff --git a/Object Repository/Page_My ID/div_Style the container for inputs .contain_85f58a.rs b/Object Repository/Page_My ID/div_Style the container for inputs .contain_85f58a.rs index dbf5e212376a1d722df144e4c41ca4769116261b..4c26966cc913434412c5096e7f47b06ac9fb3e28 100644 --- a/Object Repository/Page_My ID/div_Style the container for inputs .contain_85f58a.rs +++ b/Object Repository/Page_My ID/div_Style the container for inputs .contain_85f58a.rs @@ -124,9 +124,7 @@ A number (ตัวเลข) Minimum 8 characters (ขั้นต่ำ 8 ตัว) - - - + ไม่พบตัวอักษรภาษาอังกฤษ ในรหัสผ่านใหม่ของท่านNot found characters in your new password Change Password @@ -309,6 +307,397 @@ myInput.onkeyup = function() { + คำแนะนำ + รหัสผ่านต้องไม่น้อยกว่า 8 ตัวอักษร แต่ไม่เกิน 25 ตัวอักษร + รหัสผ่านต้องประกอบด้วย 3 สิ่ง ดังต่อไปนี้ + - ตัวอักษรภาษาอังกฤษตัวใหญ่หรือเล็ก (A-Z, a-z) + - ตัวเลข (0-9) + - อักขระพิเศษ (! " # $ % & ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~) + + [Password Rules and Requirements] + Your password must contain ALL of the following: + - A minimum of 8 characters (maximum 25) + - Contain at least 1 uppercase or lowercase letter (A-Z, a-z) + - Contain at least 1 number (0-9) + - Contain at least 1 symbol (! " # $ % & ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~) + + + บัญชีผู้ใช้ (Username) + + + + + รหัสผ่านใหม่ (New Password) + + + + + รหัสผ่านใหม่อีกครั้ง (Re-New Password) + + + Show Password + + + Password must contain the following (รหัสผ่านประกอบไปด้วย) : + A lowercase or uppercase letter (ตัวอักษรตัวเล็กหรือตัวใหญ่) + A symbol letter (อักขระพิเศษ) + A number (ตัวเลข) + Minimum 8 characters (ขั้นต่ำ 8 ตัว) + + ไม่พบตัวอักษรภาษาอังกฤษ ในรหัสผ่านใหม่ของท่านNot found characters in your new password + + + Change Password + + + + + + + + + + + + +function myFunction() { + var x = document.getElementById("newpass"); + var y = document.getElementById("renewpass"); + if (x.type === "password") { + x.type = "text"; + y.type = "text"; + } else { + x.type = "password"; + y.type = "password"; + } +} + +function check(event){ + var ew = event.which; + + if(33 <= ew && ew <= 38) + return true; + if(40 <= ew && ew <= 126) + return true; + if(ew == 39){ + alert("Don" , "'" , "t use " , "'" , " (single quote) ห้ามใช้เครื่องหมาย " , "'" , " (เขาเดี่ยว)"); + return false; + } + alert("กรุณาเปลี่ยนภาษา"); + return false; +} + +var myInput = document.getElementById("newpass"); +var letter = document.getElementById("letter"); +var capital = document.getElementById("capital"); +var number = document.getElementById("number"); +var length = document.getElementById("length"); + +// When the user clicks on the password field, show the message box +myInput.onfocus = function() { + document.getElementById("message").style.display = "block"; +} + +// When the user clicks outside of the password field, hide the message box +myInput.onblur = function() { + document.getElementById("message").style.display = "none"; +} + +// When the user starts to type something inside the password field +myInput.onkeyup = function() { + // Validate lowercase letters + var lowerCaseLetters = /[a-zA-Z]/g; + if(myInput.value.match(lowerCaseLetters)) { + letter.classList.remove("invalid"); + letter.classList.add("valid"); + } else { + letter.classList.remove("valid"); + letter.classList.add("invalid"); + } + + // Validate capital letters + var upperCaseLetters = /[\/\:\;\(\)\$\&\@\"\.\,\?\!\[\]\{\}\#\%\^\*\+\-\_\\\|\~\<\> ]{1,}/g; + if(myInput.value.match(upperCaseLetters)) { + capital.classList.remove("invalid"); + capital.classList.add("valid"); + } else { + capital.classList.remove("valid"); + capital.classList.add("invalid"); + } + + // Validate numbers + var numbers = /[0-9]/g; + if(myInput.value.match(numbers)) { + number.classList.remove("invalid"); + number.classList.add("valid"); + } else { + number.classList.remove("valid"); + number.classList.add("invalid"); + } + + // Validate length + if(myInput.value.length >= 8) { + length.classList.remove("invalid"); + length.classList.add("valid"); + } else { + length.classList.remove("valid"); + length.classList.add("invalid"); + } +} + + + + ") or . = concat(" + +/* Style the container for inputs */ +.container { + background-color: #f1f1f1; + padding: 20px; +} + +/* The message box is shown when the user clicks on the password field */ +#message { + display:none; + background: #f1f1f1; + color: #000; + position: relative; + padding: 20px; + margin-top: 10px; +} + +#message p { + padding: 10px 35px; + font-size: 18px; +} + +/* Add a green text color and a checkmark when the requirements are right */ +.valid { + color: green; +} + +.valid:before { + position: relative; + left: -35px; + content: "✔"; +} + +/* Add a red text color and an "x" when the requirements are wrong */ +.invalid { + color: red; +} + +.invalid:before { + position: relative; + left: -35px; + content: "✖"; +} + +เปลี่ยนรหัสผ่าน (Change Password) + + + + + + + คำแนะนำ + รหัสผ่านต้องไม่น้อยกว่า 8 ตัวอักษร แต่ไม่เกิน 25 ตัวอักษร + รหัสผ่านต้องประกอบด้วย 3 สิ่ง ดังต่อไปนี้ + - ตัวอักษรภาษาอังกฤษตัวใหญ่หรือเล็ก (A-Z, a-z) + - ตัวเลข (0-9) + - อักขระพิเศษ (! " # $ % & ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~) + + [Password Rules and Requirements] + Your password must contain ALL of the following: + - A minimum of 8 characters (maximum 25) + - Contain at least 1 uppercase or lowercase letter (A-Z, a-z) + - Contain at least 1 number (0-9) + - Contain at least 1 symbol (! " # $ % & ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~) + + + บัญชีผู้ใช้ (Username) + + + + + รหัสผ่านใหม่ (New Password) + + + + + รหัสผ่านใหม่อีกครั้ง (Re-New Password) + + + Show Password + + + Password must contain the following (รหัสผ่านประกอบไปด้วย) : + A lowercase or uppercase letter (ตัวอักษรตัวเล็กหรือตัวใหญ่) + A symbol letter (อักขระพิเศษ) + A number (ตัวเลข) + Minimum 8 characters (ขั้นต่ำ 8 ตัว) + + ไม่พบตัวอักษรภาษาอังกฤษ ในรหัสผ่านใหม่ของท่านNot found characters in your new password + + + Change Password + + + + + + + + + + + + +function myFunction() { + var x = document.getElementById("newpass"); + var y = document.getElementById("renewpass"); + if (x.type === "password") { + x.type = "text"; + y.type = "text"; + } else { + x.type = "password"; + y.type = "password"; + } +} + +function check(event){ + var ew = event.which; + + if(33 <= ew && ew <= 38) + return true; + if(40 <= ew && ew <= 126) + return true; + if(ew == 39){ + alert("Don" , "'" , "t use " , "'" , " (single quote) ห้ามใช้เครื่องหมาย " , "'" , " (เขาเดี่ยว)"); + return false; + } + alert("กรุณาเปลี่ยนภาษา"); + return false; +} + +var myInput = document.getElementById("newpass"); +var letter = document.getElementById("letter"); +var capital = document.getElementById("capital"); +var number = document.getElementById("number"); +var length = document.getElementById("length"); + +// When the user clicks on the password field, show the message box +myInput.onfocus = function() { + document.getElementById("message").style.display = "block"; +} + +// When the user clicks outside of the password field, hide the message box +myInput.onblur = function() { + document.getElementById("message").style.display = "none"; +} + +// When the user starts to type something inside the password field +myInput.onkeyup = function() { + // Validate lowercase letters + var lowerCaseLetters = /[a-zA-Z]/g; + if(myInput.value.match(lowerCaseLetters)) { + letter.classList.remove("invalid"); + letter.classList.add("valid"); + } else { + letter.classList.remove("valid"); + letter.classList.add("invalid"); + } + + // Validate capital letters + var upperCaseLetters = /[\/\:\;\(\)\$\&\@\"\.\,\?\!\[\]\{\}\#\%\^\*\+\-\_\\\|\~\<\> ]{1,}/g; + if(myInput.value.match(upperCaseLetters)) { + capital.classList.remove("invalid"); + capital.classList.add("valid"); + } else { + capital.classList.remove("valid"); + capital.classList.add("invalid"); + } + + // Validate numbers + var numbers = /[0-9]/g; + if(myInput.value.match(numbers)) { + number.classList.remove("invalid"); + number.classList.add("valid"); + } else { + number.classList.remove("valid"); + number.classList.add("invalid"); + } + + // Validate length + if(myInput.value.length >= 8) { + length.classList.remove("invalid"); + length.classList.add("valid"); + } else { + length.classList.remove("valid"); + length.classList.add("invalid"); + } +} + + + + "))]</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:customAttributes</name> + <type>Main</type> + <value>//div[(text() = concat(" + +/* Style the container for inputs */ +.container { + background-color: #f1f1f1; + padding: 20px; +} + +/* The message box is shown when the user clicks on the password field */ +#message { + display:none; + background: #f1f1f1; + color: #000; + position: relative; + padding: 20px; + margin-top: 10px; +} + +#message p { + padding: 10px 35px; + font-size: 18px; +} + +/* Add a green text color and a checkmark when the requirements are right */ +.valid { + color: green; +} + +.valid:before { + position: relative; + left: -35px; + content: "✔"; +} + +/* Add a red text color and an "x" when the requirements are wrong */ +.invalid { + color: red; +} + +.invalid:before { + position: relative; + left: -35px; + content: "✖"; +} + +เปลี่ยนรหัสผ่าน (Change Password) + + + + + + คำแนะนำ รหัสผ่านต้องไม่น้อยกว่า 8 ตัวอักษร แต่ไม่เกิน 25 ตัวอักษร รหัสผ่านต้องประกอบด้วย 3 สิ่ง ดังต่อไปนี้ diff --git a/Object Repository/Page_My ID/iframe_Change Password_f34e7dd86768e8c.rs b/Object Repository/Page_My ID/iframe_Change Password_f34e7dd86768e8c.rs new file mode 100644 index 0000000000000000000000000000000000000000..0ca046b94069afda7ea0972e8ab47f7413c751bc --- /dev/null +++ b/Object Repository/Page_My ID/iframe_Change Password_f34e7dd86768e8c.rs @@ -0,0 +1,131 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>iframe_Change Password_f34e7dd86768e8c</name> + <tag></tag> + <elementGuidId>9a3c824f-ebd5-4bd8-9a76-c2ede2a1bd35</elementGuidId> + <selectorCollection> + <entry> + <key>CSS</key> + <value>iframe[name="f34e7dd86768e8c"]</value> + </entry> + <entry> + <key>XPATH</key> + <value>//iframe[@name='f34e7dd86768e8c']</value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>true</useRalativeImagePath> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>tag</name> + <type>Main</type> + <value>iframe</value> + </webElementProperties> + <webElementProperties> + <isSelected>true</isSelected> + <matchCondition>equals</matchCondition> + <name>name</name> + <type>Main</type> + <value>f34e7dd86768e8c</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>width</name> + <type>Main</type> + <value>1000px</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>height</name> + <type>Main</type> + <value>1000px</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>data-testid</name> + <type>Main</type> + <value>dialog_iframe</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>frameborder</name> + <type>Main</type> + <value>0</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>allowtransparency</name> + <type>Main</type> + <value>true</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>allowfullscreen</name> + <type>Main</type> + <value>true</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>scrolling</name> + <type>Main</type> + <value>no</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>allow</name> + <type>Main</type> + <value>encrypted-media</value> + </webElementProperties> + <webElementProperties> + <isSelected>true</isSelected> + <matchCondition>equals</matchCondition> + <name>src</name> + <type>Main</type> + <value>https://www.facebook.com/v12.0/plugins/customerchat.php?app_id=&attribution=biz_inbox&channel=https%3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconnect%2Fxd_arbiter%2F%3Fversion%3D46%23cb%3Df2e31f35d0940f%26domain%3Dmyid.buu.ac.th%26is_canvas%3Dfalse%26origin%3Dhttps%253A%252F%252Fmyid.buu.ac.th%252Ff299f6817ea9bb8%26relation%3Dparent.parent&container_width=912&current_url=https%3A%2F%2Fmyid.buu.ac.th%2Fprofile%2Fchgpwdlogin&is_loaded_by_facade=true&local_state=%7B%22v%22%3A1%2C%22path%22%3A2%2C%22chatState%22%3A1%2C%22visibility%22%3A%22not-hidden%22%2C%22showUpgradePrompt%22%3A%22not_shown%22%7D&locale=th_TH&log_id=0da04865-f464-4c75-a1e4-0cc87c47b9f6&page_id=160067777401491&request_time=1647005083361&sdk=joey</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath</name> + <type>Main</type> + <value>id("fb-root")/div[@class="fb_iframe_widget fb_invisible_flow"]/span[1]/iframe[1]</value> + </webElementProperties> + <webElementXpaths> + <isSelected>true</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:attributes</name> + <type>Main</type> + <value>//iframe[@name='f34e7dd86768e8c']</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:idRelative</name> + <type>Main</type> + <value>//div[@id='fb-root']/div[2]/span/iframe</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:position</name> + <type>Main</type> + <value>//iframe</value> + </webElementXpaths> + <webElementXpaths> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath:customAttributes</name> + <type>Main</type> + <value>//iframe[@name = 'f34e7dd86768e8c' and @src = 'https://www.facebook.com/v12.0/plugins/customerchat.php?app_id=&attribution=biz_inbox&channel=https%3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconnect%2Fxd_arbiter%2F%3Fversion%3D46%23cb%3Df2e31f35d0940f%26domain%3Dmyid.buu.ac.th%26is_canvas%3Dfalse%26origin%3Dhttps%253A%252F%252Fmyid.buu.ac.th%252Ff299f6817ea9bb8%26relation%3Dparent.parent&container_width=912&current_url=https%3A%2F%2Fmyid.buu.ac.th%2Fprofile%2Fchgpwdlogin&is_loaded_by_facade=true&local_state=%7B%22v%22%3A1%2C%22path%22%3A2%2C%22chatState%22%3A1%2C%22visibility%22%3A%22not-hidden%22%2C%22showUpgradePrompt%22%3A%22not_shown%22%7D&locale=th_TH&log_id=0da04865-f464-4c75-a1e4-0cc87c47b9f6&page_id=160067777401491&request_time=1647005083361&sdk=joey']</value> + </webElementXpaths> +</WebElementEntity> diff --git a/Object Repository/Page_My ID/path (1).rs b/Object Repository/Page_My ID/path (1).rs new file mode 100644 index 0000000000000000000000000000000000000000..f8b5ad81ce6fea77477d0b149d195d86e8e4e667 --- /dev/null +++ b/Object Repository/Page_My ID/path (1).rs @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebElementEntity> + <description></description> + <name>path (1)</name> + <tag></tag> + <elementGuidId>c2931db4-3ce1-4fac-9611-7bd34e7bd3a4</elementGuidId> + <selectorCollection> + <entry> + <key>CSS</key> + <value>div._9q4i > div._a3x9 > div.oajrlxb2.gs1a9yip.g5ia77u1.mtkw9kbi.tlpljxtp.qensuy8j.ppp5ayq2.goun2846.ccm00jje.s44p3ltw.mk2mc5f4.rt8b4zig.n8ej3o3l.agehan2d.sk4xxmp2.rq0escxv.nhd2j8a9.mg4g778l.pfnyh3mw.p7hjln8o.kvgmc6g5.cxmmr5t8.oygrvhab.hcukyx3x.tgvbjcpo.hpfvmrgz.jb3vyjys.rz4wbd8a.qt6c0cv9.a8nywdso.l9j0dhe7.i1ao9s8h.esuyzwwr.f1sip0of.du4w35lb.n00je7tq.arfg74bv.qs9ysxi8.k77z8yql.pq6dq46d.btwxx1t3.abiwlrkh.p8dawk7l.lzcic4wl > svg > path</value> + </entry> + <entry> + <key>XPATH</key> + <value></value> + </entry> + </selectorCollection> + <selectorMethod>XPATH</selectorMethod> + <useRalativeImagePath>true</useRalativeImagePath> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>tag</name> + <type>Main</type> + <value>path</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>d</name> + <type>Main</type> + <value>M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>fill</name> + <type>Main</type> + <value>black</value> + </webElementProperties> + <webElementProperties> + <isSelected>false</isSelected> + <matchCondition>equals</matchCondition> + <name>fill-opacity</name> + <type>Main</type> + <value>0.04</value> + </webElementProperties> + <webElementProperties> + <isSelected>true</isSelected> + <matchCondition>equals</matchCondition> + <name>xpath</name> + <type>Main</type> + <value>id("u_0_0_+U")/div[1]/div[1]/div[@class="_94ve"]/div[@class="_94vf _9pmv"]/div[1]/div[@class="welcomePageModalSheetContent"]/div[@class="_a2zp"]/div[@class="_9dzn"]/div[@class="_9q4i"]/div[@class="_a3x9"]/div[@class="oajrlxb2 gs1a9yip g5ia77u1 mtkw9kbi tlpljxtp qensuy8j ppp5ayq2 goun2846 ccm00jje s44p3ltw mk2mc5f4 rt8b4zig n8ej3o3l agehan2d sk4xxmp2 rq0escxv nhd2j8a9 mg4g778l pfnyh3mw p7hjln8o kvgmc6g5 cxmmr5t8 oygrvhab hcukyx3x tgvbjcpo hpfvmrgz jb3vyjys rz4wbd8a qt6c0cv9 a8nywdso l9j0dhe7 i1ao9s8h esuyzwwr f1sip0of du4w35lb n00je7tq arfg74bv qs9ysxi8 k77z8yql pq6dq46d btwxx1t3 abiwlrkh p8dawk7l lzcic4wl"]/svg[1]/path[1]</value> + </webElementProperties> + <webElementProperties> + <isSelected>true</isSelected> + <matchCondition>equals</matchCondition> + <name>ref_element</name> + <type>Main</type> + <value>Object Repository/Page_My ID/iframe_Change Password_f34e7dd86768e8c</value> + </webElementProperties> +</WebElementEntity> diff --git a/Scripts/Change Password Fail4/Script1647004925764.groovy b/Scripts/Change Password Fail4/Script1647004925764.groovy new file mode 100644 index 0000000000000000000000000000000000000000..c9f53ed55b39e7e849bbe6d2e5faa25e3399a057 --- /dev/null +++ b/Scripts/Change Password Fail4/Script1647004925764.groovy @@ -0,0 +1,48 @@ +import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint +import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase +import static com.kms.katalon.core.testdata.TestDataFactory.findTestData +import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject +import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject +import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint +import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW +import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile +import com.kms.katalon.core.model.FailureHandling as FailureHandling +import com.kms.katalon.core.testcase.TestCase as TestCase +import com.kms.katalon.core.testdata.TestData as TestData +import com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords as TestNGKW +import com.kms.katalon.core.testobject.TestObject as TestObject +import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS +import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI +import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows +import internal.GlobalVariable + +import org.junit.Assert +import org.openqa.selenium.Keys as Keys + +WebUI.openBrowser('') + +WebUI.navigateToUrl('https://myid.buu.ac.th/') + +WebUI.setText(findTestObject('Object Repository/Page_My ID/input_(Username)_user'), '62160299') + +WebUI.setEncryptedText(findTestObject('Object Repository/Page_My ID/input_(Password)_pass'), 'GwWY4dc3lpOeU9zC0JPIpw==') + +WebUI.click(findTestObject('Object Repository/Page_My ID/button_Sign in')) + +WebUI.click(findTestObject('Object Repository/Page_My ID/a_Change PasswordRenew password')) + +WebUI.setEncryptedText(findTestObject('Object Repository/Page_My ID/input_(New Password)_newpass'), 'hy7PU76MMrydYZaF+m9u7Q==') + +WebUI.click(findTestObject('Object Repository/Page_My ID/div_(Re-New Password) _11379c')) + +WebUI.setEncryptedText(findTestObject('Object Repository/Page_My ID/input_(Re-New Password)_renewpass'), 'hy7PU76MMrydYZaF+m9u7Q==') + +WebUI.click(findTestObject('Object Repository/Page_My ID/button_Change Password')) + +actualResult = WebUI.getText(findTestObject('Object Repository/Page_My ID/div_( ( ) , - . _ _538061')) + +expectedResult = 'ไม่พบตัวอักษรอักขระพิเศษ ในรหัสผ่านใหม่ของท่าน\nตัวอย่าง (! " # $ % & \' ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~)\n\nNot found symbol in your new password\nExample(! " # $ % & \' ( ) * + , - . / : ; < = > ? @ [ ] ^ _ ` { | } ~)' +Assert.assertEquals(expectedResult, actualResult) + +WebUI.closeBrowser() + diff --git a/Test Cases/Change Password Fail4.tc b/Test Cases/Change Password Fail4.tc new file mode 100644 index 0000000000000000000000000000000000000000..de8eb3050266a7c69e5f3c61ad29fc0baa3b8bd4 --- /dev/null +++ b/Test Cases/Change Password Fail4.tc @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<TestCaseEntity> + <description></description> + <name>Change Password Fail4</name> + <tag></tag> + <comment></comment> + <testCaseGuid>cf2cff68-c39c-4825-8968-5c092dbd3e37</testCaseGuid> +</TestCaseEntity>