{"id":251,"date":"2022-05-03T05:16:39","date_gmt":"2022-05-03T05:16:39","guid":{"rendered":"https:\/\/gauthamit.com\/blog\/?p=251"},"modified":"2022-05-20T03:49:43","modified_gmt":"2022-05-20T03:49:43","slug":"selenium-interview-questions","status":"publish","type":"post","link":"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/","title":{"rendered":"Selenium Interview Questions"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_68 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#Selenium_Interview_Questions\" title=\"Selenium Interview Questions\">Selenium Interview Questions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#1_What_is_automation_testing\" title=\"1. What is automation testing?\">1. What is automation testing?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#2_What_is_a_locator_How_can_you_find_elements_in_Selenium\" title=\"2. What is a locator? How can you find elements in Selenium?\">2. What is a locator? How can you find elements in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#3_Is_Selenium_20_different_from_Selenium_30_If_so_how\" title=\"3. Is Selenium 2.0 different from Selenium 3.0? If so, how?\">3. Is Selenium 2.0 different from Selenium 3.0? If so, how?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#4_Mention_some_of_the_popular_tools_used_for_automation_testing\" title=\"4. Mention some of the popular tools used for automation testing ?\">4. Mention some of the popular tools used for automation testing ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#5_What_are_the_test_types_supported_by_Selenium\" title=\"5. What are the test types supported by Selenium?\">5. What are the test types supported by Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#6_What_is_X_Path\" title=\"6. What is X Path?\">6. What is X Path?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#7_Explain_the_difference_between_single_slash_and_double_slash_in_XPath\" title=\"7. Explain the difference between single slash and double slash in XPath.\">7. Explain the difference between single slash and double slash in XPath.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#8_Why_should_you_use_Selenium_for_test_automation\" title=\"8. Why should you use Selenium for test automation?\">8. Why should you use Selenium for test automation?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#9_Does_Selenium_have_any_technical_limitations_If_so_what_are_those_limitations\" title=\"9. Does Selenium have any technical limitations? If so, what are those limitations?\">9. Does Selenium have any technical limitations? If so, what are those limitations?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#10_What_is_an_object_repository\" title=\"10. What is an object repository?\">10. What is an object repository?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#11_What_is_the_difference_between_type_keys_and_type_commands\" title=\"11. What is the difference between type keys and type commands?\">11. What is the difference between type keys and type commands?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#12_What_are_the_advantages_of_Selenium\" title=\"12. What are the advantages of Selenium?\">12. What are the advantages of Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#13_Define_automation_testing_and_list_down_its_advantages\" title=\"13. Define automation testing, and list down its advantages.\">13. Define automation testing, and list down its advantages.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#14_What_are_the_significant_changesupgrades_made_to_various_Selenium_versions\" title=\"14. What are the significant changes\/upgrades made to various Selenium versions?\">14. What are the significant changes\/upgrades made to various Selenium versions?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#15_How_many_types_of_WebDriver_APIs_are_available_in_Selenium\" title=\"15. How many types of WebDriver APIs are available in Selenium?\">15. How many types of WebDriver APIs are available in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#16_What_is_an_exception_test_in_Selenium\" title=\"16. What is an exception test in Selenium?\">16. What is an exception test in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#17_What_is_POM_Page_Object_Model_What_are_its_advantages\" title=\"17. What is POM (Page Object Model)? What are its advantages?\">17. What is POM (Page Object Model)? What are its advantages?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#18_What_are_the_different_types_of_annotations_used_in_Selenium_Explain_the_JUnit_annotation_linked_with_Selenium\" title=\"18. What are the different types of annotations used in Selenium? Explain the JUnit annotation linked with Selenium.\">18. What are the different types of annotations used in Selenium? Explain the JUnit annotation linked with Selenium.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#19_Why_do_testers_choose_Selenium_over_QTP\" title=\"19. Why do testers choose Selenium over QTP?\">19. Why do testers choose Selenium over QTP?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#20_What_are_the_four_elements_that_you_have_to_pass_in_Selenium\" title=\"20. What are the four elements that you have to pass in Selenium?\">20. What are the four elements that you have to pass in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#21_What_is_Same-origin_Policy_How_can_we_avoid_it\" title=\"21. What is Same-origin Policy? How can we avoid it?\">21. What is Same-origin Policy? How can we avoid it?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#22_What_are_data-driven_framework_and_keyword-driven_framework\" title=\"22. What are data-driven framework and keyword-driven framework?\">22. What are data-driven framework and keyword-driven framework?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#23_How_will_you_use_Selenium_to_upload_a_file\" title=\"23. How will you use Selenium to upload a file?\">23. How will you use Selenium to upload a file?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#24_What_is_the_difference_between_getwindowhandles_and_getwindowhandle\" title=\"24. What is the difference between getwindowhandles() and getwindowhandle()?\">24. What is the difference between getwindowhandles() and getwindowhandle()?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#25_What_is_Selenese_and_what_are_the_three_types_of_Selenese\" title=\"25. What is Selenese, and what are the three types of Selenese?\">25. What is Selenese, and what are the three types of Selenese?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#26_How_do_you_launch_the_web_browser_using_WebDriver\" title=\"26. How do you launch the web browser using WebDriver?\">26. How do you launch the web browser using WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#27_List_down_some_of_the_technical_challenges_with_Selenium\" title=\"27. List down some of the technical challenges with Selenium.\">27. List down some of the technical challenges with Selenium.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-29\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#29_How_do_you_handle_a_frame_in_WebDriver\" title=\"29. How do you handle a frame in WebDriver?\">29. How do you handle a frame in WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-30\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#30_What_are_the_different_types_of_frameworks\" title=\"30. What are the different types of frameworks?\">30. What are the different types of frameworks?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-31\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#31_Describe_the_difference_between_Selenium_and_QTP\" title=\"31. Describe the difference between Selenium and QTP.\">31. Describe the difference between Selenium and QTP.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-32\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#32_In_Selenium_what_are_breakpoints_and_start_points\" title=\"32. In Selenium, what are breakpoints and start points?\">32. In Selenium, what are breakpoints and start points?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-33\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#33_Mention_the_need_for_session_handling_while_working_with_Selenium\" title=\"33. Mention the need for session handling while working with Selenium.\">33. Mention the need for session handling while working with Selenium.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-34\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#34_Mention_the_types_of_listeners_in_TestNG\" title=\"34. Mention the types of listeners in TestNG?\">34. Mention the types of listeners in TestNG?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-35\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#35_How_can_we_handle_Windows-based_popups_with_Selenium\" title=\"35. How can we handle Windows-based popups with Selenium?\">35. How can we handle Windows-based popups with Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-36\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#36_For_the_database_testing_in_Selenium_WebDriver_what_API_is_required\" title=\"36. For the database testing in Selenium WebDriver, what API is required?\">36. For the database testing in Selenium WebDriver, what API is required?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-37\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#37_How_can_you_identify_an_object_in_Selenium\" title=\"37. How can you identify an object in Selenium?\">37. How can you identify an object in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-38\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#38_How_can_you_identify_an_object_in_Selenium\" title=\"38. How can you identify an object in Selenium?\">38. How can you identify an object in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-39\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#39_Mention_the_use_of_XPath_in_Selenium_testing\" title=\"39. Mention the use of XPath in Selenium testing.\">39. Mention the use of XPath in Selenium testing.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-40\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#40_What_is_Selenium\" title=\"40. What is Selenium?\">40. What is Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-41\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#41_Can_WebDriver_test_mobile_applications\" title=\"41. Can WebDriver test mobile applications?\">41. Can WebDriver test mobile applications?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-42\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#42_Explain_how_Selenium_Grid_works\" title=\"42. Explain how Selenium Grid works.\">42. Explain how Selenium Grid works.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-43\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#43_Explain_the_difference_between_driverclose_and_driverquit_commands_in_Selenium\" title=\"43. Explain the difference between driver.close() and driver.quit() commands in Selenium?\">43. Explain the difference between driver.close() and driver.quit() commands in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-44\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#44_Explain_the_difference_between_findElement_and_findElements_in_Selenium\" title=\"44. Explain the difference between findElement() and findElements() in Selenium?\">44. Explain the difference between findElement() and findElements() in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-45\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#45_Mention_the_types_of_navigation_commands\" title=\"45. Mention the types of navigation commands.\">45. Mention the types of navigation commands.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-46\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#46_How_do_you_find_broken_links_in_Selenium_WebDriver\" title=\"46. How do you find broken links in Selenium WebDriver?\">46. How do you find broken links in Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-47\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#47What_type_of_tests_have_you_automated\" title=\"47.What type of tests have you automated?\">47.What type of tests have you automated?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-48\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#48How_many_test_cases_you_have_automated_per_day\" title=\"48.How many test cases you have automated per day?\">48.How many test cases you have automated per day?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-49\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#49_What_is_a_Framework\" title=\"49. What is a Framework?\">49. What is a Framework?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-50\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#50_What_type_of_test_cases_to_be_automated\" title=\"50. What type of test cases to be automated?\">50. What type of test cases to be automated?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-51\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#53_What_type_of_test_cases_not_to_be_automated\" title=\"53. What type of test cases not to be automated?\">53. What type of test cases not to be automated?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-52\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#54_What_are_the_advantages_of_the_Test_Automation_Framework\" title=\"54. What are the advantages of the Test Automation Framework?\">54. What are the advantages of the Test Automation Framework?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-53\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#55Have_you_created_any_Framework\" title=\"55.Have you created any Framework?\">55.Have you created any Framework?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-54\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#56Why_do_you_prefer_Selenium_Automation_Tool\" title=\"56.Why do you prefer Selenium Automation Tool?\">56.Why do you prefer Selenium Automation Tool?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-55\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#57_What_is_Selenium\" title=\"57. What is Selenium?\">57. What is Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-56\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#58What_is_Selenium_IDE\" title=\"58.What is Selenium IDE?\">58.What is Selenium IDE?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-57\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#59What_is_Selenese\" title=\"59.What is Selenese?\">59.What is Selenese?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-58\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#60Which_is_the_only_browser_that_supports_Selenium_IDE_to_be_used\" title=\"60.Which is the only browser that supports Selenium IDE to be used?\">60.Which is the only browser that supports Selenium IDE to be used?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-59\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#61What_is_Selenium_RC\" title=\"61.What is Selenium RC?\">61.What is Selenium RC?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-60\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#62What_is_Selenium_WebDriver\" title=\"62.What is Selenium WebDriver?\">62.What is Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-61\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#63What_is_the_difference_between_Selenium_3_and_Selenium_4\" title=\"63.What is the difference between Selenium 3 and Selenium 4?\">63.What is the difference between Selenium 3 and Selenium 4?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-62\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#64_What_is_Selenium_Grid\" title=\"64. What is Selenium Grid?\">64. What is Selenium Grid?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-63\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#65When_do_you_use_Selenium_Grid\" title=\"65.When do you use Selenium Grid?\">65.When do you use Selenium Grid?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-64\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#66What_are_the_advantages_of_Selenium_Grid\" title=\"66.What are the advantages of Selenium Grid?\">66.What are the advantages of Selenium Grid?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-65\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#67What_is_a_hub_in_Selenium_Grid\" title=\"67.What is a hub in Selenium Grid?\">67.What is a hub in Selenium Grid?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-66\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#68What_is_a_node_in_Selenium_Grid\" title=\"68.What is a node in Selenium Grid?\">68.What is a node in Selenium Grid?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-67\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#69_What_are_the_types_of_WebDriver_APIs_available_in_Selenium\" title=\"69. What are the types of WebDriver APIs available in Selenium?\">69. What are the types of WebDriver APIs available in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-68\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#70Which_WebDriver_implementation_claims_to_be_the_fastest\" title=\"70.Which WebDriver implementation claims to be the fastest?\">70.Which WebDriver implementation claims to be the fastest?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-69\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#71_Which_language_is_not_supported_by_selenium\" title=\"71. Which language is not supported by selenium?\">71. Which language is not supported by selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-70\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#72What_are_the_testing_types_that_can_be_supported_by_selenium\" title=\"72.What are the testing types that can be supported by selenium?\">72.What are the testing types that can be supported by selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-71\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#73How_many_parameters_can_selenium_commands_have_at_minimum\" title=\"73.How many parameters can selenium commands have at minimum?\">73.How many parameters can selenium commands have at minimum?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-72\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#74_What_is_an_XPath\" title=\"74. What is an XPath?\">74. What is an XPath?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-73\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#75When_you_use_these_locators_ID_Name_XPath_Or_CSS_Selector\" title=\"75.When you use these locators ID, Name, XPath, Or CSS Selector?\">75.When you use these locators ID, Name, XPath, Or CSS Selector?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-74\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#76What_is_the_difference_between_%E2%80%9C%E2%80%9D_and_%E2%80%9C%E2%80%9D\" title=\"76.What is the difference between \u201c\/\u201d and \u201c\/\/\u201d\">76.What is the difference between \u201c\/\u201d and \u201c\/\/\u201d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-75\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#76_What_is_the_difference_between_Absolute_Path_and_Relative_Path\" title=\"76. What is the difference between Absolute Path and Relative Path?\">76. What is the difference between Absolute Path and Relative Path?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-76\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#77What_should_you_do_when_even_XPath_functions_cant_identify_the_web_element\" title=\"77.What should you do when even XPath functions can\u2019t identify the web element?\">77.What should you do when even XPath functions can\u2019t identify the web element?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-77\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#78What_are_XPath_Axes\" title=\"78.What are XPath Axes?\">78.What are XPath Axes?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-78\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#79What_is_a_Context_Node\" title=\"79.What is a Context Node?\">79.What is a Context Node?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-79\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#80_What_is_the_difference_between_Assert_and_Verify_in_Selenium\" title=\"80. What is the difference between Assert and Verify in Selenium?\">80. What is the difference between Assert and Verify in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-80\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#81What_are_Soft_Assert_and_Hard_Assert_in_Selenium\" title=\"81.What are Soft Assert and Hard Assert in Selenium?\">81.What are Soft Assert and Hard Assert in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-81\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#82What_is_the_difference_between_set_Speed_and_sleep_methods\" title=\"82.What is the difference between set Speed () and sleep () methods?\">82.What is the difference between set Speed () and sleep () methods?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-82\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#83_What_are_the_verification_points_available_in_Selenium\" title=\"83. What are the verification points available in Selenium?\">83. What are the verification points available in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-83\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#84How_to_launch_a_browser_using_Selenium_WebDriver\" title=\"84.How to launch a browser using Selenium WebDriver?\">84.How to launch a browser using Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-84\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#85What_is_the_super_interface_of_WebDriver\" title=\"85.What is the super interface of WebDriver?\">85.What is the super interface of WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-85\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#86What_is_Web_Element_selenium\" title=\"86.What is Web Element selenium?\">86.What is Web Element selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-86\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#87_What_are_the_different_exceptions_you_have_faced_in_Selenium_WebDriver\" title=\"87. What are the different exceptions you have faced in Selenium WebDriver?\">87. What are the different exceptions you have faced in Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-87\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#88_How_to_handle_STALEELEMENTREFERENCEEXCEPTION\" title=\"88. How to handle STALEELEMENTREFERENCEEXCEPTION?\">88. How to handle STALEELEMENTREFERENCEEXCEPTION?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-88\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#89What_are_the_types_of_waits_available_in_Selenium_WebDriver\" title=\"89.What are the types of waits available in Selenium WebDriver?\">89.What are the types of waits available in Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-89\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#90What_is_Implicit_Wait_In_Selenium_WebDriver\" title=\"90.What is Implicit Wait In Selenium WebDriver?\">90.What is Implicit Wait In Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-90\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#91What_is_WebDriver_Wait_In_Selenium_WebDriver\" title=\"91.What is WebDriver Wait In Selenium WebDriver?\">91.What is WebDriver Wait In Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-91\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#92_What_is_Fluent_Wait_In_Selenium_WebDriver\" title=\"92. What is Fluent Wait In Selenium WebDriver?\">92. What is Fluent Wait In Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-92\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#93What_happen_if_you_mix_both_implicit_wait_and_explicit_wait_in_a_Selenium_Script\" title=\"93.What happen if you mix both implicit wait and explicit wait in a Selenium Script?\">93.What happen if you mix both implicit wait and explicit wait in a Selenium Script?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-93\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#95_Is_Selenium_Server_needed_to_run_Selenium_WebDriver_Scripts\" title=\"95. Is Selenium Server needed to run Selenium WebDriver Scripts?\">95. Is Selenium Server needed to run Selenium WebDriver Scripts?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-94\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#96How_can_we_maximize_browser_window_in_Selenium\" title=\"96.How can we maximize browser window in Selenium?\">96.How can we maximize browser window in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-95\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#97How_to_delete_cookies_in_Selenium\" title=\"97.How to delete cookies in Selenium?\">97.How to delete cookies in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-96\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#98What_is_the_difference_between_driverclose_and_driverquit_methods\" title=\"98.What is the difference between driver.close() and driver.quit() methods?\">98.What is the difference between driver.close() and driver.quit() methods?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-97\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#99What_Is_The_Difference_Between_MaxSessions_Vs_MaxInstances_Properties_in_Selenium_Grid\" title=\"99.What Is The Difference Between MaxSessions Vs. MaxInstances Properties in Selenium Grid?\">99.What Is The Difference Between MaxSessions Vs. MaxInstances Properties in Selenium Grid?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-98\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#100_What_is_the_difference_between_driverfindElement_and_driverfindElements_commands\" title=\"100. What is the difference between driver.findElement() and driver.findElements() commands?\">100. What is the difference between driver.findElement() and driver.findElements() commands?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-99\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#101How_to_find_whether_an_element_is_displayed_on_the_web_page\" title=\"101.How to find whether an element is displayed on the web page?\">101.How to find whether an element is displayed on the web page?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-100\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#102How_to_capture_Screenshot_in_Selenium_WebDriver\" title=\"102.How to capture Screenshot in Selenium WebDriver?\">102.How to capture Screenshot in Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-101\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#103_How_can_we_handle_Web-based_Pop-ups_or_Alerts_in_Selenium\" title=\"103. How can we handle Web-based Pop-ups or Alerts in Selenium?\">103. How can we handle Web-based Pop-ups or Alerts in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-102\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#104How_can_we_handle_windows_based_pop_up\" title=\"104.How can we handle windows based pop up?\">104.How can we handle windows based pop up?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-103\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#105How_to_handle_hidden_elements_in_Selenium_WebDriver\" title=\"105.How to handle hidden elements in Selenium WebDriver?\">105.How to handle hidden elements in Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-104\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#106_How_do_you_read_test_data_from_excels\" title=\"106. How do you read test data from excels?\">106. How do you read test data from excels?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-105\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#107Is_it_possible_to_automate_the_cap_tcha_using_Selenium\" title=\"107.Is it possible to automate the cap tcha using Selenium?\">107.Is it possible to automate the cap tcha using Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-106\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#108Can_You_Use_Selenium_For_Rest_API_Testing_Or_Web_Services_Testing\" title=\"108.Can You Use Selenium For Rest API Testing Or Web Services Testing?\">108.Can You Use Selenium For Rest API Testing Or Web Services Testing?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-107\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#109How_to_handle_Ajax_calls_in_Selenium_WebDriver\" title=\"109.How to handle Ajax calls in Selenium WebDriver?\">109.How to handle Ajax calls in Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-108\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#110List_some_scenarios_which_we_cannot_automate_using_Selenium_WebDriver\" title=\"110.List some scenarios which we cannot automate using Selenium WebDriver?\">110.List some scenarios which we cannot automate using Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-109\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#111_What_is_Object_Repository_in_Selenium_WebDriver\" title=\"111. What is Object Repository in Selenium WebDriver?\">111. What is Object Repository in Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-110\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#112How_you_build_Object_Repository_in_your_project\" title=\"112.How you build Object Repository in your project?\">112.How you build Object Repository in your project?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-111\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#113What_is_Page_Object_Model_in_Selenium\" title=\"113.What is Page Object Model in Selenium?\">113.What is Page Object Model in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-112\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#114_What_is_Page_Factory\" title=\"114. What is Page Factory?\">114. What is Page Factory?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-113\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#115What_is_the_difference_between_Page_Object_Model_POM_and_Page_Factory\" title=\"115.What is the difference between Page Object Model (POM) and Page Factory?\">115.What is the difference between Page Object Model (POM) and Page Factory?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-114\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#116What_are_the_advantages_of_Page_Object_Model_Framework\" title=\"116.What are the advantages of Page Object Model Framework?\">116.What are the advantages of Page Object Model Framework?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-115\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#117_How_to_Upload_a_file_in_Selenium_WebDriver\" title=\"117. How to Upload a file in Selenium WebDriver?\">117. How to Upload a file in Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-116\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#118How_to_Download_a_file_in_Selenium_WebDriver\" title=\"118.How to Download a file in Selenium WebDriver?\">118.How to Download a file in Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-117\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#119How_to_connect_a_Database_in_selenium\" title=\"119.How to connect a Database in selenium?\">119.How to connect a Database in selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-118\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#120How_To_Resize_Browser_Window_Using_Selenium_WebDriver\" title=\"120.How To Resize Browser Window Using Selenium WebDriver?\">120.How To Resize Browser Window Using Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-119\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#121How_To_Scroll_Web_Page_Down_Or_UP_Using_Selenium_WebDriver\" title=\"121.How To Scroll Web Page Down Or UP Using Selenium WebDriver?\">121.How To Scroll Web Page Down Or UP Using Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-120\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#122_How_To_Perform_Right_Click_Action_Context_Click_In_Selenium_WebDriver\" title=\"122. How To Perform Right Click Action (Context Click) In Selenium WebDriver?\">122. How To Perform Right Click Action (Context Click) In Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-121\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#123How_To_Perform_Double_Click_Action_In_Selenium_WebDriver\" title=\"123.How To Perform Double Click Action In Selenium WebDriver?\">123.How To Perform Double Click Action In Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-122\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#124How_To_Perform_Drag_And_Drop_Action_in_Selenium_WebDriver\" title=\"124.How To Perform Drag And Drop Action in Selenium WebDriver?\">124.How To Perform Drag And Drop Action in Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-123\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#125How_To_Highlight_Element_Using_Selenium_WebDriver\" title=\"125.How To Highlight Element Using Selenium WebDriver?\">125.How To Highlight Element Using Selenium WebDriver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-124\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#126Have_you_used_any_crossbrowsertesting_tool_to_run_selenium_scripts_on_cloud\" title=\"126.Have you used any crossbrowsertesting tool to run selenium scripts on cloud?\">126.Have you used any crossbrowsertesting tool to run selenium scripts on cloud?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-125\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#127_What_is_desired_capabilities\" title=\"127. What is desired capabilities?\">127. What is desired capabilities?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-126\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#128What_is_Continuous_Integration\" title=\"128.What is Continuous Integration?\">128.What is Continuous Integration?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-127\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#129Name_some_CI_tools_available_in_the_Market\" title=\"129.Name some CI tools available in the Market?\">129.Name some CI tools available in the Market?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-128\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#130_How_to_achieve_Database_testing_in_Selenium\" title=\"130. How to achieve Database testing in Selenium?\">130. How to achieve Database testing in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-129\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#131What_is_TestNG\" title=\"131.What is TestNG?\">131.What is TestNG?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-130\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#132What_is_TestNG_Assert_and_list_out_some_common_Assertions_supported_by_TestNG\" title=\"132.What is TestNG Assert and list out some common Assertions supported by TestNG?\">132.What is TestNG Assert and list out some common Assertions supported by TestNG?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-131\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#133_How_to_create_and_run_TestNGxml\" title=\"133. How to create and run TestNG.xml?\">133. How to create and run TestNG.xml?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-132\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#134How_to_set_test_case_priority_in_TestNG\" title=\"134.How to set test case priority in TestNG?\">134.How to set test case priority in TestNG?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-133\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#135How_to_run_a_group_of_test_cases_using_TestNG\" title=\"135.How to run a group of test cases using TestNG?\">135.How to run a group of test cases using TestNG?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-134\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#136What_is_the_use_of_Listener_annotation_in_TestNG\" title=\"136.What is the use of @Listener annotation in TestNG?\">136.What is the use of @Listener annotation in TestNG?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-135\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#137_What_is_Selenium_and_what_is_composed_of\" title=\"137. What is Selenium and what is composed of?\">137. What is Selenium and what is composed of?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-136\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#138What_is_Selenium_20\" title=\"138.What is Selenium 2.0?\">138.What is Selenium 2.0?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-137\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#139_Mention_what_is_Selenium_30\" title=\"139. Mention what is Selenium 3.0?\">139. Mention what is Selenium 3.0?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-138\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#140_How_will_you_find_an_element_using_Selenium\" title=\"140. How will you find an element using Selenium?\">140. How will you find an element using Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-139\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#141List_out_the_test_types_that_are_supported_by_Selenium\" title=\"141.List out the test types that are supported by Selenium?\">141.List out the test types that are supported by Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-140\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#142_Explain_what_is_assertion_in_Selenium_and_what_are_the_types_of_assertion\" title=\"142. Explain what is assertion in Selenium and what are the types of assertion?\">142. Explain what is assertion in Selenium and what are the types of assertion?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-141\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#143Mention_what_is_the_use_of_X-path\" title=\"143.Mention what is the use of X-path?\">143.Mention what is the use of X-path?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-142\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#144Explain_the_difference_between_single_and_double_slash_in_X-path\" title=\"144.Explain the difference between single and double slash in X-path?\">144.Explain the difference between single and double slash in X-path?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-143\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#145List_out_the_technical_challenges_with_Selenium\" title=\"145.List out the technical challenges with Selenium?\">145.List out the technical challenges with Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-144\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#146_What_is_the_difference_between_type_keys_and_type_commands\" title=\"146. What is the difference between type keys and type commands ?\">146. What is the difference between type keys and type commands ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-145\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#147What_is_the_difference_between_verify_and_assert_commands\" title=\"147.What is the difference between verify and assert commands?\">147.What is the difference between verify and assert commands?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-146\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#148What_is_JUnit_Annotations_and_what_are_different_types_of_annotations_which_are_useful\" title=\"148.What is JUnit Annotations and what are different types of annotations which are useful ?\">148.What is JUnit Annotations and what are different types of annotations which are useful ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-147\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#149_While_using_click_command_can_you_use_screen_coordinate\" title=\"149. While using click command can you use screen coordinate?\">149. While using click command can you use screen coordinate?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-148\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#150What_are_the_advantages_of_Selenium\" title=\"150.What are the advantages of Selenium?\">150.What are the advantages of Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-149\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#151Why_testers_should_opt_for_Selenium_and_not_QTP\" title=\"151.Why testers should opt for Selenium and not QTP?\">151.Why testers should opt for Selenium and not QTP?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-150\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#152_What_are_the_four_parameter_you_have_to_pass_in_Selenium\" title=\"152. What are the four parameter you have to pass in Selenium?\">152. What are the four parameter you have to pass in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-151\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#153What_is_the_difference_between_set_Speed_and_sleep_methods\" title=\"153.What is the difference between set Speed() and sleep() methods?\">153.What is the difference between set Speed() and sleep() methods?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-152\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#154_What_is_same_origin_policy_How_you_can_avoid_same_origin_policy\" title=\"154. What is same origin policy? How you can avoid same origin policy?\">154. What is same origin policy? How you can avoid same origin policy?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-153\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#155What_is_heightened_privileges_browsers\" title=\"155.What is heightened privileges browsers?\">155.What is heightened privileges browsers?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-154\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#156How_you_can_use_%E2%80%9Csubmit%E2%80%9D_a_form_using_Selenium\" title=\"156.How you can use \u201csubmit\u201d a form using Selenium ?\">156.How you can use \u201csubmit\u201d a form using Selenium ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-155\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#157_What_are_the_features_of_TestNG_and_list_some_of_the_functionality_in_TestNG_which_makes_it_more_effective\" title=\"157. What are the features of TestNG and list some of the functionality in TestNG which makes it more effective?\">157. What are the features of TestNG and list some of the functionality in TestNG which makes it more effective?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-156\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#158Mention_what_is_the_difference_between_Implicit_wait_and_Explicit_wait\" title=\"158.Mention what is the difference between Implicit wait and Explicit wait?\">158.Mention what is the difference between Implicit wait and Explicit wait?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-157\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#159Which_attribute_you_should_consider_throughout_the_script_in_frame_for_%E2%80%9Cif_no_frame_Id_as_well_as_no_frame_name%E2%80%9D\" title=\"159.Which attribute you should consider throughout the script in frame for \u201cif no frame Id as well as no frame name\u201d?\">159.Which attribute you should consider throughout the script in frame for \u201cif no frame Id as well as no frame name\u201d?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-158\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#160_Explain_what_is_the_difference_between_find_elements_and_find_element\" title=\"160. Explain what is the difference between find elements () and find element () ?\">160. Explain what is the difference between find elements () and find element () ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-159\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#161Explain_what_are_the_JUnits_annotation_linked_with_Selenium\" title=\"161.Explain what are the JUnits annotation linked with Selenium?\">161.Explain what are the JUnits annotation linked with Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-160\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#162Explain_how_you_can_login_into_any_site_if_its_showing_any\" title=\"162.Explain how you can login into any site if it\u2019s showing any\">162.Explain how you can login into any site if it\u2019s showing any<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-161\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#163_Explain_what_is_Data_driven_framework_and_Keyword_driven\" title=\"163. Explain what is Data driven framework and Keyword driven?\">163. Explain what is Data driven framework and Keyword driven?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-162\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#164Explain_how_you_can_login_into_any_site_if_its_showing_any_authentication\" title=\"164.Explain how you can login into any site if it\u2019s showing any authentication\">164.Explain how you can login into any site if it\u2019s showing any authentication<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-163\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#165What_is_Object_Repository\" title=\"165.What is Object Repository ?\">165.What is Object Repository ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-164\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#166Explain_how_Selenium_Grid_works\" title=\"166.Explain how Selenium Grid works?\">166.Explain how Selenium Grid works?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-165\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#167_List_the_advantages_of_Web_driver_over_Selenium_Server\" title=\"167. List the advantages of Web driver over Selenium Server?\">167. List the advantages of Web driver over Selenium Server?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-166\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#168Mention_what_are_the_capabilities_of_Selenium_Web_Driver_or_Selenium_20\" title=\"168.Mention what are the capabilities of Selenium Web Driver or Selenium 2.0 ?\">168.Mention what are the capabilities of Selenium Web Driver or Selenium 2.0 ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-167\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#169Explain_how_you_can_find_broken_images_in_a_page_using_Selenium_Web_driver\" title=\"169.Explain how you can find broken images in a page using Selenium Web driver ?\">169.Explain how you can find broken images in a page using Selenium Web driver ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-168\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#170_Explain_how_you_can_handle_colors_in_web_driver\" title=\"170. Explain how you can handle colors in web driver?\">170. Explain how you can handle colors in web driver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-169\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#171Using_web_driver_how_you_can_store_a_value_which_is_text_box\" title=\"171.Using web driver how you can store a value which is text box?\">171.Using web driver how you can store a value which is text box?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-170\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#172Explain_how_you_can_switch_between_frames\" title=\"172.Explain how you can switch between frames?\">172.Explain how you can switch between frames?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-171\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#173Explain_using_Web_driver_how_you_can_perform_double_click\" title=\"173.Explain using Web driver how you can perform double click?\">173.Explain using Web driver how you can perform double click?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-172\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#174How_will_you_use_Selenium_to_upload_a_file\" title=\"174.How will you use Selenium to upload a file?\">174.How will you use Selenium to upload a file?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-173\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#175Which_web_driver_implementation_is_fastest\" title=\"175.Which web driver implementation is fastest?\">175.Which web driver implementation is fastest?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-174\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#176Explain_how_you_can_handle_frames_using_Selenium_20\" title=\"176.Explain how you can handle frames using Selenium 2.0?\">176.Explain how you can handle frames using Selenium 2.0?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-175\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#177_What_is_the_difference_between_getWindowhandles_and_get_windo_whandle\" title=\"177. What is the difference between getWindowhandles() and get windo whandle()?\">177. What is the difference between getWindowhandles() and get windo whandle()?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-176\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#178Explain_how_you_can_switch_back_from_a_frame\" title=\"178.Explain how you can switch back from a frame?\">178.Explain how you can switch back from a frame?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-177\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#179List_out_different_types_of_locators\" title=\"179.List out different types of locators?\">179.List out different types of locators?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-178\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#180What_is_the_command_that_is_used_in_order_to_display_the_values_of_a_variable_into_the_output_console_or_log\" title=\"180.What is the command that is used in order to display the values of a variable into the output console or log?\">180.What is the command that is used in order to display the values of a variable into the output console or log?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-179\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#181Explain_how_you_can_use_recovery_scenario_with_Selenium\" title=\"181.Explain how you can use recovery scenario with Selenium?\">181.Explain how you can use recovery scenario with Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-180\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#182How_can_you_prepare_customized_html_report_using_TestNG_in_hybrid_framework\" title=\"182.How can you prepare customized html report using TestNG in hybrid framework ?\">182.How can you prepare customized html report using TestNG in hybrid framework ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-181\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#183From_your_test_script_how_you_can_create_html_test_report\" title=\"183.From your test script how you can create html test report?\">183.From your test script how you can create html test report?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-182\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#184Explain_how_you_can_insert_a_break_point_in_Selenium_IDE\" title=\"184.Explain how you can insert a break point in Selenium IDE ?\">184.Explain how you can insert a break point in Selenium IDE ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-183\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#185Explain_in_Selenium_IDE_how_can_you_debug_the_tests\" title=\"185.Explain in Selenium IDE how can you debug the tests?\">185.Explain in Selenium IDE how can you debug the tests?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-184\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#186What_is_Selenese_and_what_are_the_types_of_Selenese\" title=\"186.What is Selenese and what are the types of Selenese ?\">186.What is Selenese and what are the types of Selenese ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-185\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#187What_are_the_two_modes_of_views_in_Selenium_IDE\" title=\"187.What are the two modes of views in Selenium IDE ?\">187.What are the two modes of views in Selenium IDE ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-186\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#188How_you_can_convert_any_Selenium_IDE_tests_from_Selenese_to_another_language\" title=\"188.How you can convert any Selenium IDE tests from Selenese to another language?\">188.How you can convert any Selenium IDE tests from Selenese to another language?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-187\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#189Using_Selenium_IDE_is_it_possible_to_get_data_from_a_particular_html_table_cell\" title=\"189.Using Selenium IDE is it possible to get data from a particular html table cell?\">189.Using Selenium IDE is it possible to get data from a particular html table cell?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-188\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#190Explain_what_can_cause_a_Selenium_IDE_test_to_fail\" title=\"190.Explain what can cause a Selenium IDE test to fail?\">190.Explain what can cause a Selenium IDE test to fail?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-189\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#191Explain_how_you_can_debug_the_tests_in_Selenium_IDE\" title=\"191.Explain how you can debug the tests in Selenium IDE ?\">191.Explain how you can debug the tests in Selenium IDE ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-190\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#192From_Selenium_IDE_how_you_can_execute_a_single_line\" title=\"192.From Selenium IDE how you can execute a single line?\">192.From Selenium IDE how you can execute a single line?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-191\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#193In_which_format_does_source_view_shows_your_script_in_Selenium_IDE\" title=\"193.In which format does source view shows your script in Selenium IDE?\">193.In which format does source view shows your script in Selenium IDE?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-192\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#194What_if_you_have_written_your_own_element_locator_and_how_would_you_test_it\" title=\"194.What if you have written your own element locator and how would you test it?\">194.What if you have written your own element locator and how would you test it?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-193\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#195What_is_regular_expressions_How_you_can_use_regular_expressions_in_Selenium\" title=\"195.What is regular expressions? How you can use regular expressions in Selenium?\">195.What is regular expressions? How you can use regular expressions in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-194\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#196State_the_major_difference_between_%E2%80%9Cassert%E2%80%9D_and_%E2%80%9Cverify%E2%80%9D_commands_in_Selenium\" title=\"196.State the major difference between \u201cassert\u201d and \u201cverify\u201d commands in Selenium.\">196.State the major difference between \u201cassert\u201d and \u201cverify\u201d commands in Selenium.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-195\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#197Demonstrate_usage_of_Selenium_through_a_test_application\" title=\"197.Demonstrate usage of Selenium through a test application.\">197.Demonstrate usage of Selenium through a test application.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-196\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#198What_are_the_advantages_of_automation_testing\" title=\"198.What are the advantages of automation testing?\">198.What are the advantages of automation testing?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-197\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#199What_is_Selenium\" title=\"199.What is Selenium?\">199.What is Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-198\" href=\"https:\/\/gauthamit.com\/blog\/selenium-interview-questions\/#200What_are_the_significant_changesupgrades_in_various_Selenium_versions\" title=\"200.What are the significant changes\/upgrades in various Selenium versions?\">200.What are the significant changes\/upgrades in various Selenium versions?<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Selenium_Interview_Questions\"><\/span><strong>Selenium Interview Questions<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h2><span class=\"ez-toc-section\" id=\"1_What_is_automation_testing\"><\/span>1. What is automation testing?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Automation testing is the process of automating the manual testing of the application under test (AUT) or the system under test (SUT). It includes the involvement of testing tools that help us create test scripts, which can be used repeatedly without any human intervention.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"2_What_is_a_locator_How_can_you_find_elements_in_Selenium\"><\/span>2. What is a locator? How can you find elements in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Selenium uses locators to find and match the elements of a web page that it needs to<br \/>\ninteract with. There are different types of Selenium locators to identify various web elements on a web page:<br \/>\n\uf076 ID<br \/>\n\uf076 Name<br \/>\n\uf076 Class<br \/>\n\uf076 Partial Link<br \/>\n\uf076 XPath<br \/>\n\uf076 CSS Selector<br \/>\n\uf076 Link Text<\/p>\n<h2><span class=\"ez-toc-section\" id=\"3_Is_Selenium_20_different_from_Selenium_30_If_so_how\"><\/span>3. Is Selenium 2.0 different from Selenium 3.0? If so, how?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium RC is called Selenium 2.0, and the integration of Selenium RC and WebDriver as a single tool has formed Selenium 3.0.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"4_Mention_some_of_the_popular_tools_used_for_automation_testing\"><\/span>4. Mention some of the popular tools used for automation testing ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0d8 Selenium<br \/>\n\uf0d8 Rational Robot<br \/>\n\uf0d8 HP Unified Functional Testing (UFT)<br \/>\n\uf0d8 IBM Rational Functional Tester<\/p>\n<h2><span class=\"ez-toc-section\" id=\"5_What_are_the_test_types_supported_by_Selenium\"><\/span>5. What are the test types supported by Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The test types supported by Selenium are:<br \/>\nFunctional testing: It verifies if each function of a software application performs in accordance with specific<br \/>\nrequirements. This testing primarily involves black-box testing, and it is not concerned about the source code of<br \/>\nthe application.<br \/>\nRegression testing: It is nothing but a full or partial selection of the already executed test cases to be re-executed<br \/>\nto ensure whether the existing functionalities work fine.<br \/>\nFor testing web-based applications, Selenium can be used.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"6_What_is_X_Path\"><\/span>6. What is X Path?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>While DOM is the recognized standard way for navigating through an HTML element<br \/>\ntree, XPath is the navigation tool used to locate a web element based on its XML path.<br \/>\nXML stands for \u2018Extensible Markup Language\u2019 and is used to store, organize, and transport<br \/>\narbitrary data. It stores data in a key\u2013value pair that is very much similar to HTML tags. Both<br \/>\nbeing markup languages and falling under the same umbrella, XPath can be used to locate<br \/>\nHTML elements.<br \/>\nThe fundamental concept behind locating elements using XPath is traversing between<br \/>\nvarious elements across the entire page and thus enabling a user to find an element with the<br \/>\nreference of another element.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"7_Explain_the_difference_between_single_slash_and_double_slash_in_XPath\"><\/span>7. Explain the difference between single slash and double slash in XPath.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Single slash (\/): Single slash is used to create an XPath with an absolute path. In this case, the<br \/>\nXPath would start selection from the document\u2019s start node.<br \/>\n\uf0a7 Double slash (\/\/): Double slash is used to create an XPath with a relative path. In this case, the XPath would start selection from anywhere within the document.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"8_Why_should_you_use_Selenium_for_test_automation\"><\/span>8. Why should you use Selenium for test automation?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium should be used for test automation as it:<br \/>\nIs a free and open-source tool<br \/>\nHas a large user base and community support<br \/>\nHas cross-browser compatibility (Firefox, Chrome, Internet Explorer, Safari, etc.)<br \/>\nHas great platform compatibility (Windows, Mac OS, Linux, etc.)<br \/>\nSupports multiple programming languages (Java, C#, Ruby, Python, Perl, etc.)<br \/>\nHas fresh and regular repository developments<br \/>\nSupports distributed testing<\/p>\n<h2><span class=\"ez-toc-section\" id=\"9_Does_Selenium_have_any_technical_limitations_If_so_what_are_those_limitations\"><\/span>9. Does Selenium have any technical limitations? If so, what are those limitations?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Yes, Selenium has a few limitations:<br \/>\n\uf0a7 Testing of only web applications is possible using Selenium.<br \/>\n\uf0a7 Testing of mobile applications or desktop applications is not possible.<br \/>\n\uf0a7 Captcha and barcode readers cannot be tested using Selenium.<br \/>\n\uf0a7 A third-party tool like TestNGor JUnit should be used to generate reports.<br \/>\n\uf0a7 As Selenium is a free tool, there is no ready vendor support through which users can find<br \/>\nvarious helping communities.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"10_What_is_an_object_repository\"><\/span>10. What is an object repository?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Prior programming language knowledge is expected from users.<br \/>\nAn object repository allows testers to accumulate web elements of the application under test<br \/>\n(AUT), along with their locator values, in one or more centralized locations as restricted to hard\u0002coding them within the test scripts.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"11_What_is_the_difference_between_type_keys_and_type_commands\"><\/span>11. What is the difference between type keys and type commands?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Type Keys() will trigger JavaScript events, while type() won\u2019t. Types Keys collects different value<br \/>\nattributes using JavaScript. Whereas, the type commands imitate an actual user typing.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"12_What_are_the_advantages_of_Selenium\"><\/span>12. What are the advantages of Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf076Selenium is a purely open-source and portable automation testing tool.<br \/>\n\uf076It supports different languages such as C#, PHP, Java, Perl, Python, JS, and Groovy.<br \/>\n\uf076It also supports different OS, including Windows, Linux, UNIX, and Mac OS.<br \/>\n\uf076It provides powerful methods such as Xpath, DOM, and CSS to locate elements.<br \/>\n\uf076Since it is an open-source tool, developers can customize the code. Also, the developer<br \/>\ncommunity is supported by Google.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"13_Define_automation_testing_and_list_down_its_advantages\"><\/span>13. Define automation testing, and list down its advantages.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Automation testing or test automation is the process of automating the testing process by using tools to write and execute test cases without any human intervention. It allows us to create scripts that can be executed frequently and generate detailed test reports of the<br \/>\napplication.<br \/>\n\uf0a7 Its advantages are as given below:<br \/>\n\uf0a7 It helps in the performance and functional testing of an application.<br \/>\n\uf0a7 It makes the execution of repeated test cases easy.<br \/>\n\uf0a7 It supports the parallel execution of multiple test cases.<br \/>\n\uf0a7 It boosts the accuracy and efficiency of the application by cutting down the chances of human error.<br \/>\n\uf0a7 It easily performs testing on a large-scale test matrix.<br \/>\n\uf0a7 It saves time and money by reducing the burden of arbitrary tasks.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"14_What_are_the_significant_changesupgrades_made_to_various_Selenium_versions\"><\/span>14. What are the significant changes\/upgrades made to various Selenium versions?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium\u2019s first version included only three sets of tools: Selenium IDE, Selenium RC, and Selenium Grid.<br \/>\nThere was no WebDriver included in the first version. Later, Selenium WebDriver was introduced and<br \/>\nhence included in Selenium V2. However, as WebDriver got included, the use of Selenium RC was<br \/>\ndiscouraged with time and is not much in use ever since. Selenium 3 is in use. There are some newly<br \/>\nadded Selenium features such as IDE and WebDriver. Selenium 4 is the latest released version.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"15_How_many_types_of_WebDriver_APIs_are_available_in_Selenium\"><\/span>15. How many types of WebDriver APIs are available in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 The following is the list of WebDriver APIs:<br \/>\n\uf076 AndroidDriver<br \/>\n\uf076 ChromeDriver<br \/>\n\uf076 EventFiringWebDriver<br \/>\n\uf076 FirefoxDriver<br \/>\n\uf076 HTMLUnitDriver<br \/>\n\uf076 InternetExplorerDriver<br \/>\n\uf076 iPhoneDriver<br \/>\n\uf076 iPhoneSimulatorDriver<br \/>\n\uf076 RemoteWebDriver<\/p>\n<h2><span class=\"ez-toc-section\" id=\"16_What_is_an_exception_test_in_Selenium\"><\/span>16. What is an exception test in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>An exception test is a test that looks forward to an exception to be thrown inside a test class. It anticipates the @Test annotation followed by the expected exception name. For<br \/>\nexample, @Test(expected Exception = No Such Element Exception . class) is an exception test for missing elements in Selenium.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"17_What_is_POM_Page_Object_Model_What_are_its_advantages\"><\/span>17. What is POM (Page Object Model)? What are its advantages?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Page Object Model is a design pattern used to create object repositories for the web UI<br \/>\nelements. Every web page of an application has a corresponding page class that is responsible<br \/>\nfor locating the web elements and performing actions on them.<br \/>\nIts advantages are as follows:<br \/>\nIt provides support to separate operations and flows on the UI from verification, hence<br \/>\nimproving code readability.<br \/>\nAs the object repository is independent of test cases, multiple tests can use the same object<br \/>\nrepository.<br \/>\nIt increases the reusability of the code<br \/>\nThat\u2019s all for the basic Selenium Java interview questions. Let\u2019s move on to the next section of<br \/>\nintermediate Selenium WebDriver interview questions.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"18_What_are_the_different_types_of_annotations_used_in_Selenium_Explain_the_JUnit_annotation_linked_with_Selenium\"><\/span>18. What are the different types of annotations used in Selenium? Explain the JUnit annotation linked with Selenium.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 In Java, a special form of syntactic metadata can be added to Java source code, which is known as \u2018annotations\u2019.Variables, parameters, packages, methods, and classes are annotated. Some of the JUnit annotations are:<br \/>\n\uf0a7 Test<br \/>\n\uf0a7 Before<br \/>\n\uf0a7 After<br \/>\n\uf0a7 Ignore<br \/>\n\uf0a7 Before Class<br \/>\n\uf0a7 After Class<br \/>\n\uf0a7 Run With<\/p>\n<h2><span class=\"ez-toc-section\" id=\"19_Why_do_testers_choose_Selenium_over_QTP\"><\/span>19. Why do testers choose Selenium over QTP?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium is more widely used than QTP since:<br \/>\n\uf0a7 Selenium is an open-source tool, whereas QTP is a profitable tool<br \/>\n\uf0a7 Selenium is used specifically for testing web-based applications, while QTP can be used for testing client\u2013server applications too<br \/>\n\uf0a7 Selenium supports multiple browsers like Firefox, IE, Opera, Safari, etc. and has multiple<br \/>\noperating systems compatibility too. Selenium-supported OS platforms are Windows, Mac,<br \/>\nLinux, etc. On the other hand, QTP is limited to Internet Explorer on Windows<br \/>\n\uf0a7 Selenium supports multi-programming language compatibility. Languages supported by<br \/>\nSelenium are Python, Ruby, Perl, etc. But, QTP supports only VBScript<\/p>\n<h2><span class=\"ez-toc-section\" id=\"20_What_are_the_four_elements_that_you_have_to_pass_in_Selenium\"><\/span>20. What are the four elements that you have to pass in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Four parameters that need to be passed in Selenium are:<br \/>\no Host<br \/>\no Port number<br \/>\no Browser<br \/>\no URL<\/p>\n<h2><span class=\"ez-toc-section\" id=\"21_What_is_Same-origin_Policy_How_can_we_avoid_it\"><\/span>21. What is Same-origin Policy? How can we avoid it?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 The \u2018Same-origin Policy\u2019 is introduced for security reasons.<br \/>\nIt ensures that the content of our site will never be accessible by a script from another site.<br \/>\nAs per the policy, any code loaded within the browser can only operate within that website\u2019s<br \/>\ndomain.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"22_What_are_data-driven_framework_and_keyword-driven_framework\"><\/span>22. What are data-driven framework and keyword-driven framework?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A data-driven framework in Selenium is an approach of separating a \u2018dataset\u2019 from the actual \u2018test case\u2019 (code). This framework is completely dependent on the input test data. The test data is inserted from external sources, such as from an Excel file, a CSV file, or from any database. It also allows us to easily control how much data needs to be tested. We can easily increase the number of test parameters by adding more username and password fields to the Excel file (or other sources).<br \/>\nA keyword-driven framework is an extension to the data-driven testing framework in the sense that it not only isolates the test data from the scripts but also keeps the particular section of the code belonging to the test script in an external data file. These sets of code are known as keywords, and hence the framework is so named. Keywords are self-guiding and work based on what actions need to be performed on the application.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"23_How_will_you_use_Selenium_to_upload_a_file\"><\/span>23. How will you use Selenium to upload a file?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If the file is on the same machine or in a mapped network drive, it is really straightforward: We have to just type the \u2018path\u2019 of the file in the FileUpload control.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"24_What_is_the_difference_between_getwindowhandles_and_getwindowhandle\"><\/span>24. What is the difference between getwindowhandles() and getwindowhandle()?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 getwindowhandles(): It is used to get the address of all open browsers, and its return data type is Set&lt;String&gt;.<br \/>\n\uf0a7 getwindowhandle(): It is used to get the address of the current browser where the control is, and its return type is a string data type.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"25_What_is_Selenese_and_what_are_the_three_types_of_Selenese\"><\/span>25. What is Selenese, and what are the three types of Selenese?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Selenese is a set of commands in Selenium used for running a test.<br \/>\n\uf0a7 Three types of Selenese are as follows<br \/>\nFirst, select \u2018Toggle Breakpoint\u2019 by right-clicking on the command in Selenium IDE<br \/>\n\uf0a7 Then, press \u2018B\u2019 on the keyboard and select the command<br \/>\n\uf0a7 The same step should be repeated for deselecting a breakpoint<\/p>\n<h2><span class=\"ez-toc-section\" id=\"26_How_do_you_launch_the_web_browser_using_WebDriver\"><\/span>26. How do you launch the web browser using WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The following syntax can be used to launch the browser corresponding to the system\u2019s<br \/>\noperating system:<br \/>\nwebdriver driver =new firefox driver ().<\/p>\n<h2><span class=\"ez-toc-section\" id=\"27_List_down_some_of_the_technical_challenges_with_Selenium\"><\/span>27. List down some of the technical challenges with Selenium.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u2022 Testing a Windows application: Selenium is just a web-based driver. It does not support Windows-based apps and only supports web apps.<br \/>\n\u2022 Testing mobile apps: With the help of Selenium, we can test web apps on any OS and browser that run on desktops. But, we cannot test mobile apps with Selenium because it does not work with OS such as Android and iOS<br \/>\n\u2022 Limited reporting: It is one of the key challenges. In Selenium, we cannot generate efficient and accurate reports.<br \/>\n\u2022 Handling dynamic elements: With the surge in the use of web apps, the management of dynamic elements should be as much efficient as possible. When a web page loads, the content present on the page changes depending on the user, location, and other factors. Most of today\u2019s web apps are dynamic in nature for better user experience, e.g., e-commerce websites. In Selenium automation, the handling of dynamic web content is a major challenge.<br \/>\n\u2022 Handling page load: Some of the web pages in a web app are user-specific. They load elements depending on the user.<br \/>\n\u2022 Handling pop-up windows: Whenever any simple, prompt, or confirmation alert pops up, it is difficult to automate it.<br \/>\n28. What are the different types of waits available in WebDriver?<br \/>\nThere are two types of waits available in WebDriver:<br \/>\n\u2022 Implicit wait: These waits are used to provide a default waiting time (say, 30 seconds)<br \/>\nbetween the consecutive test steps across the entire test script. Hence, the subsequent test step would only be executed when the 30 seconds are over after executing the previous test step.<br \/>\n\u2022 Explicit wait: These waits are used to halt the execution until a particular condition is met or the maximum time has elapsed.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"29_How_do_you_handle_a_frame_in_WebDriver\"><\/span>29. How do you handle a frame in WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Test Execution Sequence:<br \/>\nMethod1<br \/>\nMethod2<br \/>\nMethod3<\/p>\n<h2><span class=\"ez-toc-section\" id=\"30_What_are_the_different_types_of_frameworks\"><\/span>30. What are the different types of frameworks?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Different types of frameworks are as follows:<br \/>\n\uf0a7 Module-based testing framework: This framework divides the entire application under<br \/>\ntest (AUT) into a number of logical and isolated modules.<br \/>\n\uf0a7 Library architecture testing framework: Instead of dividing AUT into test scripts, with<br \/>\nthis framework, we segregate the application into functions or rather common<br \/>\nfunctions that can be used by the other parts of the application as well.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"31_Describe_the_difference_between_Selenium_and_QTP\"><\/span>31. Describe the difference between Selenium and QTP.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Feature Selenium Quick Test Professional<br \/>\n(QTP)<br \/>\nBrowser compatibility It supports almost all<br \/>\npopular browsers: Firefox,Chrome, Safari, Internet Explorer, Opera, etc.QTP supports InternetExplorer, Firefox, and Chrome. It only supports Windows operating system<br \/>\nDistribution It is distributed as an open-source tool and is freely available It is distributed as a licensed tool and is commercialized Application under test (AUT) It supports the testing of web-based applications only It supports the testing of both web-based and<br \/>\nWindows-based applications Object repository Object repository needs to be created as a<br \/>\nseparate entity in Selenium QTP automatically creates and maintains the object repository<br \/>\nLanguage support It supports multipleprogramming languages like Java, C#, Ruby, Python, Perl, etc. It supports only VBScript Vendor support As Selenium is a free tool, users would not get the vendor\u2019s support in troubleshooting issues Users can easily get the vendor\u2019s support if they face any issues<\/p>\n<h2><span class=\"ez-toc-section\" id=\"32_In_Selenium_what_are_breakpoints_and_start_points\"><\/span>32. In Selenium, what are breakpoints and start points?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Breakpoints: Breakpoints are used to stall the execution of the test. The execution will stop<br \/>\nwhenever a breakpoint is implemented, and this will help us check whether the code is<br \/>\nworking properly or not.<br \/>\nStart points: Start points are the points from where the execution should begin. Start points<br \/>\ncan be used when we want to run the test script from the middle of the code or after a<br \/>\nbreakpoint.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"33_Mention_the_need_for_session_handling_while_working_with_Selenium\"><\/span>33. Mention the need for session handling while working with Selenium.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>While working with Selenium, we need session handling. This is because, during test execution,<br \/>\nSelenium WebDriver has to interact with the browser all the time to execute the given<br \/>\ncommands. It is also possible that, before the current execution completes, someone else<br \/>\nstarts the execution of another script in the same machine and in the same type of browser. So, to avoid such a situation, we need session handling.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"34_Mention_the_types_of_listeners_in_TestNG\"><\/span>34. Mention the types of listeners in TestNG?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The types of listeners in TestNG are:<br \/>\n\u2022 IAnnotationTransformer<br \/>\n\u2022 IConfigurable<br \/>\n\u2022 IConfigurationListener<br \/>\n\u2022 IExecutionListener<br \/>\n\u2022 IHookable<br \/>\n\u2022 IInvokedMethodListener<br \/>\n\u2022 IInvokedMethodListener2<br \/>\n\u2022 IMethodInterceptor<br \/>\n\u2022 IReporter<br \/>\n\u2022 ISuiteListener<br \/>\n\u2022 ITestListener<\/p>\n<h2><span class=\"ez-toc-section\" id=\"35_How_can_we_handle_Windows-based_popups_with_Selenium\"><\/span>35. How can we handle Windows-based popups with Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium solely supports web application testing. It does not support the testing of<br \/>\nWindows-based applications or mobile applications. To handle Windows-based popups,<br \/>\nthird-party intervention is required. AutoIt and Robot Class are examples of third-party<br \/>\ntools that we can use alongside Selenium to handle Windows-based popups.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"36_For_the_database_testing_in_Selenium_WebDriver_what_API_is_required\"><\/span>36. For the database testing in Selenium WebDriver, what API is required?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>For the database testing in Selenium WebDriver, we need the JDBC (Java Database Connectivity)<br \/>\nAPI. It allows us to execute SQL statements.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"37_How_can_you_identify_an_object_in_Selenium\"><\/span>37. How can you identify an object in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We can use isElementPresent (string locator) to find an object in Selenium. It takes<br \/>\na locator as the argument and, if found, returns a Boolean.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"38_How_can_you_identify_an_object_in_Selenium\"><\/span>38. How can you identify an object in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We can use isElementPresent (string locator) to find an object in Selenium. It takes a<br \/>\nlocator as the argument and, if found, returns a Boolean.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"39_Mention_the_use_of_XPath_in_Selenium_testing\"><\/span>39. Mention the use of XPath in Selenium testing.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>XPath is used to define web elements on a web page. The major advantage of XPath<br \/>\nis that it helps us in identifying the elements dynamically.<br \/>\nThere are two types of XPath:<br \/>\no Absolute XPath<br \/>\no Relative XPath<\/p>\n<h2><span class=\"ez-toc-section\" id=\"40_What_is_Selenium\"><\/span>40. What is Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium is a popular open-source software that is used to automate<br \/>\nweb-based applications. It is a set of multiple software tools, and each<br \/>\ntool has a different approach to automated testing.<br \/>\nSelenium has four major components, namely:<br \/>\nSelenium Integrated Development Environment<br \/>\no Selenium Remote Control<br \/>\no Selenium WebDriver<br \/>\no Selenium Grid<\/p>\n<h2><span class=\"ez-toc-section\" id=\"41_Can_WebDriver_test_mobile_applications\"><\/span>41. Can WebDriver test mobile applications?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>No, WebDriver is a testing tool used for web-based applications. So, we cannot test<br \/>\nmobile applications with Selenium WebDriver.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"42_Explain_how_Selenium_Grid_works\"><\/span>42. Explain how Selenium Grid works.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Selenium Grid creates a test suite that works by forwarding test cases to the hub,<br \/>\nand from there, the test cases are redirected to Selenium WebDriver. WebDriver will<br \/>\nthen execute them in the browser. The test suite allows for running tests in parallel.<br \/>\n\uf0a7 Hope you find our comprehensive blog on Selenium testing interview questions<br \/>\nuseful. Do let us know in the comments section if you could make use of these<br \/>\nSelenium topics for the interview.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"43_Explain_the_difference_between_driverclose_and_driverquit_commands_in_Selenium\"><\/span>43. Explain the difference between driver.close() and driver.quit() commands in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The following is the major difference between both commands:<br \/>\n\uf0a7close() command closes the currently active browser window, which is being used by<br \/>\nthe user or which is currently accessed by the web driver.<br \/>\n\uf0a7 quit() command closes all the windows opened by the program, unlike the driver.close<br \/>\n() command.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"44_Explain_the_difference_between_findElement_and_findElements_in_Selenium\"><\/span>44. Explain the difference between findElement() and findElements() in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The difference between findElement() and findElements() is as follows:<br \/>\n\uf0a7 findElement(): It finds one particular element within the current page using the locating<br \/>\nmechanism. It returns the first element located by the locator.<br \/>\n\uf0a7 findElements(): It finds all the elements within the current page with the help of the<br \/>\nlocating mechanism. Hence, it returns a list of matching web elements found by the<br \/>\nlocator.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"45_Mention_the_types_of_navigation_commands\"><\/span>45. Mention the types of navigation commands.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf076 navigate().back(): It takes the user back to the previous or the last-used web page,<br \/>\naccording to the history.<br \/>\n\uf076 navigate().forward(): It takes the user to the next web page, according to the browser<br \/>\nhistory.<br \/>\n\uf076 navigate().refresh(): It allows the user to refresh the current web page by reloading all the web elements.<br \/>\n\uf076 navigate().to(): It takes the user to a new web page in a new window, depending on the URLspecified.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"46_How_do_you_find_broken_links_in_Selenium_WebDriver\"><\/span>46. How do you find broken links in Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We can detect whether the given links are broken or not by using the following process:<br \/>\n1.First, accumulate all the links present on a web page using the &lt;a&gt; anchor tag. For each &lt;a&gt; tag, use the attribute \u2018h r e f\u2019 value to obtain the hyperlink<br \/>\n2. Send HTTP requests for each link and verify the HTTP response code<br \/>\n3. Based on the HTTP response code, determine if the link is valid or broken. Then, use the<br \/>\ndriver.get() method to navigate to a URL, which will respond with a status of 200 \u2013 OK (200 \u2013 OK indicates that the link is working). If we get any other status, then it indicates that the link is broken<br \/>\n4. Repeat the same process for all the links captured<\/p>\n<h2><span class=\"ez-toc-section\" id=\"47What_type_of_tests_have_you_automated\"><\/span>47.What type of tests have you automated?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Our main focus is to automate test cases to do Regression testing, Smoke &amp; Sanity<br \/>\ntesting. Sometimes based on the project and the test time estimation, we do focus on<br \/>\nEnd to End testing.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"48How_many_test_cases_you_have_automated_per_day\"><\/span>48.How many test cases you have automated per day?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Well, the number depends on the complexity of the test cases. When the<br \/>\ncomplexity was limited, I was able to automate 5 to 6 test cases per day.<br \/>\nSometimes, I was able to automate only one test case for complex scenarios.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"49_What_is_a_Framework\"><\/span>49. What is a Framework?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>framework defines a set of rules or best practices that we can follow in a<br \/>\nsystematic way to achieve the desired results. There are different types of<br \/>\nautomation frameworks and the most common ones are:<br \/>\nData-Driven Testing Framework<br \/>\n\uf071 Keyword Driven Testing Framework<br \/>\n\uf071 Hybrid Testing Framework<br \/>\n\uf071 Behavioural Driven Framework<\/p>\n<h2><span class=\"ez-toc-section\" id=\"50_What_type_of_test_cases_to_be_automated\"><\/span>50. What type of test cases to be automated?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u2022 Data-driven test cases<br \/>\n\u2022 Test cases with higher complexity<br \/>\n\u2022 Test case with many database updates<br \/>\n\u2022 The test execution rate is high<br \/>\n\u2022 Smoke\/Critical tests<br \/>\n\u2022 Tests with several combinations<br \/>\n\u2022 Graph test cases<br \/>\n\u2022 Higher manual execution time<\/p>\n<h2><span class=\"ez-toc-section\" id=\"53_What_type_of_test_cases_not_to_be_automated\"><\/span>53. What type of test cases not to be automated?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u2022 Subjective Validation<br \/>\n\u2022 New Functionalities<br \/>\n\u2022 Strategic Development<br \/>\n\u2022 User Experience<br \/>\n\u2022 Complex Functionality<br \/>\n\u2022 Quality Control<br \/>\n\u2022 Low return on investment<br \/>\n\u2022 Installation and setup testing<\/p>\n<h2><span class=\"ez-toc-section\" id=\"54_What_are_the_advantages_of_the_Test_Automation_Framework\"><\/span>54. What are the advantages of the Test Automation Framework?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Reusability of code.<br \/>\nEasy reporting.<br \/>\nLow-cost maintenance.<br \/>\nMaximum Coverage<br \/>\nMinimal manual intervention<\/p>\n<h2><span class=\"ez-toc-section\" id=\"55Have_you_created_any_Framework\"><\/span>55.Have you created any Framework?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 If you are a beginner: You can say \u201cNo, I didn\u2019t get a chance to create a framework<br \/>\nfrom the scratch. I have used the framework which is already available. My<br \/>\ncontribution is mostly in creating test cases by using the existing framework.\u201d<br \/>\n\uf0a7 If you are a beginner but have good knowledge of creating framework: You can say<br \/>\n\u201cYes, I have involved in developing framework along with other automation testers<br \/>\nin my company.\u201d<br \/>\n\uf0a7 If you are an experienced tester: You can say \u201cI have contributed to developing<br \/>\nframework.\u201d or You can say \u201cYes, I have created a framework from the scratch. There<br \/>\nwas no automation process in my previous company. I designed the framework from<br \/>\nthe scratch.\u201d<\/p>\n<h2><span class=\"ez-toc-section\" id=\"56Why_do_you_prefer_Selenium_Automation_Tool\"><\/span>56.Why do you prefer Selenium Automation Tool?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Free and open source \u2013 It is a free open source tool. There is no need to allot budget for<br \/>\nthis tool<br \/>\n\uf0a7 Help \u2013 Have large user base and helping communities.<br \/>\n\uf0a7 Cross-browser compatibility \u2013 It works on almost all popular browsers such as Chrome,<br \/>\nFirefox, Internet Explorer, and Safari.<br \/>\n\uf0a7 Cross Platform compatibility \u2013 It works on platforms such as Windows, Linux, Mac.<br \/>\n\uf0a7 Multiple programming languages \u2013 It supports programming languages such as Java,<br \/>\nPhyton, Perl, Php, C#, Ruby, etc.,<br \/>\n\uf0a7 Parallel Execution \u2013 Selenium Grid supports parallel execution of Selenium Scripts.<br \/>\n\uf0a7 Continuous Integration \u2013 We can achieve nightly execution using Jenkins.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"57_What_is_Selenium\"><\/span>57. What is Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium is an open source (free) automated testing suite to test web applications. It<br \/>\nsupports different platforms and browsers. It has gained a lot of popularity in terms of web\u0002based automated testing and giving a great competition to the famous commercial tool HP<br \/>\nQTP (Quick Test Professional) AKA HP UFT (Unified Functional Testing).<br \/>\nI. Selenium IDE (Selenium Integrated Development Environment)<br \/>\nII. Selenium RC (Selenium Remote Control)<br \/>\nIII. Selenium WebDriver<br \/>\nIV. Selenium Grid<\/p>\n<h2><span class=\"ez-toc-section\" id=\"58What_is_Selenium_IDE\"><\/span>58.What is Selenium IDE?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium IDE (Integrated Development Environment) is a Firefox plugin. It is the simplest<br \/>\nframework in the Selenium Suite. It allows us to record and playback the scripts. Even<br \/>\nthough we can create scripts using Selenium IDE, we need to use Selenium RC or Selenium<br \/>\nWebDriver to write more advanced and robust test cases.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"59What_is_Selenese\"><\/span>59.What is Selenese?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenese is the language that is used to write test scripts in Selenium IDE.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"60Which_is_the_only_browser_that_supports_Selenium_IDE_to_be_used\"><\/span>60.Which is the only browser that supports Selenium IDE to be used?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Firefox and Chrome. However, as Selenium IDE is community-powered, regular updates and compatibility with new browser versions cannot be ensured.<br \/>\nBack in 2017 when it no longer worked with Firefox\u2019s latest version, users switched to Katalon Recorder. It supports the same commands, extension scripts, data-driven testing, and advanced test reporting platform with TestOps.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"61What_is_Selenium_RC\"><\/span>61.What is Selenium RC?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium RC AKA Selenium Remote control \/ Selenium 1. Selenium Remote Control was the main Selenium project for a long time before the WebDriver merge brought up Selenium 2. Selenium 1 is still actively supported (in maintenance mode). It relies on JavaScript for automation. It supports Java, Javascript, Ruby, PHP, Python, Perl, and C#. It supports almost every browser out there.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"62What_is_Selenium_WebDriver\"><\/span>62.What is Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium WebDriver AKA Selenium 2 is a browser automation framework that accepts<br \/>\ncommands and sends them to a browser. It is implemented through a browser-specific<br \/>\ndriver. It controls the browser by directly communicating with it. Selenium WebDriver<br \/>\nsupports Java, C#, PHP, Python, Perl, Ruby.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"63What_is_the_difference_between_Selenium_3_and_Selenium_4\"><\/span>63.What is the difference between Selenium 3 and Selenium 4?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We all know that Selenium 4 was released as a stable version on October 13, 2021. So here in this<br \/>\npost, we have covered Selenium 4 Interview Questions &amp; Answers. First Let\u2019s see the difference<br \/>\nbetween Selenium 3 and Selenium 4.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"64_What_is_Selenium_Grid\"><\/span>64. What is Selenium Grid?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium Grid is a tool used together with Selenium RC to run tests on different machines<br \/>\nagainst different browsers in parallel. That is, running multiple tests at the same time against different machines running different browsers and operating systems<br \/>\nIn simple words, it is used to distribute your test execution on multiple platforms and<br \/>\nenvironments concurrently.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"65When_do_you_use_Selenium_Grid\"><\/span>65.When do you use Selenium Grid?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium Grid can be used to execute same or different test scripts on multiple platforms<br \/>\nand browsers concurrently so as to achieve distributed test execution<\/p>\n<h2><span class=\"ez-toc-section\" id=\"66What_are_the_advantages_of_Selenium_Grid\"><\/span>66.What are the advantages of Selenium Grid?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>It allows running test cases in parallel thereby saving test execution time.<br \/>\nIt allows multi-browser testing<br \/>\nIt allows us to execute test cases on multi-platform<\/p>\n<h2><span class=\"ez-toc-section\" id=\"67What_is_a_hub_in_Selenium_Grid\"><\/span>67.What is a hub in Selenium Grid?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A hub is a server or a central point that controls the test executions on different machines.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"68What_is_a_node_in_Selenium_Grid\"><\/span>68.What is a node in Selenium Grid?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Node is the machine which is attached to the hub. There can be multiple nodes in<br \/>\nSelenium Grid.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"69_What_are_the_types_of_WebDriver_APIs_available_in_Selenium\"><\/span>69. What are the types of WebDriver APIs available in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Firefox Driver<br \/>\nGecko Driver<br \/>\nInternetExplorer Driver<br \/>\nChrome Driver<br \/>\nHTMLUnit Driver<br \/>\nOpera Driver<br \/>\nSafari Driver<br \/>\nAndroid Driver<br \/>\niPhone Driver<br \/>\nEventFiringWebDriver<\/p>\n<h2><span class=\"ez-toc-section\" id=\"70Which_WebDriver_implementation_claims_to_be_the_fastest\"><\/span>70.Which WebDriver implementation claims to be the fastest?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The fastest implementation of WebDriver is the HTMLUnitDriver. It is because the<br \/>\nHTMLUnitDriver does not execute tests in the browser. Starting a browser and running test<br \/>\ncases took more time compared to running the scripts without a browser. HTMLUnitDriver<br \/>\ntook a simple HTTP request-response mechanism for test case execution.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"71_Which_language_is_not_supported_by_selenium\"><\/span>71. Which language is not supported by selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium supports all major programming languages such as Java, C#, Perl, Python, Ruby,<br \/>\nPHP, Scala and Groovy. As of today, others are not compatible.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"72What_are_the_testing_types_that_can_be_supported_by_selenium\"><\/span>72.What are the testing types that can be supported by selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Testing types that can be supported by Selenium are as follows:<br \/>\n\u2022 Functional Testing<br \/>\n\u2022 Regression Testing<br \/>\n\u2022 Retesting<br \/>\n\u2022 Acceptance Testing<br \/>\n\u2022 End-to-End Testing<br \/>\n\u2022 Smoke Testing<br \/>\n\u2022 Sanity Testing<br \/>\n\u2022 Responsive Testing<br \/>\n\u2022 Cross Browser Testing<br \/>\n\u2022 UI Testing<br \/>\n\u2022 Integration Testing<\/p>\n<h2><span class=\"ez-toc-section\" id=\"73How_many_parameters_can_selenium_commands_have_at_minimum\"><\/span>73.How many parameters can selenium commands have at minimum?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are four parameters that you have to pass in Selenium are<br \/>\n\u2022 Host<br \/>\n\u2022 Port Number<br \/>\n\u2022 Browser<br \/>\n\u2022 URL<\/p>\n<h2><span class=\"ez-toc-section\" id=\"74_What_is_an_XPath\"><\/span>74. What is an XPath?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>XPath is used to locate the elements. Using XPath, we could navigate through elements and<br \/>\nattributes in an XML document to locate web elements such as textbox, button, checkbox, Image etc., in a web page.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"75When_you_use_these_locators_ID_Name_XPath_Or_CSS_Selector\"><\/span>75.When you use these locators ID, Name, XPath, Or CSS Selector?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>ID &amp; Name locators will be used when there are unique identifiers &amp; unique names available on the web page.<br \/>\nCSS Selector can be used for performance and when ID &amp; Name locators are not unique.<br \/>\nXPath is used when there is no preferred locators.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"76What_is_the_difference_between_%E2%80%9C%E2%80%9D_and_%E2%80%9C%E2%80%9D\"><\/span>76.What is the difference between \u201c\/\u201d and \u201c\/\/\u201d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Single Slash \u201c\/\u201d \u2013 Single slash is used to create XPath with absolute path i.e. the XPath would be created to start selection from the document node\/start node.<br \/>\nDouble Slash \u201c\/\/\u201d \u2013 Double slash is used to create XPath with relative path i.e. the XPath would be created to start selection from anywhere within the document.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"76_What_is_the_difference_between_Absolute_Path_and_Relative_Path\"><\/span>76. What is the difference between Absolute Path and Relative Path?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Absolute XPath starts from the root node and ends with desired descendant element\u2019s<br \/>\nnode. It starts with top HTML node and ends with input node. It starts with a<br \/>\nsingle forward slash(\/) as shown below.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"77What_should_you_do_when_even_XPath_functions_cant_identify_the_web_element\"><\/span>77.What should you do when even XPath functions can\u2019t identify the web element?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In the early stages of software develop ment, developers change identifiers and elements quite often. During the execution, the web elements may change dynamically and we cannot identify the web elements. To overcome this we use XPath axes along with XPath functions.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"78What_are_XPath_Axes\"><\/span>78.What are XPath Axes?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 XPath axes are used to search for the multiple nodes in the XML document from the context (current) node.<br \/>\n\uf0a7 XPath axes are used to find dynamic elements that would otherwise be impossible using<br \/>\nstandard locators.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"79What_is_a_Context_Node\"><\/span>79.What is a Context Node?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The context node is the node the XPath processor is currently looking at.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"80_What_is_the_difference_between_Assert_and_Verify_in_Selenium\"><\/span>80. What is the difference between Assert and Verify in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Assert: In simple words, if the assert condition is true then the program control will execute the next test step but if the condition is false, the execution will stop and further test step will not be executed.<br \/>\n\uf0a7 Verify: In simple words, there won\u2019t be any halt in the test execution even though the verify condition is true or false.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"81What_are_Soft_Assert_and_Hard_Assert_in_Selenium\"><\/span>81.What are Soft Assert and Hard Assert in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Soft Assert: Soft Assert collects errors during @Test Soft Assert does not throw an exception when an<\/p>\n<h2><span class=\"ez-toc-section\" id=\"82What_is_the_difference_between_set_Speed_and_sleep_methods\"><\/span>82.What is the difference between set Speed () and sleep () methods?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Both sleep() and set Speed() are used to delay the execution speed.<br \/>\n\uf0a7 Set Speed(): It set up speed that will apply a delay time before every Selenium operation.<br \/>\n\uf0a7 Example: set Speed(\u201c5000\u201d) \u2013 It waits for 5 seconds<br \/>\n\uf0a7 sleep(): It set up wait only for once when called in our Selenium script.<br \/>\n\uf0a7 Example: sleep(5000) \u2013 It waits for 5 seconds<br \/>\n\uf0a7 Note: set Speed method is applicable to Selenium IDE and Selenium RC. We cannot use set Speed in Selenium WebDriver.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"83_What_are_the_verification_points_available_in_Selenium\"><\/span>83. What are the verification points available in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In Selenium IDE, we use Selenese Verify and Assert Commands as Verification points<br \/>\nIn Selenium WebDriver, there is no built-in features for verification points. It totally depends on our coding style. some of the Verification points are<br \/>\n\uf0a7 To check for page title<br \/>\n\uf0a7 To check for certain text<br \/>\n\uf0a7 To check for certain element (text box, button, drop down, etc.)<\/p>\n<h2><span class=\"ez-toc-section\" id=\"84How_to_launch_a_browser_using_Selenium_WebDriver\"><\/span>84.How to launch a browser using Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>WebDriver is an Interface. We create an Object of a required driver class such as FirefoxDriver, ChromeDriver, InternetExplorerDriver etc.,<\/p>\n<h2><span class=\"ez-toc-section\" id=\"85What_is_the_super_interface_of_WebDriver\"><\/span>85.What is the super interface of WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Search Context acts as the super interface of Web Driver.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"86What_is_Web_Element_selenium\"><\/span>86.What is Web Element selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Web Element in Selenium represents an HTML element. It basically represents a DOM element in a HTML document.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"87_What_are_the_different_exceptions_you_have_faced_in_Selenium_WebDriver\"><\/span>87. What are the different exceptions you have faced in Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Some of the exceptions I have faced in my current project are<br \/>\n1. ElementNotVisibleException<br \/>\n2. StaleElementReferenceException<br \/>\nElement Not visible Exception:<br \/>\nThis exception will be thrown when you are trying to locate a particular element on webpage that is<br \/>\nnot currently visible eventhough it is present in the DOM. Also sometimes, if you are trying to locate<br \/>\nan element with the xpath which associates with two or more element.<br \/>\nStale Element Reference Exception:<br \/>\nA stale element reference exception is thrown in one of two cases, the first being more common<br \/>\nthan the second.<br \/>\n1. The element has been deleted entirely.<br \/>\n2. The element is no longer attached to the DOM.<br \/>\nWe face this stale element reference exception when the element we are interacting is destroyed<br \/>\nand then recreated again. When this happens the reference of the element in the DOM becomes<br \/>\nstale. Hence we are not able to get the reference to the element.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"88_How_to_handle_STALEELEMENTREFERENCEEXCEPTION\"><\/span>88. How to handle STALEELEMENTREFERENCEEXCEPTION?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before looking how to handle Stale Element Reference Exception through Page Object Model.<br \/>\nLet\u2019s see what is Stale Element Reference Exception first.<br \/>\nStale means old, decayed, no longer fresh. Stale Element means an old element or no longer available element. Assume there is an element that is found on a web page referenced as a WebElement in WebDriver. If the DOM changes then the Web Element goes stale. If we try to interact with an element which is staled then the StaleElementReferenceException is thrown.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"89What_are_the_types_of_waits_available_in_Selenium_WebDriver\"><\/span>89.What are the types of waits available in Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In Selenium we could see three types of waits such as Implicit Waits, Explicit Waits and Fluent<br \/>\nWaits.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"90What_is_Implicit_Wait_In_Selenium_WebDriver\"><\/span>90.What is Implicit Wait In Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Implicit waits tell to the WebDriver to wait for a certain amount of time before it throws an<br \/>\nexception. Once we set the time, WebDriver will wait for the element based on the time we set<br \/>\nbefore it throws an exception. The default setting is 0 (zero). We need to set some wait time to<br \/>\nmake WebDriver to wait for the required time.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"91What_is_WebDriver_Wait_In_Selenium_WebDriver\"><\/span>91.What is WebDriver Wait In Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Web DriverWait is applied on a certain element with defined expected condition and time. This wait is only applied to the specified element. This wait can also throw an exception when an element is not found.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"92_What_is_Fluent_Wait_In_Selenium_WebDriver\"><\/span>92. What is Fluent Wait In Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>FluentWait can define the maximum amount of time to wait for a specific condition and frequency with which to check the condition before throwing an \u201cElementNotVisibleException\u201d exception.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"93What_happen_if_you_mix_both_implicit_wait_and_explicit_wait_in_a_Selenium_Script\"><\/span>93.What happen if you mix both implicit wait and explicit wait in a Selenium Script?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 As per the official Selenium documentation, it is suggested not to mix both Implicit waits and Explicit Waits. Mixing both of them can cause unpredictable wait times.<br \/>\n\uf0a7 Implicit wait is defined only once in the code. It will remain same throughout the driver object instance.<br \/>\n\uf0a7 Explicit wait is defined whenever it is necessary in the code. This wait will call at the time of execution. It is a conditional wait.<br \/>\n\uf0a7 Explicit wait will overwrite the implicit wait where ever explicit wait is applied. So, Explicit Wait gets first preference then Implicit Wait.<\/p>\n<p>94.What happen if you mix both Thread . Sleep and WebDriver Waits in a Selenium Script?<\/p>\n<p>Thread . sleep() method can be used to pause the execution for specified time in milliseconds If we use WebDriver waits along with Thread . sleep() method then webdriver will hold the execution for specified time and then will follow other wait. Test execution time will become more, if we mix both waits.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"95_Is_Selenium_Server_needed_to_run_Selenium_WebDriver_Scripts\"><\/span>95. Is Selenium Server needed to run Selenium WebDriver Scripts?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>When we are distributing our Selenium WebDriver scripts to execute using Selenium<br \/>\nGrid, we need to use Selenium Server.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"96How_can_we_maximize_browser_window_in_Selenium\"><\/span>96.How can we maximize browser window in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To maximize browser window in selenium we use maximize() method. This method maximizes the<br \/>\ncurrent window if it is not already maximized<\/p>\n<h2><span class=\"ez-toc-section\" id=\"97How_to_delete_cookies_in_Selenium\"><\/span>97.How to delete cookies in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can use get Cookies method(driver . manage(). Get Cookies();) and check if they exist or not . You can also try to grt the cookie by it specific name.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"98What_is_the_difference_between_driverclose_and_driverquit_methods\"><\/span>98.What is the difference between driver.close() and driver.quit() methods?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Purpose of these two methods (driver.close and driver.quit) is almost same. Both allow us to close a browser but still, there is a difference.<br \/>\n\uf0a7 driver.close(): To close current WebDriver instance<br \/>\ndriver.quit(): To close all the opened WebDriver instances<\/p>\n<h2><span class=\"ez-toc-section\" id=\"99What_Is_The_Difference_Between_MaxSessions_Vs_MaxInstances_Properties_in_Selenium_Grid\"><\/span>99.What Is The Difference Between MaxSessions Vs. MaxInstances Properties in Selenium Grid?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>MaxInstances is the no. of browser instances of the same version of the browser that can run on the remote machine.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"100_What_is_the_difference_between_driverfindElement_and_driverfindElements_commands\"><\/span>100. What is the difference between driver.findElement() and driver.findElements() commands?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The difference between driver.findElement() and driver.findElements() commands is-<br \/>\n\u2022 findElement() returns a single WebElement (found first) based on the locator passed as parameter.<br \/>\nWhereas findElements() returns a list of WebElements, all satisfying the locator value passed.<br \/>\n\u2022 Syntax of findElement()- WebElement textbox = driver.findElement(By.id(\u201ctextBoxLocator\u201d));Syntax of findElements()-<br \/>\nList &lt;WebElement&gt; elements = element.findElements(By.id(\u201cvalue\u201d));<br \/>\n\u2022 Another difference between the two is- if no element is found then findElement() throws<br \/>\nNoSuchElementException whereas findElements() returns a list of 0 elements.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"101How_to_find_whether_an_element_is_displayed_on_the_web_page\"><\/span>101.How to find whether an element is displayed on the web page?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>WebDriver facilitates the user with the following methods to check the visibility of the web<br \/>\nelements. These web elements can be buttons, drop boxes, checkboxes, radio buttons, labels etc.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"102How_to_capture_Screenshot_in_Selenium_WebDriver\"><\/span>102.How to capture Screenshot in Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Test cases may fail while executing the test scripts. While we are executing the test cases manually we just take a screenshot and place in a result repository. The same can be done by using Selenium WebDriver.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"103_How_can_we_handle_Web-based_Pop-ups_or_Alerts_in_Selenium\"><\/span>103. How can we handle Web-based Pop-ups or Alerts in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To handle Web-based alerts or popups, we need to do switch to the alert window and call<br \/>\nSelenium WebDriver Alert API methods.<br \/>\ndismiss(): To click on Cancel button.<br \/>\naccept(): To Click on OK button.<br \/>\nGet Text(): To get the text which is present on the Alert.<br \/>\nSend Keys(): To enter the text into the alert box.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"104How_can_we_handle_windows_based_pop_up\"><\/span>104.How can we handle windows based pop up?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium doesn\u2019t support windows based applications. It is an automation testing tool which supports only web application testing. We could handle windows based popups in Selenium using some third party tools such as Auto IT, Robot class etc.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"105How_to_handle_hidden_elements_in_Selenium_WebDriver\"><\/span>105.How to handle hidden elements in Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We can handle hidden elements by using java Script executor<\/p>\n<h2><span class=\"ez-toc-section\" id=\"106_How_do_you_read_test_data_from_excels\"><\/span>106. How do you read test data from excels?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Test data can efficiently be read from excel using JXL or POI API. POI API has many advantages than JXL.<br \/>\nClick here to see a practical example of using Apache POI.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"107Is_it_possible_to_automate_the_cap_tcha_using_Selenium\"><\/span>107.Is it possible to automate the cap tcha using Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>No, It\u2019s not possible to automate captcha and bar code reader.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"108Can_You_Use_Selenium_For_Rest_API_Testing_Or_Web_Services_Testing\"><\/span>108.Can You Use Selenium For Rest API Testing Or Web Services Testing?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Simple answer for this is Selenium is not a tool for API Testing. It automates web browsers. Rest API &amp; Web Services contains no UI. So we cannot automate using Selenium.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"109How_to_handle_Ajax_calls_in_Selenium_WebDriver\"><\/span>109.How to handle Ajax calls in Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Handling AJAX calls is one of the common issues when using Selenium WebDriver. We wouldn\u2019t know when the AJAX call would get completed and the page has been updated. In this post, we see how to handle AJAX calls using Selenium.<br \/>\n1. Bitmap comparison is not possible using Selenium WebDriver<br \/>\n2. Automating Captcha is not possible using Selenium WebDriver<br \/>\n3. We can not read bar code using Selenium WebDriver<\/p>\n<h2><span class=\"ez-toc-section\" id=\"110List_some_scenarios_which_we_cannot_automate_using_Selenium_WebDriver\"><\/span>110.List some scenarios which we cannot automate using Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Two-factor authentication. Another scenario that you shouldn&#8217;t automate through UI is two-factor authentication (or 2FA). &#8230;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"111_What_is_Object_Repository_in_Selenium_WebDriver\"><\/span>111. What is Object Repository in Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Object Repository is used to store element locator values in a centralized location instead of hard coding them within the scripts. We do create a property file (.properties) to store all the element locators and these property files act as an object repository in Selenium WebDriver.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"112How_you_build_Object_Repository_in_your_project\"><\/span>112.How you build Object Repository in your project?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In QTP, there is an Object Repository concept. When a user records a test, the objects and its properties are captured by default in an Object Repository. QTP uses this Object Repository to play back the scripts. Coming to Selenium, there is no default Object Repository concept. It doesn\u2019t mean that there is no Object Repository in Selenium. Even though there is no default one still we could create our own. In Selenium, we call objects as locators (such as ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, XPath, and CSS). Object repository is a collection of objects. One of the ways to create Object Repository is to place all the locators in a separate file (i.e., properties file)<\/p>\n<h2><span class=\"ez-toc-section\" id=\"113What_is_Page_Object_Model_in_Selenium\"><\/span>113.What is Page Object Model in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Page Object Model is a Design Pattern which has become popular in Selenium Test Automation. It is widely used design pattern in Selenium for enhancing test maintenance and reducing code duplication. Page object model (POM) can be used in any kind of framework such as modular, data<\/p>\n<p>\u0002driven, keyword driven, hybrid framework etc. A page object is an object-oriented class that servesas an interface to a page of your Application Under Test(AUT). The tests then use the methods of this page object class whenever they need to interact with the User Interface (UI) of that page. The benefit is that if the UI changes for the page, the tests themselves don\u2019t need to change, only the code within the page object needs to change. Subsequently, all changes to support that new UI is located in one place.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"114_What_is_Page_Factory\"><\/span>114. What is Page Factory?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We have seen that \u2018Page Object Model\u2019 is a way of representing an application in a test<br \/>\nframework. For every \u2018page\u2019 in the application, we create a Page Object to reference the \u2018page\u2019 whereas a \u2018Page Factory\u2019 is one way of implementing the \u2018Page Object Model\u2019.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"115What_is_the_difference_between_Page_Object_Model_POM_and_Page_Factory\"><\/span>115.What is the difference between Page Object Model (POM) and Page Factory?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Page Object is a class that represents a web page and hold the functionality and members.<br \/>\nPage Factory is a way to initialize the web elements you want to interact with within the page object when you create an instance of it.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"116What_are_the_advantages_of_Page_Object_Model_Framework\"><\/span>116.What are the advantages of Page Object Model Framework?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Code reusability \u2013 We could achieve code reusability by writing the code once and use it in different tests. Code maintainability \u2013 There is a clean separation between test code and page specific code such as locators and layout which becomes very easy to maintain code. Code changes only on Page Object Classes when a UI change occurs. It enhances test maintenance and reduces code duplication. Object Repository \u2013 Each page will be defined as a java class. All the fields in the page will be defined in an interface as members. The class will then implement the interface.<br \/>\nReadability \u2013 Improves readability due to clean separation between test code and page specific code<\/p>\n<h2><span class=\"ez-toc-section\" id=\"117_How_to_Upload_a_file_in_Selenium_WebDriver\"><\/span>117. How to Upload a file in Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are two cases which are majorly used to upload a file in Selenium WebDriver such<br \/>\nas using SendKeys Method and using AutoIT Script.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"118How_to_Download_a_file_in_Selenium_WebDriver\"><\/span>118.How to Download a file in Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>By using AutoIT script, we could download a file in Selenium WebDriver.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"119How_to_connect_a_Database_in_selenium\"><\/span>119.How to connect a Database in selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>As we all know Selenium WebDriver is a tool to automate User Interface. We could only interact with Browser using Selenium WebDriver.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"120How_To_Resize_Browser_Window_Using_Selenium_WebDriver\"><\/span>120.How To Resize Browser Window Using Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To resize the browser window to particular dimensions, we use \u2018Dimension\u2019 class to resize the browser window.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"121How_To_Scroll_Web_Page_Down_Or_UP_Using_Selenium_WebDriver\"><\/span>121.How To Scroll Web Page Down Or UP Using Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>JavaScript scrollBy() method scrolls the document by the specified number of pixels.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"122_How_To_Perform_Right_Click_Action_Context_Click_In_Selenium_WebDriver\"><\/span>122. How To Perform Right Click Action (Context Click) In Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We use Actions class in Selenium WebDriver to do Right-Click (Context Click) action.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"123How_To_Perform_Double_Click_Action_In_Selenium_WebDriver\"><\/span>123.How To Perform Double Click Action In Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We use Actions class to do Double click action in selenium.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"124How_To_Perform_Drag_And_Drop_Action_in_Selenium_WebDriver\"><\/span>124.How To Perform Drag And Drop Action in Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In some applications, we may face a situation to automate drag and drop an item from one<br \/>\nlocation to another location. We could not achieve these using basic elements. Selenium has provided an \u201cActions\u201d class to handle this kind of scenarios. We overcome this kind of scenarios such as drag and drop using Actions Class.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"125How_To_Highlight_Element_Using_Selenium_WebDriver\"><\/span>125.How To Highlight Element Using Selenium WebDriver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>By using JavascriptExecutor interface, we could highlight the specified element<\/p>\n<h2><span class=\"ez-toc-section\" id=\"126Have_you_used_any_crossbrowsertesting_tool_to_run_selenium_scripts_on_cloud\"><\/span>126.Have you used any crossbrowsertesting tool to run selenium scripts on cloud?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>I have used BrowserStack to run selenium tests on multiple browsers &amp; Multiple operating systems in parallel. Earlier we have made a video on how to use BrowserStack to run selenium scripts on the cloud. Find the link in the description below.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"127_What_is_desired_capabilities\"><\/span>127. What is desired capabilities?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In Selenium we use desired capabilities to handle SSL certificates in chrome browser<br \/>\nWe need to create an instance of DesiredCapabilities<\/p>\n<h2><span class=\"ez-toc-section\" id=\"128What_is_Continuous_Integration\"><\/span>128.What is Continuous Integration?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Continuous Integration is abbreviated as CI. Continuous Integration is a development practice that aims to make sure the correctness of software. After each commit, a suite of tests run automatically and test the software to ensure whether the software is running without any breaks. If any test fails, we will get immediate feedback say \u201cbuild is broken\u201d.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"129Name_some_CI_tools_available_in_the_Market\"><\/span>129.Name some CI tools available in the Market?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Selenium<br \/>\n\uf0a7 Katalon Studio<br \/>\n\uf0a7 Appium<br \/>\n\uf0a7 Unified Functional Testing<br \/>\n\uf0a7 Travis CI<br \/>\n\uf0a7 Egg Plant<br \/>\n\uf0a7 Watir<br \/>\n\uf0a7 Tricentis Tosca<br \/>\n\uf0a7 Test Sigma<br \/>\n\uf0a7 IBM Rational Functional Tester<br \/>\n\uf0a7 Test Complete<br \/>\n\uf0a7 QuerySurge<br \/>\n\uf0a7 JMeter<br \/>\n\uf0a7 Jenkins<br \/>\n\uf0a7 Bamboo<br \/>\n\uf0a7 Docker<br \/>\n\uf0a7 PagerDuty<br \/>\n\uf0a7 JIRA<br \/>\n\uf0a7 GitHub<\/p>\n<h2><span class=\"ez-toc-section\" id=\"130_How_to_achieve_Database_testing_in_Selenium\"><\/span>130. How to achieve Database testing in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>As we all know Selenium WebDriver is a tool to automate User Interface. We could only interactwith Browser using Selenium WebDriver.<br \/>\nSometimes, we may face a situation to get the data from the Database or to modify<br \/>\n(update\/delete) the data from the Database. If we plan to automate anything outside the vicinityof a browser, then we need to use other tools to achieve our task. To achieve the Database connection and work on it, we need to use JDBC API Driver.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"131What_is_TestNG\"><\/span>131.What is TestNG?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>TestNG is a testing framework designed to simplify a broad range of testing needs, from unittesting to integration testing.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"132What_is_TestNG_Assert_and_list_out_some_common_Assertions_supported_by_TestNG\"><\/span>132.What is TestNG Assert and list out some common Assertions supported by TestNG?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>TestNG Asserts help us to verify the condition of the test in the middle of the test run. Based on the TestNG Assertions, we will consider a successful test only if it is completed the test run without throwing any exception.<br \/>\n\uf0a7 assertEqual(String actual,String expected)<br \/>\n\uf0a7 assertEqual(String actual,String expected, String message)<br \/>\n\uf0a7 Assert Equals(boo lean actual , boo lean expected)<br \/>\n\uf0a7 Assert True(condition)<br \/>\n\uf0a7 assertTrue(condition, message)<br \/>\n\uf0a7 Assert False(condition)<br \/>\n\uf0a7 Assert False(condition, message)<\/p>\n<h2><span class=\"ez-toc-section\" id=\"133_How_to_create_and_run_TestNGxml\"><\/span>133. How to create and run TestNG.xml?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In TestNG framework, we need to create TestNG XML file to create and handle multiple test<br \/>\nclasses. We do configure our test run, set test dependency, include or exclude any test, method, class or package and set priority etc in the XML file.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"134How_to_set_test_case_priority_in_TestNG\"><\/span>134.How to set test case priority in TestNG?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We use priority attribute to the @Test annotations. In case priority is not set then the test scripts execute in alphabetical order.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"135How_to_run_a_group_of_test_cases_using_TestNG\"><\/span>135.How to run a group of test cases using TestNG?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>TestNG allows you to perform sophisticated groupings of test methods. Not only can you declare that methods belong to groups, but you can also specify groups that contain other groups. Then TestNG can be invoked and asked to include a certain set of groups (or regular expressions) while excluding another set. This gives you maximum flexibility in how you partition your tests and doesn\u2019t require you to recompile anything if you want to run two different sets of tests back to back.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"136What_is_the_use_of_Listener_annotation_in_TestNG\"><\/span>136.What is the use of @Listener annotation in TestNG?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>TestNG listeners are used to configure reports and logging. One of the most widely used listeners inTestNG is ITestListener interface. It has methods like on Test Start, on Test Success, on TestFailure, on Test Skipped etc. We should implement this interface creating a listener class of ourown. Next, we should add the listeners annotation (@Listeners) in the Class which was created.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"137_What_is_Selenium_and_what_is_composed_of\"><\/span>137. What is Selenium and what is composed of?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium is a suite of tools for automated web testing. It is composed of<br \/>\n\uf0a7 Selenium IDE (Integrated Development Environment) : It is a tool for recording and playingback. It is a firefox plugin<br \/>\n\uf0a7 WebDriver and RC: It provide the APIs for a variety of languages like Java, .NET, PHP, etc. With most of the browsers Webdriver and RC works.<br \/>\n\uf0a7 Grid: With the help of Grid you can distribute tests on multiple machines so that test can be run parallel which helps in cutting down the time required for running in browser test suites<\/p>\n<h2><span class=\"ez-toc-section\" id=\"138What_is_Selenium_20\"><\/span>138.What is Selenium 2.0?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Web Testing tools Selenium RC and WebDriver are consolidated in single tool in Selenium 2.0<\/p>\n<h2><span class=\"ez-toc-section\" id=\"139_Mention_what_is_Selenium_30\"><\/span>139. Mention what is Selenium 3.0?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Update GeckoDriver \u2013port argument in all bindings<\/p>\n<h2><span class=\"ez-toc-section\" id=\"140_How_will_you_find_an_element_using_Selenium\"><\/span>140. How will you find an element using Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In Selenium every object or control in a web page is referred as an elements, there are different ways to find an element in a web page they are<br \/>\n\u2022 ID<br \/>\n\u2022 Name<br \/>\n\u2022 Tag<br \/>\n\u2022 Attribute<br \/>\n\u2022 CSS<br \/>\n\u2022 Link text<br \/>\n\u2022 Partial Link Text<br \/>\n\u2022 Xpath etc<\/p>\n<h2><span class=\"ez-toc-section\" id=\"141List_out_the_test_types_that_are_supported_by_Selenium\"><\/span>141.List out the test types that are supported by Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>For web based application testing selenium can be used<br \/>\n\uf0a7 The test types can be supported are<br \/>\n\uf0a7 a) Functional, Learn More about Functional Testing.<br \/>\n\uf0a7 b) Regression<br \/>\n\uf0a7 For post release validation with continuous integration automation tool could be used<br \/>\n\uf0a7 a) Jenkins<br \/>\n\uf0a7 b) Hudson<br \/>\n\uf0a7 c) Quick Build<br \/>\n\uf0a7 d) Cruise Cont<\/p>\n<h2><span class=\"ez-toc-section\" id=\"142_Explain_what_is_assertion_in_Selenium_and_what_are_the_types_of_assertion\"><\/span>142. Explain what is assertion in Selenium and what are the types of assertion?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Assertion is used as a verification point. It verifies that the state of the application conforms towhat is expected. The types of assertion are \u201cassert\u201d , \u201cverify\u201d and \u201cwait For\u201d.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"143Mention_what_is_the_use_of_X-path\"><\/span>143.Mention what is the use of X-path?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>X-Path is used to find the WebElement in web pages. It is also useful in identifying the dynamic elements. Refer Complete Guide on XPath<\/p>\n<h2><span class=\"ez-toc-section\" id=\"144Explain_the_difference_between_single_and_double_slash_in_X-path\"><\/span>144.Explain the difference between single and double slash in X-path?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Single slash \u2018\/ \u2019<br \/>\n\uf0a7 Single slash ( \/ ) start selection from the document node<br \/>\n\uf0a7 It allows you to create \u2018absolute\u2019 path expressions<br \/>\n\uf0a7 Double Slash \u2018\/\/ \u2019<br \/>\n\uf0a7 Double slash ( \/\/ ) start selection matching anywhere in the document<br \/>\n\uf0a7 It enables to create \u2018relative\u2019 path expressions<\/p>\n<h2><span class=\"ez-toc-section\" id=\"145List_out_the_technical_challenges_with_Selenium\"><\/span>145.List out the technical challenges with Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Selenium supports only web based applications<br \/>\n\uf0a7 It does not support the Bitmap comparison<br \/>\n\uf0a7 For any reporting related capabilities have to depend on third party tools<br \/>\n\uf0a7 No vendor support for tool compared to commercial tools like HP UFT<br \/>\n\uf0a7 As there is no object repository concept in Selenium, maintainability of objects becomes difficult<\/p>\n<h2><span class=\"ez-toc-section\" id=\"146_What_is_the_difference_between_type_keys_and_type_commands\"><\/span>146. What is the difference between type keys and type commands ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Type Keys() will trigger JavaScript event in most of the cases whereas .type() won\u2019t. Type key populates the value attribute using JavaScript whereas .type keys() emulates like actual user typing<\/p>\n<h2><span class=\"ez-toc-section\" id=\"147What_is_the_difference_between_verify_and_assert_commands\"><\/span>147.What is the difference between verify and assert commands?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Assert: Assert allows to check whether an element is on the page or not. The test will stop on the step failed, if the asserted element is not available. In other words, the test will terminated at the point where check fails.<br \/>\n\uf0a7 Verify: Verify command will check whether the element is on the page, if it is not then the test will carry on executing. In verification, all the commands are going to run guaranteed even if any of test fails.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"148What_is_JUnit_Annotations_and_what_are_different_types_of_annotations_which_are_useful\"><\/span>148.What is JUnit Annotations and what are different types of annotations which are useful ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 In JAVA a special form of syntactic meta-data can be added to Java source code, this is know as Annotations. Variables, parameters, packages, methods and classes are annotated some of the Junit annotations which can be useful are<br \/>\n\uf0a7 Test<br \/>\n\uf0a7 Before<br \/>\n\uf0a7 After<br \/>\n\uf0a7 Ignore<br \/>\n\uf0a7 Before Class<br \/>\n\uf0a7 After Class<br \/>\n\uf0a7 Run With<\/p>\n<h2><span class=\"ez-toc-section\" id=\"149_While_using_click_command_can_you_use_screen_coordinate\"><\/span>149. While using click command can you use screen coordinate?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To click on specific part of element, you would need to use clickAT command. ClickAt command accepts<br \/>\nelement locator and x, y co-ordinates as arguments\u0002clickAt (locator, cordString)<\/p>\n<h2><span class=\"ez-toc-section\" id=\"150What_are_the_advantages_of_Selenium\"><\/span>150.What are the advantages of Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 It supports C#, PHP, Java, Perl, Python<br \/>\n\uf0a7 It supports different OS like Windows, Linux and Mac OS<br \/>\n\uf0a7 It has got powerful methods to locate elements (Xpath, DOM , CSS)<br \/>\n\uf0a7 It has highly developer community supported by Google<\/p>\n<h2><span class=\"ez-toc-section\" id=\"151Why_testers_should_opt_for_Selenium_and_not_QTP\"><\/span>151.Why testers should opt for Selenium and not QTP?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Selenium is an open source whereas QTP is a commercial tool<br \/>\n\uf0a7 Selenium is used specially for testing web based applications while QTP can be used for testingclient server application also<br \/>\n\uf0a7 Selenium supports Firefox, IE, Opera, Safari on operating systems like Windows, Mac, Linux etc. however QTP is limited to Internet Explorer on Windows.<br \/>\n\uf0a7 Selenium supports many programming languages like Ruby, Perl, Python whereas QTP supports only VB script<\/p>\n<h2><span class=\"ez-toc-section\" id=\"152_What_are_the_four_parameter_you_have_to_pass_in_Selenium\"><\/span>152. What are the four parameter you have to pass in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Host<br \/>\nPort Number<br \/>\nBrowser<br \/>\nURL<\/p>\n<h2><span class=\"ez-toc-section\" id=\"153What_is_the_difference_between_set_Speed_and_sleep_methods\"><\/span>153.What is the difference between set Speed() and sleep() methods?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Both will delay the speed of execution.<br \/>\n\uf0a7 Thread . sleep () : It will stop the current (java) thread for the specified period of time. Its done only once<br \/>\n\uf0a7 It takes a single argument in integer format<br \/>\n\uf0a7 Ex: thread . sleep(2000)- It will wait for 2 seconds<br \/>\n\uf0a7 It waits only once at the command given at sleep<br \/>\n\uf0a7 Set Speed () : For specific amount of time it will stop the execution for every selenium<br \/>\ncommand.<br \/>\n\uf0a7 It takes a single argument in integer format<br \/>\n\uf0a7 Ex: selenium . Set Speed(\u201c2000\u201d)- It will wait for 2 seconds<br \/>\n\uf0a7 Runs each command after set Speed delay by the number of milliseconds mentioned in set Speed<br \/>\n\uf0a7 This command is useful for demonstration purpose or if you are using a slow web application<\/p>\n<h2><span class=\"ez-toc-section\" id=\"154_What_is_same_origin_policy_How_you_can_avoid_same_origin_policy\"><\/span>154. What is same origin policy? How you can avoid same origin policy?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The \u201cSame Origin Policy\u201d is introduced for security reason, and it ensures that content of your site will never be accessible by a script from another site. As per the policy, any code loaded within the browser can only operate within that website\u2019s domain.<br \/>\nTo avoid \u201cSame Origin Policy\u201d proxy injection method is used, in proxy injection mode the<br \/>\nSelenium Server acts as a client configured HTTP proxy , which sits between the browser and application under test and then masks the AUT under a fictional URL<\/p>\n<h2><span class=\"ez-toc-section\" id=\"155What_is_heightened_privileges_browsers\"><\/span>155.What is heightened privileges browsers?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The purpose of heightened privileges is similar to Proxy Injection, allows websites to do<br \/>\nsomething that are not commonly permitted. The key difference is that the browsers are launced<br \/>\nin a special mode called heightened privileges. By using these browser mode, Selenium core can<br \/>\nopen the AUT directly and also read\/write its content without passing the whole AUT through the<br \/>\nSelenium RC server.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"156How_you_can_use_%E2%80%9Csubmit%E2%80%9D_a_form_using_Selenium\"><\/span>156.How you can use \u201csubmit\u201d a form using Selenium ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can use \u201csubmit\u201d method on element to submit form\u0002Element . submit () ;<br \/>\nAlternatively you can use click method on the element which does form submission<\/p>\n<h2><span class=\"ez-toc-section\" id=\"157_What_are_the_features_of_TestNG_and_list_some_of_the_functionality_in_TestNG_which_makes_it_more_effective\"><\/span>157. What are the features of TestNG and list some of the functionality in TestNG which makes it more effective?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>TestNG is a testing framework based on JUnit and NUnit to simplify a broad range of testing needs, from Unit Testing to Integration Testing. And the functionality which makes it efficient testing framework are<br \/>\n\u2022 Support for annotations<br \/>\n\u2022 Support for data-driven testing<br \/>\n\u2022 Flexible test configuration<br \/>\n\u2022 Ability to re-execute failed test cases<\/p>\n<h2><span class=\"ez-toc-section\" id=\"158Mention_what_is_the_difference_between_Implicit_wait_and_Explicit_wait\"><\/span>158.Mention what is the difference between Implicit wait and Explicit wait?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Implicit Wait: Sets a timeout for all successive Web Element searches. For the specified amount of time it will try looking for element again and again before throwing a No SuchElement Exception. It waits for elements to show up.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"159Which_attribute_you_should_consider_throughout_the_script_in_frame_for_%E2%80%9Cif_no_frame_Id_as_well_as_no_frame_name%E2%80%9D\"><\/span>159.Which attribute you should consider throughout the script in frame for \u201cif no frame Id as well as no frame name\u201d?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 You can use\u2026..driver .find Elements(By . xpath(\u201c\/\/if rame\u201d))\u2026.<br \/>\n\uf0a7 This will return list of frames.<br \/>\n\uf0a7 You will need to switch to each and every frame and search for locator which we want.<br \/>\n\uf0a7 Then break the loop<\/p>\n<h2><span class=\"ez-toc-section\" id=\"160_Explain_what_is_the_difference_between_find_elements_and_find_element\"><\/span>160. Explain what is the difference between find elements () and find element () ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>find element ():<br \/>\n\uf0a7 It finds the first element within the current page using the given \u201clocating mechanism\u201d. It returns a single Web Element<br \/>\n\uf0a7 findElements () : Using the given \u201clocating mechanism\u201d find all the elements within the current page. It returns a list of web elements.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"161Explain_what_are_the_JUnits_annotation_linked_with_Selenium\"><\/span>161.Explain what are the JUnits annotation linked with Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The JUnits annotation linked with Selenium are<br \/>\n@Before public void method() \u2013 It will perform the method () before each test, this method can prepare the test<br \/>\n@Test public void method() \u2013 Annotations @Test identifies that this method is a test method environment<br \/>\n@After public void method()- To execute a method before this annotation is used, test method must start with test@Before<\/p>\n<h2><span class=\"ez-toc-section\" id=\"162Explain_how_you_can_login_into_any_site_if_its_showing_any\"><\/span>162.Explain how you can login into any site if it\u2019s showing any<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>authentication popup for password and username?<br \/>\nSyntax-http:\/\/username:password@url<br \/>\nex- http:\/\/creyate:tom@www.gmail.com<\/p>\n<h2><span class=\"ez-toc-section\" id=\"163_Explain_what_is_Data_driven_framework_and_Keyword_driven\"><\/span>163. Explain what is Data driven framework and Keyword driven?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Data driven framework: In this framework, the test data is separated and kept outside the<br \/>\nTest Scripts, while Test Case logic resides in Test Scripts. Test data is read from the external files ( Excel Files) and are loaded into the variables inside the Test Script. Variables are used for both for input values and for verification values.<br \/>\nKey worddriven framework: The keyword driven frameworks requires the development of<br \/>\ndata tables and keywords, independent of the test automation. In a keyword driven test, the functionality of the application under test is documented in a table as well as step by step instructions for each test.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"164Explain_how_you_can_login_into_any_site_if_its_showing_any_authentication\"><\/span>164.Explain how you can login into any site if it\u2019s showing any authentication<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>popup for password and username?<br \/>\n\u2022 Syntax-http:\/\/username:password@url<br \/>\n\u2022 ex- http:\/\/creyate:tom@www.gmail.com<\/p>\n<h2><span class=\"ez-toc-section\" id=\"165What_is_Object_Repository\"><\/span>165.What is Object Repository ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>An object repository is an essential entity in any UI automations which allows a tester to store all object that will be used in the scripts in one or more centralized locations rather than scattered all over the test scripts.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"166Explain_how_Selenium_Grid_works\"><\/span>166.Explain how Selenium Grid works?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium Grid sent the tests to the hub. These tests are redirected to Selenium Web driver, which launch the browser and run the test. With entire test suite, it allows for running tests in parallel.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"167_List_the_advantages_of_Web_driver_over_Selenium_Server\"><\/span>167. List the advantages of Web driver over Selenium Server?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you are using Selenium-Web Driver, you don\u2019t need the Selenium Server as it is using totally different technology<br \/>\nSelenium Server provides Selenium RC functionality which is used for Selenium 1.0 backwards compatibility Selenium Web driver makes direct calls to browser using each browsers native support for automation, while Selenium RC requires selenium server to inject Java script into the browser<\/p>\n<h2><span class=\"ez-toc-section\" id=\"168Mention_what_are_the_capabilities_of_Selenium_Web_Driver_or_Selenium_20\"><\/span>168.Mention what are the capabilities of Selenium Web Driver or Selenium 2.0 ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Handling multiple frames, pop ups , multiple browser windows and alerts<br \/>\nPage navigation and drag &amp; drop Ajax based UI elements Multi browser testing including improved functionality for browser not well supported by Selenium 1.0<\/p>\n<h2><span class=\"ez-toc-section\" id=\"169Explain_how_you_can_find_broken_images_in_a_page_using_Selenium_Web_driver\"><\/span>169.Explain how you can find broken images in a page using Selenium Web driver ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u2022 Get XPath and get all the links in the page using tag name<br \/>\n\u2022 In the page click on each and every link<br \/>\n\u2022 Look for 404\/500 in the target page title<\/p>\n<h2><span class=\"ez-toc-section\" id=\"170_Explain_how_you_can_handle_colors_in_web_driver\"><\/span>170. Explain how you can handle colors in web driver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To handle colors in web driver you can use<br \/>\nUse getCssValue(arg0) function to get the colors by sending \u2018color\u2019 string as an argument<\/p>\n<h2><span class=\"ez-toc-section\" id=\"171Using_web_driver_how_you_can_store_a_value_which_is_text_box\"><\/span>171.Using web driver how you can store a value which is text box?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 You can use following command to store a value which is text box using web driver<br \/>\n\uf0a7 Driver . Find Element(By.id(\u201cyour Textbox\u201d)).send Keys(\u201cyour keyword\u201d);<\/p>\n<h2><span class=\"ez-toc-section\" id=\"172Explain_how_you_can_switch_between_frames\"><\/span>172.Explain how you can switch between frames?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To switch between frames web drivers [ driver . Switch To().frame() ] method takes one of the three possible arguments<br \/>\n\u2022 A number: It selects the number by its (zero-based) index<br \/>\n\u2022 A name or ID: Select a frame by its name or ID<br \/>\n\u2022 Previously found Web Element: Using its previously located Web Element select a frame<\/p>\n<h2><span class=\"ez-toc-section\" id=\"173Explain_using_Web_driver_how_you_can_perform_double_click\"><\/span>173.Explain using Web driver how you can perform double click?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u2022 Syntax- Actions act = new Actions (driver);<br \/>\n\u2022 Act .double Click(web element);<\/p>\n<h2><span class=\"ez-toc-section\" id=\"174How_will_you_use_Selenium_to_upload_a_file\"><\/span>174.How will you use Selenium to upload a file?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 You can use \u201ctype \u201d command to type in a file input box of upload file. Then, you have to use \u201cRobot\u201d class in JAVA to make file upload work.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"175Which_web_driver_implementation_is_fastest\"><\/span>175.Which web driver implementation is fastest?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>HTML Unit Driver implementation is fastest, HTML Unit Driver does not execute tests on browser but plain http request, which is far quick than launching a browser and executing tests<\/p>\n<h2><span class=\"ez-toc-section\" id=\"176Explain_how_you_can_handle_frames_using_Selenium_20\"><\/span>176.Explain how you can handle frames using Selenium 2.0?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 To bring control on HTML frame you can use \u201cSwitch To\u201d frame method-<br \/>\n\uf0a7 Driver . Switch To().<br \/>\n\uf0a7 frame(\u201cframe Name\u201d);<br \/>\n\uf0a7 To specify a frame you can use index number<br \/>\n\uf0a7 Drive r. switch To().<br \/>\n\uf0a7 frame(\u201cparentFrame.4.frameName\u201d);<br \/>\n\uf0a7 This would bring control on frame named- \u201cframe Name\u201d of the 4th sub frame names \u201cparent Frame\u201d<\/p>\n<h2><span class=\"ez-toc-section\" id=\"177_What_is_the_difference_between_getWindowhandles_and_get_windo_whandle\"><\/span>177. What is the difference between getWindowhandles() and get windo whandle()?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>getwindowhandles(): It is used to get the address of all the open browser and its return type is Set&lt;String&gt; getwindowhandle(): It is used to get the address of the current browser where the control is and return type is string<\/p>\n<h2><span class=\"ez-toc-section\" id=\"178Explain_how_you_can_switch_back_from_a_frame\"><\/span>178.Explain how you can switch back from a frame?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To switch back from a frame use method defaultContent()<br \/>\nSyntax-driver . Switch To().defaultContent();<\/p>\n<h2><span class=\"ez-toc-section\" id=\"179List_out_different_types_of_locators\"><\/span>179.List out different types of locators?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Different types of locators are<br \/>\n\uf0a7 By.id()<br \/>\n\uf0a7 By.name()<br \/>\n\uf0a7 By.tagName()<br \/>\n\uf0a7 By.className()<br \/>\n\uf0a7 By.linkText()<br \/>\n\uf0a7 By.partialLinkText()<br \/>\n\uf0a7 By.xpath<br \/>\n\uf0a7 By.cssSelector()<\/p>\n<h2><span class=\"ez-toc-section\" id=\"180What_is_the_command_that_is_used_in_order_to_display_the_values_of_a_variable_into_the_output_console_or_log\"><\/span>180.What is the command that is used in order to display the values of a variable into the output console or log?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In order to display a constant string, command can be used is echo &lt;constant string&gt;<br \/>\nIf order to display the value of a variable you can use command like echo ${variable name&gt;&gt;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"181Explain_how_you_can_use_recovery_scenario_with_Selenium\"><\/span>181.Explain how you can use recovery scenario with Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Recovery scenarios depends upon the programming language you use. If you are using Java then you can use exception handling to overcome same. By using \u201cTry Catch Block\u201d within your Selenium Web Driver Java tests<\/p>\n<h2><span class=\"ez-toc-section\" id=\"182How_can_you_prepare_customized_html_report_using_TestNG_in_hybrid_framework\"><\/span>182.How can you prepare customized html report using TestNG in hybrid framework ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are three ways<br \/>\nJunit: With the help of ANT<br \/>\nTestNG: Using inbuilt default.html to get the HTML report. Also XST reports from ANT,<br \/>\nSelenium, Testng combinations<br \/>\nUsing our own customized reports using XSL jar for converting XML content to HTML<\/p>\n<h2><span class=\"ez-toc-section\" id=\"183From_your_test_script_how_you_can_create_html_test_report\"><\/span>183.From your test script how you can create html test report?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>TestNG: Using inbuilt default.html to get the HTML report. Also XLST reports from ANT, Selenium, TestNG combination<br \/>\nJUnit: With the help of ANT<br \/>\nUsing our own customized reports using XSL jar for converting XML content to HTML<\/p>\n<h2><span class=\"ez-toc-section\" id=\"184Explain_how_you_can_insert_a_break_point_in_Selenium_IDE\"><\/span>184.Explain how you can insert a break point in Selenium IDE ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Select \u201cToggle break point\u201d by right click on the command in Selenium IDE<br \/>\nPress \u201cB\u201d on the keyboard and select the command in Selenium IDE<br \/>\nMultiple break points can be set in Selenium IDE<\/p>\n<h2><span class=\"ez-toc-section\" id=\"185Explain_in_Selenium_IDE_how_can_you_debug_the_tests\"><\/span>185.Explain in Selenium IDE how can you debug the tests?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Insert a break point from the location from where you want to execute test step by step<br \/>\n\uf0a7 Run the test case<br \/>\n\uf0a7 At the given break point execution will be paused<br \/>\n\uf0a7 To continue with the next statement click on the blue button<br \/>\n\uf0a7 Click on the \u201cRun\u201d button to continue executing all the commands at a time<\/p>\n<h2><span class=\"ez-toc-section\" id=\"186What_is_Selenese_and_what_are_the_types_of_Selenese\"><\/span>186.What is Selenese and what are the types of Selenese ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 Actions: It is used for performing the operations and interactions with the target elements<br \/>\n\uf0a7 Assertions: It is used as a check points<br \/>\n\uf0a7 Accessors: It is used for storing the values in a variable<\/p>\n<h2><span class=\"ez-toc-section\" id=\"187What_are_the_two_modes_of_views_in_Selenium_IDE\"><\/span>187.What are the two modes of views in Selenium IDE ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Either Selenium IDE can be opened as a pop up window or in side bar<\/p>\n<h2><span class=\"ez-toc-section\" id=\"188How_you_can_convert_any_Selenium_IDE_tests_from_Selenese_to_another_language\"><\/span>188.How you can convert any Selenium IDE tests from Selenese to another language?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can use the format option of Selenium IDE to convert tests into another programming<br \/>\nlanguage<\/p>\n<h2><span class=\"ez-toc-section\" id=\"189Using_Selenium_IDE_is_it_possible_to_get_data_from_a_particular_html_table_cell\"><\/span>189.Using Selenium IDE is it possible to get data from a particular html table cell?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 You can use the \u201cstore Table\u201d command<br \/>\n\uf0a7 Example store text from cell 0,2 from an html table<br \/>\n\uf0a7 Store Table<br \/>\n\uf0a7 Css=#table 0.2<br \/>\n\uf0a7 textFromCell<\/p>\n<h2><span class=\"ez-toc-section\" id=\"190Explain_what_can_cause_a_Selenium_IDE_test_to_fail\"><\/span>190.Explain what can cause a Selenium IDE test to fail?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 When a locator has changed and Selenium IDE cannot locate the element<br \/>\n\uf0a7 When element Selenium IDE waiting to access did not appear on the web page and the<br \/>\noperation timed out<br \/>\n\uf0a7 When element Selenium IDE was trying to access was not created<\/p>\n<h2><span class=\"ez-toc-section\" id=\"191Explain_how_you_can_debug_the_tests_in_Selenium_IDE\"><\/span>191.Explain how you can debug the tests in Selenium IDE ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Insert a break point from the location where you want to execute step by step<br \/>\nRun the test case At the given break point execution will be paused To continues with the next step click on the Blue button To run commands at a time click on run button<\/p>\n<h2><span class=\"ez-toc-section\" id=\"192From_Selenium_IDE_how_you_can_execute_a_single_line\"><\/span>192.From Selenium IDE how you can execute a single line?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>From Selenium IDE single line command can be executed in two ways<br \/>\nSelect \u201cExecute this command\u201d by right clicking on the command in Selenium IDE<br \/>\nPress \u201cX\u201d key on the keyboard after selecting the command in Selenium IDE<\/p>\n<h2><span class=\"ez-toc-section\" id=\"193In_which_format_does_source_view_shows_your_script_in_Selenium_IDE\"><\/span>193.In which format does source view shows your script in Selenium IDE?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In Selenium IDE source view shows your script in XML format<\/p>\n<h2><span class=\"ez-toc-section\" id=\"194What_if_you_have_written_your_own_element_locator_and_how_would_you_test_it\"><\/span>194.What if you have written your own element locator and how would you test it?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To test the locator one can use \u201cFind Button\u201d of Selenium IDE, as you click on it, you would see on screen an element being highlighted provided your element locator is right or or else an error message will be displayed<\/p>\n<h2><span class=\"ez-toc-section\" id=\"195What_is_regular_expressions_How_you_can_use_regular_expressions_in_Selenium\"><\/span>195.What is regular expressions? How you can use regular expressions in Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A regular expression is a special text string used for describing a search pattern. In Selenium IDE regular expression can be used with the keyword- regexp: as a prefix to the value and patterns needs to be included for the expected values.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"196State_the_major_difference_between_%E2%80%9Cassert%E2%80%9D_and_%E2%80%9Cverify%E2%80%9D_commands_in_Selenium\"><\/span>196.State the major difference between \u201cassert\u201d and \u201cverify\u201d commands in Selenium.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Both \u201cassert\u201d and \u201cverify\u201d commands check whether the given condition is true or false and the only difference between them is that:<br \/>\n\uf0a7 Assert: Assert condition stops the execution of the testing if the given condition is false else would continue with the further tests.<br \/>\n\uf0a7 Verify: Verify the condition doesn\u2019t stop the flow of execution irrespective of the condition being true or false.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"197Demonstrate_usage_of_Selenium_through_a_test_application\"><\/span>197.Demonstrate usage of Selenium through a test application.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uf0a7 You need the following prerequisites to run a demo Selenium test script:<br \/>\n\uf0a7 Java SDK in your respective Operating System.<br \/>\n\uf0a7 A Java-based IDE such as Eclipse or IntelliJ.<br \/>\n\uf0a7 A Selenium Web Driver to be added as a dependency to Java IDE.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"198What_are_the_advantages_of_automation_testing\"><\/span>198.What are the advantages of automation testing?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Some basic Advantages of automation testing are as follows.<br \/>\n\uf0a7 Automation testing supports both functional and performance test on an application.<br \/>\n\uf0a7 It supports the execution of repeated test cases.<br \/>\n\uf0a7 It facilitates parallel execution.<br \/>\n\uf0a7 It aids in testing a large test matrix.<br \/>\n\uf0a7 It improves accuracy because there are no chances of human errors.<br \/>\n\uf0a7 It saves time and money.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"199What_is_Selenium\"><\/span>199.What is Selenium?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium is a portable framework for software testing. Selenium tool facilitates with a playback tool for authoring functional tests without the need to learn a test scripting language.Selenium is one of the most widely used open source Web UI (User Interface) automation testing suite. Jason Huggins developed Selenium in 2004 as an internal tool at Thought Works. Selenium supports automation across different browsers, platforms, and programming languages.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"200What_are_the_significant_changesupgrades_in_various_Selenium_versions\"><\/span>200.What are the significant changes\/upgrades in various Selenium versions?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Selenium v1.0:<br \/>\n\uf0a7 Version 1.0 was the initial release of Selenium.<br \/>\n\uf0a7 It included three tools: Selenium IDE, Selenium RC, and Selenium Grid.<br \/>\nSelenium v2.0:<br \/>\n\uf0a7 Selenium Web Driver was introduced replacing Selenium RC in version &#8220;2.0&#8221;.<br \/>\n\uf0a7 With the onset of Web Driver, RC got deprecated and moved to the legacy package.<br \/>\nSelenium v3:<br \/>\n\uf0a7 The latest release Selenium 3 has new added features and functionalities.<br \/>\n\uf0a7 It includes Selenium IDE, Selenium Web Driver, and Selenium Grid.<\/p>\n<p>&nbsp;<\/p>\n<p>Join the best <a href=\"https:\/\/gauthamit.com\/contact\/\">course<\/a> in the best <a href=\"https:\/\/www.google.com\/maps\/place\/Gautham+IT+Solutions+-+Best+Software+Training+Institute+%7C+Servicenow+Training+%7C+Azure+DevOps+%7C+Mulesoft+%7C+Data+Science+Training+In+Hyderabad\/@17.4375142,78.4456641,15z\/data=!4m5!3m4!1s0x0:0x33b301de829df64b!8m2!3d17.4375142!4d78.4456641\" target=\"_blank\" rel=\"noopener\">institute<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Selenium Interview Questions 1. What is automation testing? Automation testing is the process of automating the manual testing of the application under test (AUT) or the system under test (SUT). It includes the involvement of testing tools that help us create test scripts, which can be used repeatedly without any human intervention. 2. What is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":329,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-251","post","type-post","status-publish","format-standard","has-post-thumbnail","category-interview-questions"],"_links":{"self":[{"href":"https:\/\/gauthamit.com\/blog\/wp-json\/wp\/v2\/posts\/251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gauthamit.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gauthamit.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gauthamit.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gauthamit.com\/blog\/wp-json\/wp\/v2\/comments?post=251"}],"version-history":[{"count":0,"href":"https:\/\/gauthamit.com\/blog\/wp-json\/wp\/v2\/posts\/251\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gauthamit.com\/blog\/wp-json\/wp\/v2\/media\/329"}],"wp:attachment":[{"href":"https:\/\/gauthamit.com\/blog\/wp-json\/wp\/v2\/media?parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gauthamit.com\/blog\/wp-json\/wp\/v2\/categories?post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gauthamit.com\/blog\/wp-json\/wp\/v2\/tags?post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}