שלום לכולם
מישהו היה השבוע במבחנים למשרת Student Software Automation ויכול לשחזר את השאלות?
תודה רבה
לפני 6 שנים
ע"י: 1_אורח_כללי
1. Write a function that takes 2 words as an argument
and returns true if they are ANAGRAMS
(contain the exact same letters) and false otherwise.
פתרון בJava
public boolean Anagram (String w1 , String w2 ) {// האם המילים מופיעות אחת בתוך השנייה
if (w1.length() != w2.length())//אם בגודל הם לא שווים אז תצא מהלולאה
return false;
int[] counts = new int[26]; // מערך מונים של אותיות באנגלית
for (int i = 0; i < w1.length(); i++){
counts[w1.charAt(i)-97]++;
counts[w2.charAt(i)-97]--;
}
for (int i = 0; i<26; i++)
if (counts[i] != 0)
return false;
return true;
}
2.
a. What are the different types of locators in SELENIUM?
ByName, ByID , ByXpath, ByClassName
b. what is XPATH?
XML Path Language
XPath is a major element in the XSLT standard
c. How to type into TextBox using Selenium?
sendKeys();
d. How to handle with Frame in Selenium?
driver.switchTo().frame("….");
e. How can we get a text from a web element?
getText()
f. WebDriver- close() and quit() function -
What is the difference
Close – סוגר את הדפדפן
quit – WEBDRIVER סוגר את המשתנה
לאחר הצמצומים אסף בחר שלא לבזבז זמן (=כסף) ופנה לסיוע המקצועי שלנו
התהליך שעבר היה כה ממוקד, שלא באמת הופתענו כשסיים אותו עם שתי הצעות מעולות על השולחן.
תזכרו, לא משנה איך השוק, זה אף פעם לא זמן טוב לחפש עבודה.