Tuesday, 14 March 2017

Selenium Interview Questions and Answers for Experienced – Part 1

Selenium Interview Questions and Answers for Experienced – Part 1

Q 1) What’s distinction between claim and confirm instructions?

Claim: Maintain order tests whether the specified state is true or untrue. Let’s state we declare whether the specified component is present to the webpage or not. If the state is true then this system management may run another evaluation measure but if the state is false, the delivery might cease and no additional evaluation might be ran.

Check: Check order additionally checks whether the specified state is true or untrue. Aside from the state being true or untrue, the application performance does’t blocks i.e. any failure all through confirmation wouldn’t halt the delivery and all the evaluation measures might be performed.

Q 2) Exactly What’s an Xpath?

Xpath can be used to find a net component depending on its XML route. XML means Extensible Mark-Up Vocabulary and can be used to save, arrange and carry haphazard information. It stores information in an integral-value couple that’s quite definitely much like HTML labels. Both being mark-up dialects and since they are categorized as an identical umbrella, Xpath can be utilized to find HTML components.

The essential behind finding components utilizing Xpath is the crossing between numerous components across the whole page and so enabling a person to discover a component with the guide of yet another component.

Q 3) Exactly What’s the distinction between “/” and “//” in Xpath?

Solitary Cut “/” – Solitary cut is utilized to generate Xpath with complete path i.e. the xpath would be designed to begin pick from the file node/beginning node.

Twice Cut “//” – Twice slash is employed to generate Xpath with relative route i.e. the xpath would be designed to begin pick from everywhere within the file.

Q 4) What’s Sam E source coverage and how it may be managed?

The issue of sam e source plan disallows to get the DOM of a file from an origin that’s not the same as the source we’re attempting to get the file.

Source is a serial combination of plan, host and port of the URL. By way of example, for a link http:// http://www.softwaretestinghelp.com/sources/, the source is a mix of https, softwaretestinghelp.com, 80 correspondingly.

So the Selenium S/W Center (Java Script Application) can-not get the components from an origin that’s distinct from where it had been found. By Way Of Example, if I’ve found the Java Script Application from “http://www.softwaretestinghelp.com”, then I can get the webpages within the sam-e domain name such as “http://www.softwaretestinghelp.com/resources”. The additional domain names like google.com, seleniumhq.org might no mo-Re be reachable.

Thus, so that you can manage sam-e source plan, Selenium S/W Remote-Control was released.

Q 5) When can I use Selenium Grid?

Selenium Grid enables you to perform sam-e or different check programs on multiple s/w’s and browsers concurrently s O as to realize spread evaluation performance, s/w evaluation under different surroundings and preserving performance period unexpectedly.

Q 6) What can we me-an by Selenium S/W 1 and Selenium S/W 2?

Selenium RC and WebDriver, in a mixture are commonly called Selenium S/W 2. Selenium RC alone is also known as Selenium S/W 1.

http://selenium-interview-questions-answers.blogspot.in/