![]() As per the policy, any code loaded within the browser can only operate within that website’s domain. The “Same Origin Policy” is introduced for security reasons, and it ensures that content of your site will never be accessible by a script from another site. What is the same origin policy? How can you avoid the same origin policy? What are the four parameters you have to pass in Selenium?įour parameters that you have to pass in Selenium are:ġ5. Selenium supports many programming languages like Ruby, Perl, Python whereas QTP supports only VB script.ġ4.however QTP is limited to Internet Explorer on Windows. Selenium supports Firefox, IE, Opera, Safari on operating systems like Windows, Mac, Linux etc.Selenium is used specially for testing web based applications while QTP can be used for testing client server application also.Selenium is an open source whereas QTP is a commercial tool.Why should testers opt for Selenium and not QTP? It has a highly developed community supported by Google.ġ3.It has got powerful methods to locate elements (Xpath, DOM, CSS).It supports different OS like Windows, Linux and Mac OS.ClickAt command accepts element locator and x, y coordinates as arguments- clickAt (locator, cordString). To click on a specific part of an element, you would need to use the clickAT command. While using the click command can you use screen coordinate? Junit annotations which can be useful are:ġ1. Variables, parameters, packages, methods and classes are annotated some of the In JAVA a special form of syntactic meta-data can be added to Java source code, this is known as Annotations. In verification, all the commands are going to run guaranteed even if any of the tests fails.ġ0.What are JUnit Annotations and what are different types of annotations which are useful ? Verify: Verify command will check whether the element is on the page, if it is not then the test will carry on executing.In other words, the test will terminate at the point where the check fails. The test will stop on the step failed, if the asserted element is not available. Assert: Assert allows to check whether an element is on the page or not.What is the difference between verify and assert commands? ![]() typekeys() emulates like actual user typing.ĩ. Type key populates the value attribute using JavaScript whereas. TypeKeys() will trigger JavaScript events in most of the cases whereas. What is the difference between type keys and type commands ?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |