{"id":91388,"date":"2017-07-28T15:39:32","date_gmt":"2017-07-28T15:39:32","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=91388"},"modified":"2017-07-28T16:04:46","modified_gmt":"2017-07-28T16:04:46","slug":"cross-browser-testing-using-selenium","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/","title":{"rendered":"Cross Browser Testing Using Selenium"},"content":{"rendered":"<p>A web application can be opened in any browser by the user, so we need to ensure that the web application will work as expected in all browsers, that is why we need to do cross browser testing.<br \/>\nCross browser Testing is a method to test web application with different web browsers.<\/p>\n<p>Selenium supports to run webdriver in\u00a0 browsers by adding path of the driver for the individual browsers.<br \/>\nNow, we will see the setup and execution of drivers in below-mentioned browsers:<br \/>\n1)\u00a0Mozilla Firefox<br \/>\n2)\u00a0Google Chrome<br \/>\n3)\u00a0PhantomJS<br \/>\n4)\u00a0HTML Unit<\/p>\n<p>The drivers for the mentioned browsers (except HTML Unit)\u00a0 can be downloaded from here- <a href=\"http:\/\/www.seleniumhq.org\/download\/\">SeleniumHQ<\/a><\/p>\n<div class=\"panel panel-success\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Execution Of Mozilla Firefox Driver<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>When you are using Selenium V_2.xx , then you do not need to install any additional jar files. It is the default driver that selenium webdriver supports.<br \/>\nBut If you are using Selenium 3 then to work with Firefox browser , you need to use a separate driver which will interact with Firefox browser i.e GeckoDriver.<\/p>\n<pre class=\"brush:java\">package Firefox;\r\n\r\nimport org.openqa.selenium.WebDriver;\r\nimport org.openqa.selenium.firefox.FirefoxDriver;\r\nimport org.testng.annotations.AfterTest;\r\nimport org.testng.annotations.BeforeTest;\r\nimport org.testng.annotations.Test;\r\n\r\npublic class geckodriver \r\n{\r\n WebDriver driver;\r\n String gecko_path = null;\r\n\r\n @BeforeTest\r\n public void Setup()\r\n {\r\n\/\/ Set the path of firefox driver in 'gecko_path' variable \t\r\n gecko_path = \"path to gecko driver\";\r\n \r\n\/\/set the property for gecko driver, specify its location via the webdriver.gecko.driver\r\n System.setProperty(\"webdriver.gecko.driver\", gecko_path+\"geckodriver\");\r\n\/\/ Declaring and Initializing firefox driver\r\n driver = new FirefoxDriver();\r\n driver.manage().window().maximize();\r\n }\r\n @Test\r\n public void TestLogin()\r\n {\r\n driver.navigate().to(\"http:\/\/www.webkul.com\");\r\n String PageTitle= driver.getTitle();\r\n System.out.println(\"title is =============\"+PageTitle);\r\n }\r\n @AfterTest\r\n public void TearDown()\r\n {\r\n if(driver!=null)\r\n System.out.println(\"Close Firefox browser\");\r\n driver.quit();\r\n }\r\n}<\/pre>\n<p>Now we will run the above\u00a0 program using\u00a0TestNG framework, which will first open firefox browser and check &#8216;webkul Home Page Title&#8217;.<\/p>\n<p>OUTPUT CONSOLE-<\/p>\n<p><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png\"><img decoding=\"async\" class=\"alignnone wp-image-91428 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png\" alt=\"\" width=\"1222\" height=\"636\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png 1222w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10-250x130.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10-300x156.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10-768x400.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10-1200x625.png 1200w\" sizes=\"(max-width: 1222px) 100vw, 1222px\" loading=\"lazy\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"panel panel-success\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Execution Of Chrome Driver<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<p>Now to run selenium webdriver in Chrome browser, you need to take the help of &#8216;ChromeDriver&#8217;\u00a0 which selenium webdriver uses to control chrome.Let&#8217;s continue it with an example-<\/p>\n<pre class=\"brush:java\">package Chrome;\r\n\r\nimport org.openqa.selenium.WebDriver;\r\nimport org.openqa.selenium.chrome.ChromeDriver;\r\nimport org.testng.annotations.AfterTest;\r\nimport org.testng.annotations.BeforeTest;\r\nimport org.testng.annotations.Test;\r\n\r\npublic class GoogleDriver\r\n{\r\n WebDriver driver;\r\n \r\n @BeforeTest\r\n public void Setup()\r\n {\r\n\/\/Automatically fetches the project path via getProperty method\t \r\n String chrome_path = System.getProperty(\"user.dir\");\r\n\/\/set the property for chrome driver, specify its location via the webdriver.chrome.driver\r\n System.setProperty(\"webdriver.chrome.driver\",chrome_path+\"\/chromedriver\");\r\n \/\/Declaring and initializing chrome driver\r\n driver = new ChromeDriver();\r\n driver.manage().window().maximize();\r\n }\r\n @Test\r\n public void Login()\r\n {\r\n driver.navigate().to(\"http:\/\/www.webkul.com\");\r\n String PageTitle= driver.getTitle();\r\n System.out.println(\"title is =============\"+PageTitle);\r\n }\r\n @AfterTest\r\n public void TearDown()\r\n {\r\n if(driver!=null)\r\n System.out.println(\"Close chrome browser\");\r\n driver.quit();\r\n }\r\n}\r\n<\/pre>\n<p>As we are working on chrome browser,we have imported Statement<br \/>\n&#8216;org.openqa.selenium.chrome.ChromeDriver&#8217; which allows us to access classes<br \/>\nfrom selenium webdriver packages.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-success\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Execution Of PhantomJS Driver<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">PhantomJs is a lightweight headless web browser(A browser with no visible UI) .It is used for Headless Testing of web applications which comes with in built GhostDriver.<\/p>\n<p><a href=\"https:\/\/github.com\/detro\/ghostdriver\">PhantomJSDriver-1.0.x.jar<\/a> can also be downloaded and configured in Eclipse manually.Let&#8217;s continue with an example-<br style=\"font-size: medium\" \/><\/p>\n<pre class=\"brush:java\">package PhantomJS;\r\n\r\nimport java.io.File;\r\nimport java.io.IOException;\r\nimport org.apache.commons.io.FileUtils;\r\nimport org.openqa.selenium.OutputType;\r\nimport org.openqa.selenium.TakesScreenshot;\r\nimport org.openqa.selenium.WebDriver;\r\nimport org.openqa.selenium.phantomjs.PhantomJSDriver;\r\nimport org.openqa.selenium.remote.DesiredCapabilities;\r\nimport org.testng.annotations.AfterTest;\r\nimport org.testng.annotations.BeforeTest;\r\nimport org.testng.annotations.Test;\r\n\r\npublic class PhantomDriver\r\n{\r\n WebDriver driver;\r\n \r\n @BeforeTest\r\n public void Setup() \r\n {\r\n  DesiredCapabilities caps = new DesiredCapabilities();\r\n \/\/ not really needed: JS enabled by default\r\n  caps.setJavascriptEnabled(true); \r\n \/\/Screen Capture\r\n  caps.setCapability(\"takesScreenshot\", true);\r\n \/\/Declaring and Initializing PhantomJS driver\r\n  driver = new PhantomJSDriver(caps);\r\n }\r\n \r\n @Test\r\n public void GetUrl() throws IOException\r\n {\r\n  driver.navigate().to(\"http:\/\/www.webkul.com\");\r\n  String PageTitle= driver.getTitle();\r\n \/\/ Capture the webpage\r\n  TakesScreenshot object = (TakesScreenshot)driver;\r\n  File screen = ((TakesScreenshot) object).getScreenshotAs(OutputType.FILE);\r\n  FileUtils.copyFile(screen,new File(\"screen.png\"));\r\n  System.out.println(\"title is =============\"+PageTitle);\r\n\t \r\n }\r\n \r\n @AfterTest\r\n\r\n public void TearDown()\r\n {\r\n  driver.quit();\r\n }\r\n}\r\n<\/pre>\n<p>Now Run the above script. You will observe the output is shown in console<br \/>\nand no browser is launched.<\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"panel panel-success\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Execution Of Html Unit Driver<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>HTML Unit Driver is similar to PhantomJS. HtmlUnit driver do not have GUI so you can not see your test execution on your screen.So it is most light weight and fastest headless browser for WebDriver.<\/p>\n<p>Also you only have to add the standard selenium library files to the project. No additional jar files are required. Let&#8217;s takes an example-<\/p>\n<pre class=\"brush:java\">package htmlUnit;\r\n\r\nimport org.openqa.selenium.WebDriver;\r\nimport org.openqa.selenium.htmlunit.HtmlUnitDriver;\r\nimport org.testng.annotations.Test;\r\n\r\n\r\npublic class UnitDriver\r\n{\r\n WebDriver driver;\r\n\r\n @Test\r\n  public void SetUp() throws InterruptedException\r\n {\r\n \/\/Declaring and initialize  HtmlUnitWebDriver\r\n  WebDriver driver = new HtmlUnitDriver();\r\n\r\n \/\/open webkul webpage\r\n  driver.get(\"http:\/\/www.webkul.com\");\r\n \/\/wait for 5 second to load the page\r\n  Thread.sleep(5000);\r\n \/\/Print the title\r\n  System.out.println(\"Title of the page \"+ driver.getTitle());\r\n }\r\n}<\/pre>\n<p>When execution completed, You will see result in console.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A web application can be opened in any browser by the user, so we need to ensure that the web application will work as expected in all browsers, that is why we need to do cross browser testing. Cross browser Testing is a method to test web application with different web browsers. Selenium supports to <a href=\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":85,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4312],"tags":[5198,5192,5199,5191,5197,5195,5196,5193,5194],"class_list":["post-91388","post","type-post","status-publish","format-standard","hentry","category-automation-testing","tag-browsers-testing-using-selenium","tag-cross-browser-testing","tag-ghostdriver","tag-headless-browsers","tag-headless-testing","tag-webdriver-using-chromedriver","tag-webdriver-using-geckodriver","tag-webdriver-using-html-unit-driver","tag-webdriver-using-phantomjs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cross Browser Testing Using Selenium<\/title>\n<meta name=\"description\" content=\"Different Browsers Testing Using Selenium\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cross Browser Testing Using Selenium\" \/>\n<meta property=\"og:description\" content=\"Different Browsers Testing Using Selenium\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-07-28T15:39:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-07-28T16:04:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png\" \/>\n<meta name=\"author\" content=\"Mranali\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mranali\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/\"},\"author\":{\"name\":\"Mranali\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/15df30313abc1d5027fcb7754c14ba94\"},\"headline\":\"Cross Browser Testing Using Selenium\",\"datePublished\":\"2017-07-28T15:39:32+00:00\",\"dateModified\":\"2017-07-28T16:04:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/\"},\"wordCount\":396,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png\",\"keywords\":[\"Browsers testing using selenium\",\"Cross browser testing\",\"GhostDriver\",\"Headless browsers\",\"Headless testing\",\"Webdriver using Chromedriver\",\"Webdriver using Geckodriver\",\"Webdriver using HTML unit driver\",\"WebDriver using PhantomJS\"],\"articleSection\":[\"Automation testing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/\",\"url\":\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/\",\"name\":\"Cross Browser Testing Using Selenium\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png\",\"datePublished\":\"2017-07-28T15:39:32+00:00\",\"dateModified\":\"2017-07-28T16:04:46+00:00\",\"description\":\"Different Browsers Testing Using Selenium\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#primaryimage\",\"url\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png\",\"contentUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cross Browser Testing Using Selenium\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/15df30313abc1d5027fcb7754c14ba94\",\"name\":\"Mranali\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a050359a69d7f6d8fe77afb371656c4bdd44ff53b9a032b91dfe66419fd6f369?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a050359a69d7f6d8fe77afb371656c4bdd44ff53b9a032b91dfe66419fd6f369?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Mranali\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/mairan789\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cross Browser Testing Using Selenium","description":"Different Browsers Testing Using Selenium","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:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/","og_locale":"en_US","og_type":"article","og_title":"Cross Browser Testing Using Selenium","og_description":"Different Browsers Testing Using Selenium","og_url":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-07-28T15:39:32+00:00","article_modified_time":"2017-07-28T16:04:46+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png","type":"","width":"","height":""}],"author":"Mranali","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Mranali","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/"},"author":{"name":"Mranali","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/15df30313abc1d5027fcb7754c14ba94"},"headline":"Cross Browser Testing Using Selenium","datePublished":"2017-07-28T15:39:32+00:00","dateModified":"2017-07-28T16:04:46+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/"},"wordCount":396,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png","keywords":["Browsers testing using selenium","Cross browser testing","GhostDriver","Headless browsers","Headless testing","Webdriver using Chromedriver","Webdriver using Geckodriver","Webdriver using HTML unit driver","WebDriver using PhantomJS"],"articleSection":["Automation testing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/","url":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/","name":"Cross Browser Testing Using Selenium","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png","datePublished":"2017-07-28T15:39:32+00:00","dateModified":"2017-07-28T16:04:46+00:00","description":"Different Browsers Testing Using Selenium","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#primaryimage","url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png","contentUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/screenshot-2017-07-28-16-12-10.png"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/cross-browser-testing-using-selenium\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Cross Browser Testing Using Selenium"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/15df30313abc1d5027fcb7754c14ba94","name":"Mranali","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a050359a69d7f6d8fe77afb371656c4bdd44ff53b9a032b91dfe66419fd6f369?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a050359a69d7f6d8fe77afb371656c4bdd44ff53b9a032b91dfe66419fd6f369?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Mranali"},"url":"https:\/\/webkul.com\/blog\/author\/mairan789\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/91388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/85"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=91388"}],"version-history":[{"count":36,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/91388\/revisions"}],"predecessor-version":[{"id":91522,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/91388\/revisions\/91522"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=91388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=91388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=91388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}