가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Prepare Interview

모의 시험

홈페이지로 설정

이 페이지 북마크

이메일 주소 구독
/ 면접 주제 / Selenium
WithoutBook LIVE Mock Interviews Selenium Related interview subjects: 13

Interview Questions and Answers

Know the top Selenium interview questions and answers for freshers and experienced candidates to prepare for job interviews.

Total 40 questions Interview Questions and Answers

The Best LIVE Mock Interview - You should go through before interview

Know the top Selenium interview questions and answers for freshers and experienced candidates to prepare for job interviews.

Interview Questions and Answers

Search a question to view the answer.

Experienced / Expert level questions & answers

Ques 1

Write a code snippet to perform right-click an element in WebDriver.

We will use Action class to generate user event like right-click an element in WebDriver.

Actions action = newActions(driver);  

WebElement element = driver.findElement(By.id("elementId"));  

action.contextClick(element).perform();  

복습용 저장

복습용 저장

이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.

내 학습 라이브러리 열기
도움이 되었나요?
Add Comment View Comments
Ques 2

Write a code snippet to perform mouse hover in WebDriver.

Actions action = newActions(driver);  

WebElement element = driver.findElement(By.id("elementId"));  

action.moveToElement(element).perform();  

복습용 저장

복습용 저장

이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.

내 학습 라이브러리 열기
도움이 되었나요?
Add Comment View Comments
Ques 3

How do you perform drag and drop operation in WebDriver?

Code snippet to perform drag and drop operation:

//WebElement on which drag and drop operation needs to be performed  

WebElementfromWebElement = driver.findElement(By Locator of fromWebElement);  

 

//WebElement to which the above object is dropped  

WebElementtoWebElement = driver.findElement(By Locator of toWebElement);  

  

//Creating object of Actions class to build composite actions  

Actions builder = newActions(driver);  

  

//Building a drag and drop action  

Action dragAndDrop = builder.clickAndHold(fromWebElement)  

             .moveToElement(toWebElement)  

             .release(toWebElement)  

         .build();  

  

//Performing the drag and drop action  

dragAndDrop.perform();  

복습용 저장

복습용 저장

이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.

내 학습 라이브러리 열기
도움이 되었나요?
Add Comment View Comments
Ques 4

What are the different methods to refresh a web page in WebDriver?

There are multiple ways of refreshing a page in Webdriver.

1. Using driver.navigate command -

 

driver.navigate().refresh();  

 

2. Using driver.getCurrentUrl() with driver.get() command -

 

driver.get(driver.getCurrentUrl());  

 

3. Using driver.getCurrentUrl() with driver.navigate() command -

 

driver.navigate().to(driver.getCurrentUrl());  

 

4. Pressing an F5 key on any textbox using the sendKeys command -

 

driver.findElement(By textboxLocator).sendKeys(Keys.F5);  

 

5. Passing ascii value of the F5 key, i.e., "\uE035" using the sendKeys command -

 

driver.findElement(By textboxLocator).sendKeys("\uE035");  

복습용 저장

복습용 저장

이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.

내 학습 라이브러리 열기
도움이 되었나요?
Add Comment View Comments
Ques 5

Write a code snippet to navigate back and forward in browser history?

Navigate back in browser history:

 

driver.navigate().back();  

 

Navigate forward in browser history:

driver.navigate().forward();  

복습용 저장

복습용 저장

이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.

내 학습 라이브러리 열기
도움이 되었나요?
Add Comment View Comments
Ques 6

What is POM (Page Object Model)? What are its advantages?

Page Object Model is a design pattern for creating an Object directory for web UI elements. Each web page is required to have its page class. The page class is responsible for finding the WebElements in web pages and then perform operations on WebElements.

The benefits of using POM are as follows:

  • It facilitates with separate operations and flows in the UI from Verification - improves code readability
  • Multiple tests can use the same Object Repository because the Object Repository is independent of Test Cases.
  • Reusability of code
복습용 저장

복습용 저장

이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.

내 학습 라이브러리 열기
도움이 되었나요?
Add Comment View Comments
Ques 7

How can you find if an element is displayed on the screen?

WebDriver allows user to check the visibility of the web elements. These web elements can be buttons, radio buttons, drop, checkboxes, boxes, labels etc. which are used with the following methods.

  • isDisplayed()
  • isSelected()
  • isEnabled()

isDisplayed():  

boolean buttonPresence = driver.findElement(By.id("gbqfba")).isDisplayed();  

isSelected():  

boolean buttonSelected = driver.findElement(By.id("gbqfba")).isSelected();  

isEnabled():  

boolean searchIconEnabled = driver.findElement(By.id("gbqfb")).isEnabled();  

복습용 저장

복습용 저장

이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.

내 학습 라이브러리 열기
도움이 되었나요?
Add Comment View Comments

Most helpful rated by users:

Copyright © 2026, WithoutBook.