intro-basic Selenium Flashcards
which programs work with Selenium?
Java, Python, Ruby,C#,
what is the difference between driver.get(URL) and driver.navigate().to();
According to the Selenium documentation: there is no difference, but some source said more time needed for get method.
how to SE find inspect the source code?
SE uses locators to find the tags
how many locators?
id/name/cssSelector,xPath,tagName,className,
linktext,partiallinkText
System.setProperty(“webdriver.chrome.driver”,”path);
it uses for configuration
WebDriver driver=new ChromeDriver():
WebDfiver is interface includes others,
WebElement element= driver.findElement(By.id(“ values”);
webelemement is interface and not do new ChromeDriver,
SE shuld find the location of tag and tell basic steps.
submitButton.click(),
sendKeys(“text”);
click()—submit() differences
submit() works nly with buttons, click() is more flexible,
Se kinds
IDE/RC/WebDriver/Grid—after 3, RC and Webdriver together
negative things for Selenium
know about the Java developers harder to implement Only test browser--html not good visual testing not professional support like UFT
naming package in SE
should be—com.cybertek.(projename)
difference between driver.get(url) and driver.navigate().to(url)?
get—wait for the load the page
navigate not care just hit the page
What is Synchronization?
open the web page but keep loading and loading.For SE, not know has to wait. Response time more than normally,
-noSuchElement Exception; if SE cannot reach the webpage.
thread.sleep()
pause the running at certain miliseconds,
cons: not same time everytime for same webpage;
depends on the Server as well,