intro-basic Selenium Flashcards

1
Q

which programs work with Selenium?

A

Java, Python, Ruby,C#,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the difference between driver.get(URL) and driver.navigate().to();

A

According to the Selenium documentation: there is no difference, but some source said more time needed for get method.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how to SE find inspect the source code?

A

SE uses locators to find the tags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how many locators?

A

id/name/cssSelector,xPath,tagName,className,

linktext,partiallinkText

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

System.setProperty(“webdriver.chrome.driver”,”path);

A

it uses for configuration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

WebDriver driver=new ChromeDriver():

A

WebDfiver is interface includes others,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

WebElement element= driver.findElement(By.id(“ values”);

A

webelemement is interface and not do new ChromeDriver,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

SE shuld find the location of tag and tell basic steps.

A

submitButton.click(),

sendKeys(“text”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

click()—submit() differences

A

submit() works nly with buttons, click() is more flexible,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Se kinds

A

IDE/RC/WebDriver/Grid—after 3, RC and Webdriver together

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

negative things for Selenium

A
know about the Java developers
harder to implement
Only test browser--html
not good visual testing
not professional support like UFT
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

naming package in SE

A

should be—com.cybertek.(projename)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

difference between driver.get(url) and driver.navigate().to(url)?

A

get—wait for the load the page

navigate not care just hit the page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Synchronization?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

thread.sleep()

A

pause the running at certain miliseconds,
cons: not same time everytime for same webpage;
depends on the Server as well,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

benefits of Synchronization

A

noSuchElementExceptions
code runs faster than browser can handle
Elements appear on HTML after certain time
Elements appears on the page after certain time

17
Q

kinds of way for synchronization

A

Thread.sleep()
Implicit Wait
Explicit Wait

18
Q

impicitly wait

A

driver.manage().timesout().implicitlywait(XXXCX).

up to that time