

{"id":80517,"date":"2020-08-10T13:45:40","date_gmt":"2020-08-10T08:15:40","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=80517"},"modified":"2021-05-12T14:52:57","modified_gmt":"2021-05-12T09:22:57","slug":"selenium-rc-vs-webdriver","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/","title":{"rendered":"Difference Between Selenium RC and WebDriver"},"content":{"rendered":"<p>Selenium is a portable software testing framework that is being used for testing web applications. It is being used for automating test cases with the use of programming languages, which include Ruby, Scala, Perl, Java, PHP, etc. These tests can be used to execute against different web browsers.<\/p>\n<p>Selenium includes a few components, and each of these has a separate function to perform the development of applications test automation. Some of the most common elements are Selenium IDE, Selenium RC, Selenium WebDriver, and Selenium Grid.<\/p>\n<p>While it is true that the Selenium WebDriver test automation framework is a successor of Selenium RC, there are still several differences between the two. This article can help you to develop a better understanding of Selenium RC vs WebDriver.<\/p>\n<h2 class=\"LC20lb DKV0Md\">Difference between Selenium RC and WebDriver<\/h2>\n<p>So, let&#8217;s have a look at Selenium RC vs WebDriver:<\/p>\n<h4>1. Architecture<\/h4>\n<p>When it comes to the WebDriver architecture, it is simpler than the Selenium RC\u2019s.<\/p>\n<ul>\n<li>As it controls the browser from the Operating System mechanism.<\/li>\n<li>WebDriver only needs the browser and programming languages IDE to work.<\/li>\n<\/ul>\n<p>Selenium RC\u2019s architecture is difficult as compared to WebDriver<\/p>\n<ul>\n<li>Firstly users need to install and launch a separate application known by the name as Selenium RC server before starting the test cases.<\/li>\n<li>RC acts as a middleware between the Selenium commands and the browser.<\/li>\n<\/ul>\n<h4>2. Execution of test case Speed<\/h4>\n<p>The WebDriver scripts execution is much faster than the Selenium RC as it works directly with the browser. RC script execution is slower than the Selenium WebDriver since it works on the principle of JavaScript program. The Selenium Core directly controls the browser.<\/p>\n<h4>3. Object-Oriented<\/h4>\n<p>RC is not much object Oriented, whereas, on the other hand, Selenium WebDriver is completely Object Oriented.<\/p>\n<h4>4. Browser<\/h4>\n<p>Both the RC and WebDriver can be used on different browsers such as Chrome, IE, Safari, Opera, Mozilla, and others. The only difference is that WebDriver supports the headless browser, whereas RC does not support the headless browser<\/p>\n<h4>5. XPath<\/h4>\n<p>Selenium RC requires one to use the complete XPath to find the element, whereas the same is not mandatory in the WebDriver.<\/p>\n<h4>6. App testing<\/h4>\n<p>One cannot test any sort of the Android or iPhone application on RC, whereas, on the other hand, the same can be done using the WebDriver.<\/p>\n<h4>7. Implementation of listeners<\/h4>\n<p>It is not possible to use and perform functionality of listeners in the RC, whereas one can do the same with the WebDriver.<\/p>\n<h4>8. Syntax<\/h4>\n<p>While the Syntax of RC is quite complex, the same is easy and straightforward to understand in the case of the WebDriver.<\/p>\n<h4>9. Real-life Interaction<\/h4>\n<p>Selenium WebDriver communicates with elements of the webpage in a more realistic way. For instance, if you have disabled the dropdown on a web application you are testing, WebDriver cannot select any value from the dropdown, just like how a real person can\u2019t do.<\/p>\n<p>Just like the other JavaScript codes, Selenium RC can access disabled elements.<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Basis<\/b><\/td>\n<td><b>Selenium RC<\/b><\/td>\n<td><b>Selenium WebDriver<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">API<\/span><\/td>\n<td><span style=\"font-weight: 400;\">RC does not support API<\/span><\/td>\n<td><span style=\"font-weight: 400;\">WebDriver supports API<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Command Line prompt<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Uses command line prompt<\/span><\/td>\n<td><span style=\"font-weight: 400;\">No usage of command-line prompt<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Script<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It cannot run WebDriver script<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It can run RC scripts<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Reports<\/span><\/td>\n<td><span style=\"font-weight: 400;\">WebDriver cannot automatically generate Test Result\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">RC automatically generates an HTML file of test results<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Conclusion<\/h2>\n<p>The primary goal for introducing the WebDriver test automation framework into the market is to deal with the disadvantages of Selenium RC and to increase the testing scope.<\/p>\n<p>It is highly recommended to use the WebDriver tool as the preferred automation framework. Furthermore, it also depends on the choice of the tester as well as its requirement.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Selenium is a portable software testing framework that is being used for testing web applications. It is being used for automating test cases with the use of programming languages, which include Ruby, Scala, Perl,&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":80585,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22825],"tags":[22917,22915,22916],"class_list":["post-80517","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-selenium-tutorials","tag-difference-between-selenium-rc-and-web-driver","tag-selenium-rc-vs-webdriver","tag-selenium-webdriver-vs-selenium-rc"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Difference Between Selenium RC and WebDriver - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn difference between selenium RC and Webdriver to understand which one is more useful &amp; where to use? Compare on the basis of architecture, syntax etc\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Difference Between Selenium RC and WebDriver - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn difference between selenium RC and Webdriver to understand which one is more useful &amp; where to use? Compare on the basis of architecture, syntax etc\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-10T08:15:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-12T09:22:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/RC-vs-WebDriver.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Difference Between Selenium RC and WebDriver - DataFlair","description":"Learn difference between selenium RC and Webdriver to understand which one is more useful & where to use? Compare on the basis of architecture, syntax etc","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/","og_locale":"en_US","og_type":"article","og_title":"Difference Between Selenium RC and WebDriver - DataFlair","og_description":"Learn difference between selenium RC and Webdriver to understand which one is more useful & where to use? Compare on the basis of architecture, syntax etc","og_url":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2020-08-10T08:15:40+00:00","article_modified_time":"2021-05-12T09:22:57+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/RC-vs-WebDriver.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Difference Between Selenium RC and WebDriver","datePublished":"2020-08-10T08:15:40+00:00","dateModified":"2021-05-12T09:22:57+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/"},"wordCount":605,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/RC-vs-WebDriver.jpg","keywords":["Difference between selenium RC and Web Driver","selenium rc vs webdriver","selenium webdriver vs selenium rc"],"articleSection":["Selenium Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/","url":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/","name":"Difference Between Selenium RC and WebDriver - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/RC-vs-WebDriver.jpg","datePublished":"2020-08-10T08:15:40+00:00","dateModified":"2021-05-12T09:22:57+00:00","description":"Learn difference between selenium RC and Webdriver to understand which one is more useful & where to use? Compare on the basis of architecture, syntax etc","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/RC-vs-WebDriver.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/RC-vs-WebDriver.jpg","width":1200,"height":628,"caption":"Difference between selenium RC and Web Driver"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/selenium-rc-vs-webdriver\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Selenium Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/selenium-tutorials\/"},{"@type":"ListItem","position":3,"name":"Difference Between Selenium RC and WebDriver"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/80517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=80517"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/80517\/revisions"}],"predecessor-version":[{"id":94371,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/80517\/revisions\/94371"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/80585"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=80517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=80517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=80517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}