<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8433625438063464324</id><updated>2024-08-31T19:43:25.892+05:30</updated><category term="App"/><category term="Automation"/><category term="Desktop"/><category term="DevTool"/><category term="Electron"/><category term="QA"/><category term="Selenium"/><category term="UI automation"/><category term="Webdriver"/><category term="chrome"/><category term="desktop app"/><category term="electronJS"/><category term="java"/><category term="nodeJS"/><category term="qa automation"/><category term="spactron"/><category term="testing"/><title type='text'>QAAutomation365</title><subtitle type='html'>Automation,Selenium,java,Webdriver,QA,electron,TestNG, </subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://qaautomation365.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8433625438063464324/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://qaautomation365.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>UIAutomation</name><uri>http://www.blogger.com/profile/10894758311857959545</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8433625438063464324.post-8249783740170126241</id><published>2019-01-02T23:46:00.001+05:30</published><updated>2020-09-30T18:23:16.862+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="App"/><category scheme="http://www.blogger.com/atom/ns#" term="Automation"/><category scheme="http://www.blogger.com/atom/ns#" term="chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="Desktop"/><category scheme="http://www.blogger.com/atom/ns#" term="desktop app"/><category scheme="http://www.blogger.com/atom/ns#" term="DevTool"/><category scheme="http://www.blogger.com/atom/ns#" term="Electron"/><category scheme="http://www.blogger.com/atom/ns#" term="electronJS"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="nodeJS"/><category scheme="http://www.blogger.com/atom/ns#" term="QA"/><category scheme="http://www.blogger.com/atom/ns#" term="qa automation"/><category scheme="http://www.blogger.com/atom/ns#" term="Selenium"/><category scheme="http://www.blogger.com/atom/ns#" term="spactron"/><category scheme="http://www.blogger.com/atom/ns#" term="testing"/><category scheme="http://www.blogger.com/atom/ns#" term="UI automation"/><category scheme="http://www.blogger.com/atom/ns#" term="Webdriver"/><title type='text'>Automate desktop/electron application using selenium </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
As We all know that using selenium, we cannot automate
desktop-based application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
But that&#39;s not 100% true😊, Because using selenium we can automate desktop application which
is build in electron and nodeJS.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Now what is electron?&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Electron is a framework for creating native applications
with web technologies like JavaScript, HTML, and CSS. It takes care of the hard
parts, so you can focus on the core of your application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Now a day’s there are many good companies using electron for
there product few of them are &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 41.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Slack,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 41.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;WordPress desktop app&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 41.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;symbol&amp;quot;; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: white; color: #222222;&quot;&gt;Visual Studio
Code (VS Code)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 41.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;symbol&amp;quot;; mso-bidi-font-family: Symbol; mso-bidi-font-weight: bold; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: white; color: #222222;&quot;&gt;Skype&lt;/span&gt;&lt;span style=&quot;background: white; color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
And there many more. electron application basically looks like below image in which we can have developer tool to inspect elements.For developer tool you need to press ctl+alt+i it open just like chrome browser but&amp;nbsp; still your not able to open developer&amp;nbsp;tool then need to ask your deployment team to enable developer tool from there code its self.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGx8IF_m7vlxwmJ89UyD4mBvS1ZMPhMQcIYHs6jyKPE2NkQIvzQgpSsIDnH5cR8Ss3ok84XPH5DZCAgjSIfFF7OEV91z2Rsocn1gPEOjEeZ_FSQZx5YrEaItGYwkuTJ7vA_uuCnpKnnpU7/s1600/electronapplication.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1365&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGx8IF_m7vlxwmJ89UyD4mBvS1ZMPhMQcIYHs6jyKPE2NkQIvzQgpSsIDnH5cR8Ss3ok84XPH5DZCAgjSIfFF7OEV91z2Rsocn1gPEOjEeZ_FSQZx5YrEaItGYwkuTJ7vA_uuCnpKnnpU7/s320/electronapplication.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
If you want to automate such type of applications using selenium
java then you simply must follow following steps.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;System.setProperty(&quot;&lt;span style=&quot;mso-bidi-font-weight: bold;&quot;&gt;webdriver&lt;/span&gt;.chrome.driver&quot;,
&quot;path of the exe file\\chromedriver.exe&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;ChromeOptions options = new ChromeOptions();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;/* setting electron binary path */&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;options.setBinary(&quot;C:\Users2\ElectronAPIDemos.exe&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;ChromeDriverService chromeservices = new
ChromeDriverService.Builder().build(); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;driver = new ChromeDriver(chromeservices, options);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;That&#39;s it and it will launch your desktop application and rest of
things that will work as normal selenium.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Thanks, F&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 14.6667px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;or any query mail me on&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13px; white-space: nowrap;&quot;&gt;qaautomation365@gmail.com or you can add comments below.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13px; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13px; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;trt0xe&quot; style=&quot;background: white; margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://qaautomation365.blogspot.com/feeds/8249783740170126241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/8433625438063464324/8249783740170126241' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8433625438063464324/posts/default/8249783740170126241'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8433625438063464324/posts/default/8249783740170126241'/><link rel='alternate' type='text/html' href='https://qaautomation365.blogspot.com/2019/01/automate-desktopelectron-application.html' title='Automate desktop/electron application using selenium '/><author><name>UIAutomation</name><uri>http://www.blogger.com/profile/10894758311857959545</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGx8IF_m7vlxwmJ89UyD4mBvS1ZMPhMQcIYHs6jyKPE2NkQIvzQgpSsIDnH5cR8Ss3ok84XPH5DZCAgjSIfFF7OEV91z2Rsocn1gPEOjEeZ_FSQZx5YrEaItGYwkuTJ7vA_uuCnpKnnpU7/s72-c/electronapplication.PNG" height="72" width="72"/><thr:total>9</thr:total></entry></feed>