what is the difference between ‘/’ and ‘//’ ?
Ans-
“/” refers to the immediate child element in the html tree.
“//” refers to any element in the html tree. It also represent any descendant
Ans-
“/” refers to the immediate child element in the html tree.
“//” refers to any element in the html tree. It also represent any descendant
👍5
Java Selenium Testing Interview Questions 【CodingAnywhere】 pinned «Is delete, next, main, exit or null keyword in java?»
Java Selenium Testing Interview Questions 【CodingAnywhere】 pinned «what is the difference between ‘/’ and ‘//’ ? Ans- “/” refers to the immediate child element in the html tree. “//” refers to any element in the html tree. It also represent any descendant»
Java Selenium Testing Interview Questions 【CodingAnywhere】 pinned «what is the difference between ‘/’ and ‘//’ ? Ans- “/” refers to the immediate child element in the html tree. “//” refers to any element in the html tree. It also represent any descendant»
How do you mouse hover on any element on a web page ?
Answer : Using moveToElement() of Actions class
Answer : Using moveToElement() of Actions class
👍6
Difference between getWindowHandle() and getWindowHandles() ?
● getWindowHandle() returns the window handle id of the current browser window.
● getWindowHandles() returns the window handle id of all the browser windows.
● getWindowHandle() returns the window handle id of the current browser window.
● getWindowHandles() returns the window handle id of all the browser windows.
👍5
Java Selenium Testing Interview Questions 【CodingAnywhere】 pinned «How do you mouse hover on any element on a web page ? Answer : Using moveToElement() of Actions class»
Java Selenium Testing Interview Questions 【CodingAnywhere】 pinned «Difference between getWindowHandle() and getWindowHandles() ? ● getWindowHandle() returns the window handle id of the current browser window. ● getWindowHandles() returns the window handle id of all the browser windows.»
Difference between Absolute and Relative XPath Absolute Path:Single Forward Slash. Select the element from the root <html> and cover the whole path to the element. It is also known as complete or Full Xpath.[Faster] Example-/html/head/body/form/table/tbody/tr/th Relative Path:Double Forward Slash. Expression can starts in the middle of the HTML DOM structure.[Slower] Example-//table/tbody/tr/th
👍3
Difference between POST and PUT method POST: POST method is call when you have to add a child resource under resources collection. Syntax- POST /questions [We use create query in POST.] PUT: PUT method is call when you have to modify a single resource, which is already a part of resource collection. Syntax- PUT/questions/{question-id} [We use UPDATE query in PUT.]
👍3🤔1
How do you access postman variables?
Answers:-by using the variable name as:{{variable_name}}
Answers:-by using the variable name as:{{variable_name}}
👍3
Which is the command-line tool alternative for Postman?
Answer-Newman
Answer-Newman
👍2
What is the fundamental difference between XPath and CSS selectors? Answer-The fundamental difference between XPath and CSS selector is – using XPaths we can traverse up in the document i.e. we can move to parent elements. Whereas using the CSS selector, we can only move downwards in the document.
Telegram
Java Selenium Testing Interview Questions 【CodingAnywhere】
@Java @Selenium @manualtesting @AutomationTesting @Coding @Placement @Interview @Testng @Maven @cucumber @cypress @postman @software @jobs #java #Selenium #Coding #programming #testing #ManualTesting #Interview #jobs @Jira #Jira #automationtesting
👍5
How can we type text in a textbox element using Selenium? Answer:- sendKeys() method . WebElement searchTextBox = driver.findElement(By.id("srch"));
searchTextBox.sendKeys("searchTerm");
searchTextBox.sendKeys("searchTerm");
👍5👏1
👍1
What is a traceability matrix and what are some examples?
Answer:
The traceability matrix is a mapping between a business requirement to its corresponding functional requirement right up to the corresponding test cases.
If a Test Case fails, traceability helps determine the corresponding functionality easily .
It also helps ensure that all requirements are tested.
Types:
1) Forward Traceability Matrix: Forward traceability is used to map the requirements to the test cases. Not only will this establish that every requirement is being tested from top to bottom, but it will also assist in confirming that a project’s trajectory is sound.
2) Backward Traceability Matrix: You can make a backward traceability matrix by mapping test cases with the requirements. Doing so aids you in avoiding “scope creep” and going beyond the initial requirements unnecessarily.
3)Bidirectional Traceability Matrix:Bidirectional traceability essentially combines forward and backward traceability into one document. This type is useful because it establishes that each requirement has relating test cases.
Answer:
The traceability matrix is a mapping between a business requirement to its corresponding functional requirement right up to the corresponding test cases.
If a Test Case fails, traceability helps determine the corresponding functionality easily .
It also helps ensure that all requirements are tested.
Types:
1) Forward Traceability Matrix: Forward traceability is used to map the requirements to the test cases. Not only will this establish that every requirement is being tested from top to bottom, but it will also assist in confirming that a project’s trajectory is sound.
2) Backward Traceability Matrix: You can make a backward traceability matrix by mapping test cases with the requirements. Doing so aids you in avoiding “scope creep” and going beyond the initial requirements unnecessarily.
3)Bidirectional Traceability Matrix:Bidirectional traceability essentially combines forward and backward traceability into one document. This type is useful because it establishes that each requirement has relating test cases.
Quora
This for C,C++,Java,Testing Coding problem Solutions that asked for Interview.
👍10
Which testing is performed first, Smoke or Sanity?
Answer: Smoke tests are executed first, followed by Sanity testing and then based on time availability Regression testing is planned. As mentioned above, the Smoke test is done in a new build, then if it passes the Smoke testing, more tests and Regression or Sanity tests are done.
Answer: Smoke tests are executed first, followed by Sanity testing and then based on time availability Regression testing is planned. As mentioned above, the Smoke test is done in a new build, then if it passes the Smoke testing, more tests and Regression or Sanity tests are done.
👍6
How you can handle drag & drop using selenium?
Answer: Using action class dragAndDrop method. Syntax: action.dragAndDrop(sourceEle,targetEle).build().perform();
Answer: Using action class dragAndDrop method. Syntax: action.dragAndDrop(sourceEle,targetEle).build().perform();
👍7