{"id":265998,"date":"2020-09-04T13:42:04","date_gmt":"2020-09-04T13:42:04","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=265998"},"modified":"2021-12-21T08:19:39","modified_gmt":"2021-12-21T08:19:39","slug":"cs-cart-language-converter","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/","title":{"rendered":"Language File Conversion in CS-Cart using Selenium WebDriver"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n<p>Converting the language file of CS-Cart add-on into any desired language of the user choice is time taking.<\/p>\n<p>If we do it manually and to test that desired add-on into any language of the user choice is important nowadays, as a customer can require the add-on in any language of his choice, so to make our add-on compatible according to their language is quite important.<\/p>\n<p>Therefore, we have created a small automation program for converting CS-Cart language file into any desired language file of the user&#8217;s choice.<\/p>\n\n\n<h3 class=\"wp-block-heading\">Steps to Convert the Language File<\/h3>\n\n\n\n<p><strong>Create a New Maven Project<\/strong><\/p>\n\n\n\n<p>If we create a Maven Project then we don\u2019t have to add all jar files into the library <\/p>\n\n\n\n<p>It automatically download and add all the jar files into your project  by just adding the dependencies into the <strong>POM.xml<\/strong> file of your project.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"912\" height=\"334\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2.png\" alt=\"POM_file\" class=\"wp-image-266004\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2.png 912w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2-300x110.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2-250x92.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2-768x281.png 768w\" sizes=\"(max-width: 912px) 100vw, 912px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Create a New Package<\/strong><\/p>\n\n\n\n<p>After the above step create a new package under our project by any desired name of your choice. The package which you are creating is a user-defined package which will create a folder in your workspace.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"449\" height=\"253\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/2-2.png\" alt=\"Package_creation\" class=\"wp-image-266006\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/2-2.png 449w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/2-2-300x169.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/2-2-250x141.png 250w\" sizes=\"(max-width: 449px) 100vw, 449px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Create a New Class<\/strong><\/p>\n\n\n\n<p>After creating the package you have to create a class under the package which you have created in above step. A class is a user defined prototype from which objects are created. We can also create an object of a class and access it from another class.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"512\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/3-2.png\" alt=\"Class_creation\" class=\"wp-image-266008\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/3-2.png 800w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/3-2-300x192.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/3-2-250x160.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/3-2-768x492.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Create a Function to Get Files<\/strong><\/p>\n\n\n\n<p>We will declare all the variables at once before using them in any method using the Private modifier. We don\u2019t have to declare any variable again and can use it anywhere inside any function of our project.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"434\" height=\"319\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/Screenshot-2020-09-04-121512.png\" alt=\"Variables_define\" class=\"wp-image-266527\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/Screenshot-2020-09-04-121512.png 434w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/Screenshot-2020-09-04-121512-300x221.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/Screenshot-2020-09-04-121512-250x184.png 250w\" sizes=\"(max-width: 434px) 100vw, 434px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>First enter the folder path where input files are kept. After-that, enter Output folder location where output files is to be stored. You should have ChromeDriver file according to the OS you are using and should enter whole path with file name.<\/p>\n\n\n\n<p><strong>Note:<\/strong> <em>In case you are using another browser you have to change the code accordingly.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"507\" height=\"214\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/Screenshot-2020-09-04-121744.png\" alt=\"User_Input\" class=\"wp-image-266529\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/Screenshot-2020-09-04-121744.png 507w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/Screenshot-2020-09-04-121744-300x127.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/Screenshot-2020-09-04-121744-250x106.png 250w\" sizes=\"(max-width: 507px) 100vw, 507px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Now pick default English language file from given location using <strong>File<\/strong> class. In case of multiple files we will store it in an array to convert each file.<br>Pick each file from the input location and copy the name of that language file. And create a converted language file at the Output location. <\/p>\n\n\n\n<p>If the file with same name will be present then it will delete that language file and create a new language file.<\/p>\n\n\n\n<p>At the end of the function we will call another function while passing parameters and converting that parameters to the string and return success.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n * Webkul Software.\n *\n * @category  Webkul\n * @author    Webkul\n * @copyright Copyright (c) 2010-2020 Webkul Software Private Limited (https:\/\/webkul.com)\n * @license   https:\/\/store.webkul.com\/license.html\n *\/\n\n\/\/ Getting file\nFile files = new File(wk_InputLocation);\nFile&#091;] file = files.listFiles();\nfor (File Singlefile : file) \n{\n\twk_pattern = Pattern.compile(&quot;.*\/(.*)&quot;);\n\twk_matcher = wk_pattern.matcher(Singlefile.toString());\n\tif (wk_matcher.find()) \n\t{\n\t\twk_outputFile = wk_OutputLocation + &quot;\/&quot; + wk_matcher.group(1);\n\t\twk_checkOutputFile = new File(wk_outputFile);\n\t\tif (wk_checkOutputFile.exists()) \n\t\t{\n\t\t\twk_checkOutputFile.delete();\n\t\t}\n\t}\n\treadFiles(Singlefile.toString(), wk_outputFile.toString());\n}\nreturn &quot;Success&quot;;\n}<\/pre>\n\n\n\n<p>Now ask the user in which language he wants to convert the file using <strong>Scanner<\/strong> Class.<\/p>\n\n\n\n<p><br>The <strong>find()<\/strong> method of <strong>matcher<\/strong> Class finds the next sub-sequence and then store the result into a string variable <strong>\u2018wk_resultText\u2019<\/strong>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n * Webkul Software.\n *\n * @category  Webkul\n * @author    Webkul\n * @copyright Copyright (c) 2010-2020 Webkul Software Private Limited (https:\/\/webkul.com)\n * @license   https:\/\/store.webkul.com\/license.html\n *\/\n\ntry {\n\twk_bufferedReader = new BufferedReader(new FileReader(new File(file.toString())));\n\twk_bufferedWriter = new BufferedWriter(new FileWriter(new File(outputFile)));\n\twk_fileLine = wk_bufferedReader.readLine();\n\twhile (wk_fileLine != null) \n\t{\n\t\tif (!wk_fileLine.equalsIgnoreCase(&quot;msgid \\&quot;\\&quot;&quot;)) \n\t\t{\n\t\t\twk_pattern = Pattern.compile(&quot;msgstr.*?\\&quot;(.*)\\&quot;&quot;);\n\t\t\twk_matcher = wk_pattern.matcher(wk_fileLine.toString());\n\t\t\tif (wk_matcher.find()) \n\t\t\t{\n\t\t\t\twk_resultText = wk_matcher.group(1);<\/pre>\n\n\n\n<p>If <strong>\u2018wk_resultText\u2019<\/strong> is not null than we will call the method which will open the Chrome browser using <strong>WebDriver<\/strong> . We will pass the path of the ChromeDriver stored in our workspace while calling the function.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n * Webkul Software.\n *\n * @category  Webkul\n * @author    Webkul\n * @copyright Copyright (c) 2010-2020 Webkul Software Private Limited (https:\/\/webkul.com)\n * @license   https:\/\/store.webkul.com\/license.html\n *\/\n\nif (wk_resultText != null) \n{\n\tSetBrowser(wk_chromedir);<\/pre>\n\n\n\n<p>In the <strong>SetBrowser()<\/strong> function we set the property of the ChromerDriver and give the location of it in our workspace <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n * Webkul Software.\n *\n * @category  Webkul\n * @author    Webkul\n * @copyright Copyright (c) 2010-2020 Webkul Software Private Limited (https:\/\/webkul.com)\n * @license   https:\/\/store.webkul.com\/license.html\n *\/\n\npublic void SetBrowser(String chromeDriverPath) \n{\n\tSystem.setProperty(&quot;webdriver.chrome.driver&quot;, chromeDriverPath);\/\/ need\n\tdriver = new ChromeDriver();\n\tdriver.manage().window().maximize();\n}<\/pre>\n\n\n\n<p>Firstly we call other function <strong>TextConvert()<\/strong> after opening the Chrome Driver then we will give the url of Google in driver.get() method then we will find the input field of <strong>Google<\/strong> by using <strong>xpath<\/strong>.<\/p>\n\n\n\n<p>Secondly we send the text into the input field using <strong>sendKeys()<\/strong> method and we will click on Search button of Google by finding the path of the Search button using <strong>xpath<\/strong>.<\/p>\n\n\n\n<p>Google Translate page open according to the language which user has selected for converting the language file.<\/p>\n\n\n\n<p><br>We find the location of text area using <strong>xpath<\/strong> where we enter the text which need to be converted and then send the text using <strong>sendKeys()<\/strong> method.<\/p>\n\n\n\n<p>We wait until Translated text-area is visible for picking up the value using <strong>xpath<\/strong> with the help of <strong>ExpectedConditions.visibilityOfElementLocated<\/strong> of <strong>WebDriverWait<\/strong> which is used to wait for an element to be visible on the page. <\/p>\n\n\n\n<p>Now  we will get the text using <strong>getText()<\/strong> method and store them into a String variable <strong>\u2018getConvertedText\u2019<\/strong>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n * Webkul Software.\n *\n * @category  Webkul\n * @author    Webkul\n * @copyright Copyright (c) 2010-2020 Webkul Software Private Limited (https:\/\/webkul.com)\n * @license   https:\/\/store.webkul.com\/license.html\n *\/\n\npublic String TextConvert(String englisText) throws InterruptedException \n{\n\twait = new WebDriverWait(driver, 30);\n\tdriver.get(&quot;https:\/\/www.google.com\/&quot;);\n\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(&quot;\/\/input&#091;@name=&#039;q&#039;]&quot;)));\n\tdriver.findElement(By.xpath(&quot;\/\/input&#091;@name=&#039;q&#039;]&quot;)).sendKeys(wk_Language);\n\tdriver.findElement(By.xpath(&quot;\/html\/body\/div&#091;1]\/div&#091;2]\/form\/div&#091;2]\/div&#091;1]\/div&#091;3]\/center\/input&#091;1]&quot;)).click();\n\tdriver.findElement(By.xpath(&quot;\/\/textarea&#091;@id=&#039;tw-source-text-ta&#039;]&quot;)).click();\n\tdriver.findElement(By.xpath(&quot;\/\/textarea&#091;@id=&#039;tw-source-text-ta&#039;]&quot;)).sendKeys(englisText.toString().trim());\n\tThread.sleep(3000);\n\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(&quot;\/\/pre&#091;@id=&#039;tw-target-text&#039;]\/\/span&quot;)));\n\tString getConvertedText= driver.findElement(By.xpath(&quot;\/\/pre&#091;@id=&#039;tw-target-text&#039;]\/\/span&quot;)).getText();\n\ttry \n\t{\n\t\tbyte bytes&#091;] = getConvertedText.getBytes(&quot;UTF-8&quot;);\n\t\twk_value = new String(bytes, &quot;UTF-8&quot;);\n\t} \n\tcatch (UnsupportedEncodingException e) \n\t{\n\t\te.printStackTrace();\n\t}\n\tdriver.close();\n\treturn wk_value;\n}<\/pre>\n\n\n\n<p>After this rest of the lines in the English Language file will be paste as it is using <strong>BufferedWriter<\/strong> class to write the line into the output file.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n * Webkul Software.\n *\n * @category  Webkul\n * @author    Webkul\n * @copyright Copyright (c) 2010-2020 Webkul Software Private Limited (https:\/\/webkul.com)\n * @license   https:\/\/store.webkul.com\/license.html\n *\/\n\nif (wk_resultText != null) \n{\n\tSetBrowser(wk_chromedir);\n\twk_Result = TextConvert(wk_resultText.toString());\n\twk_bufferedWriter.write(&quot;msgstr \\&quot;&quot;+wk_Result.toString()+&quot;\\&quot;&quot;);\n\twk_bufferedWriter.newLine();\n\twk_bufferedWriter.flush();\n}\n}\nelse\n{\n\twk_bufferedWriter.write(wk_fileLine.toString());\n\twk_bufferedWriter.newLine();\n\twk_bufferedWriter.flush();\n}\n}\nelse \n{\n\twk_bufferedWriter.write(wk_fileLine.toString());\n\twk_bufferedWriter.newLine();\n\twk_bufferedWriter.flush();\n}\nwk_fileLine = wk_bufferedReader.readLine();\n}\n} \ncatch (Exception e) \n{\n\te.printStackTrace();\n} \nfinally \n{\ntry \n{\n\twk_bufferedReader.close();\n\twk_bufferedWriter.close();\n}\ncatch (Exception e) \n{\n\te.printStackTrace();\n}\n}\nreturn &quot;Work done&quot;;\n}<\/pre>\n\n\n\n<p>Finally, <strong>main()<\/strong> class is called and then whole process works according to it.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n * Webkul Software.\n *\n * @category  Webkul\n * @author    Webkul\n * @copyright Copyright (c) 2010-2020 Webkul Software Private Limited (https:\/\/webkul.com)\n * @license   https:\/\/store.webkul.com\/license.html\n *\/\n\npublic static void main(String&#091;] args) \n{\n\tnew Converter().getFiles();\n}<\/pre>\n\n\n\n<p>Create jar file of your project and run it from Command Line by going to the specific location where you have stored your jar file and run the command <strong>java \u2013jar <em>FileName<\/em>.jar<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1087\" height=\"176\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-3.png\" alt=\"jar_file\" class=\"wp-image-266089\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-3.png 1087w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-3-300x49.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-3-250x40.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-3-768x124.png 768w\" sizes=\"(max-width: 1087px) 100vw, 1087px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>When you enter this command then it will ask you to enter Input, Output and ChromeDriver location.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1100\" height=\"291\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/2-3.png\" alt=\"User_input_location\" class=\"wp-image-266092\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/2-3.png 1100w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/2-3-300x79.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/2-3-250x66.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/2-3-768x203.png 768w\" sizes=\"(max-width: 1100px) 100vw, 1100px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>After providing the path of the folder it will ask you to enter the Language in which you want to convert.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1076\" height=\"319\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/3-3.png\" alt=\"user_location_console\" class=\"wp-image-266093\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/3-3.png 1076w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/3-3-300x89.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/3-3-250x74.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/3-3-768x228.png 768w\" sizes=\"(max-width: 1076px) 100vw, 1076px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>When language input is provided than chrome browser starts automatically and then project execute according to the program which is written and in output folder your files will be shown with converted language.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1087\" height=\"290\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/4-3.png\" alt=\"Chrome_image\" class=\"wp-image-266095\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/4-3.png 1087w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/4-3-300x80.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/4-3-250x67.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/4-3-768x205.png 768w\" sizes=\"(max-width: 1087px) 100vw, 1087px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Support<\/h2>\n\n\n\n<p><br>In case you have any queries then feel free to ask in the comment section below.<br>This is all about CS-Cart Language Conversion through Selenium WebDriver.<br><\/p>\n\n\n\n<p>Please explore our\u00a0<a href=\"https:\/\/webkul.com\/cs-cart-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">cs-cart Development Services<\/a>\u00a0and Quality\u00a0<a href=\"https:\/\/store.webkul.com\/CS-Cart.html\" target=\"_blank\" rel=\"noreferrer noopener\">cs-cart add-ons<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Converting the language file of CS-Cart add-on into any desired language of the user choice is time taking. If we do it manually and to test that desired add-on into any language of the user choice is important nowadays, as a customer can require the add-on in any language of his choice, so to <a href=\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":330,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1496],"tags":[2273,3138,3250,5195],"class_list":["post-265998","post","type-post","status-publish","format-standard","hentry","category-cs-cart","tag-automation","tag-selenium","tag-testing","tag-webdriver-using-chromedriver"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CS-Cart Language Converter- Automation Program using Selenium<\/title>\n<meta name=\"description\" content=\"CS-Cart Language Converter -Provided automation program of converting CS-Cart language file into any desired language file of the user choice.\" \/>\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\/cs-cart-language-converter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CS-Cart Language Converter- Automation Program using Selenium\" \/>\n<meta property=\"og:description\" content=\"CS-Cart Language Converter -Provided automation program of converting CS-Cart language file into any desired language file of the user choice.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/\" \/>\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=\"2020-09-04T13:42:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-21T08:19:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2.png\" \/>\n<meta name=\"author\" content=\"Ishan Malhotra\" \/>\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=\"Ishan Malhotra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/\"},\"author\":{\"name\":\"Ishan Malhotra\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/36cbd5a8947f497c32ae1ce661137038\"},\"headline\":\"Language File Conversion in CS-Cart using Selenium WebDriver\",\"datePublished\":\"2020-09-04T13:42:04+00:00\",\"dateModified\":\"2021-12-21T08:19:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/\"},\"wordCount\":880,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2.png\",\"keywords\":[\"Automation\",\"Selenium\",\"testing\",\"Webdriver using Chromedriver\"],\"articleSection\":[\"Cs Cart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/\",\"url\":\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/\",\"name\":\"CS-Cart Language Converter- Automation Program using Selenium\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2.png\",\"datePublished\":\"2020-09-04T13:42:04+00:00\",\"dateModified\":\"2021-12-21T08:19:39+00:00\",\"description\":\"CS-Cart Language Converter -Provided automation program of converting CS-Cart language file into any desired language file of the user choice.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2.png\",\"width\":912,\"height\":334,\"caption\":\"1-2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Language File Conversion in CS-Cart using Selenium WebDriver\"}]},{\"@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\/36cbd5a8947f497c32ae1ce661137038\",\"name\":\"Ishan Malhotra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/12f0d4f8cd7624cecb33c8fb8dfd5c5ff2ebf31980495318e7abbdae6dce1915?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\/12f0d4f8cd7624cecb33c8fb8dfd5c5ff2ebf31980495318e7abbdae6dce1915?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Ishan Malhotra\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/ishan-malhotra855\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CS-Cart Language Converter- Automation Program using Selenium","description":"CS-Cart Language Converter -Provided automation program of converting CS-Cart language file into any desired language file of the user choice.","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\/cs-cart-language-converter\/","og_locale":"en_US","og_type":"article","og_title":"CS-Cart Language Converter- Automation Program using Selenium","og_description":"CS-Cart Language Converter -Provided automation program of converting CS-Cart language file into any desired language file of the user choice.","og_url":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2020-09-04T13:42:04+00:00","article_modified_time":"2021-12-21T08:19:39+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2.png","type":"","width":"","height":""}],"author":"Ishan Malhotra","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Ishan Malhotra","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/"},"author":{"name":"Ishan Malhotra","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/36cbd5a8947f497c32ae1ce661137038"},"headline":"Language File Conversion in CS-Cart using Selenium WebDriver","datePublished":"2020-09-04T13:42:04+00:00","dateModified":"2021-12-21T08:19:39+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/"},"wordCount":880,"commentCount":6,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2.png","keywords":["Automation","Selenium","testing","Webdriver using Chromedriver"],"articleSection":["Cs Cart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/","url":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/","name":"CS-Cart Language Converter- Automation Program using Selenium","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2.png","datePublished":"2020-09-04T13:42:04+00:00","dateModified":"2021-12-21T08:19:39+00:00","description":"CS-Cart Language Converter -Provided automation program of converting CS-Cart language file into any desired language file of the user choice.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/cs-cart-language-converter\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/09\/1-2.png","width":912,"height":334,"caption":"1-2"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/cs-cart-language-converter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Language File Conversion in CS-Cart using Selenium WebDriver"}]},{"@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\/36cbd5a8947f497c32ae1ce661137038","name":"Ishan Malhotra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/12f0d4f8cd7624cecb33c8fb8dfd5c5ff2ebf31980495318e7abbdae6dce1915?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\/12f0d4f8cd7624cecb33c8fb8dfd5c5ff2ebf31980495318e7abbdae6dce1915?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Ishan Malhotra"},"url":"https:\/\/webkul.com\/blog\/author\/ishan-malhotra855\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/265998","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\/330"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=265998"}],"version-history":[{"count":76,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/265998\/revisions"}],"predecessor-version":[{"id":316207,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/265998\/revisions\/316207"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=265998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=265998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=265998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}