<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Qlikview Macro - Is it possible to Web automate with Selenium? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlikview-Macro-Is-it-possible-to-Web-automate-with-Selenium/m-p/1826042#M67917</link>
    <description>&lt;P&gt;Hi, I've got a Qlikview dashboard that has an embedded VB macro that automates web pages.&amp;nbsp; Basically, using a straight table in the dashboard, the macro invokes a URL, locates items on a page and interacts with the page (posts comments, clicks buttons etc.)&lt;/P&gt;&lt;P&gt;The automation uses IE as the browser, due to the standard COM interface being used from the VB script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Set IExpl = CreateObject("InternetExplorer.Application")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that automating IE in this way isn't 100% reliable.&amp;nbsp; Even using delays in the script to allow the webpage to 'fully form' doesn't remove intermittent issues like page elements not being found and the DOM not being fully formed.&lt;/P&gt;&lt;P&gt;I wanted to investigate whether I can use Selenium as an alternative but am struggling as to how I can:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;get Selenium libs to be visible to the Qlikview macro environment&lt;/LI&gt;&lt;LI&gt;instantiate the Selenium webdriver&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I've read some online tutorials regarding automating with Selenium via Excel VBA.&amp;nbsp; In that, the webdriver object needs to be instantiated in similar fashion to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Dim driver as Selenium.WebDriver
Set driver = New Selenium.WebDriver &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Qlikview macros, all VB variables are created as variants so I suspect that the above isn't possible in a Qlikview macro?&lt;/P&gt;&lt;P&gt;Does anyone have experience of successfully using Selenium from Qlikview macros?&amp;nbsp; Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 18:17:33 GMT</pubDate>
    <dc:creator>paul4001</dc:creator>
    <dc:date>2021-11-30T18:17:33Z</dc:date>
    <item>
      <title>Qlikview Macro - Is it possible to Web automate with Selenium?</title>
      <link>https://community.qlik.com/t5/App-Development/Qlikview-Macro-Is-it-possible-to-Web-automate-with-Selenium/m-p/1826042#M67917</link>
      <description>&lt;P&gt;Hi, I've got a Qlikview dashboard that has an embedded VB macro that automates web pages.&amp;nbsp; Basically, using a straight table in the dashboard, the macro invokes a URL, locates items on a page and interacts with the page (posts comments, clicks buttons etc.)&lt;/P&gt;&lt;P&gt;The automation uses IE as the browser, due to the standard COM interface being used from the VB script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Set IExpl = CreateObject("InternetExplorer.Application")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that automating IE in this way isn't 100% reliable.&amp;nbsp; Even using delays in the script to allow the webpage to 'fully form' doesn't remove intermittent issues like page elements not being found and the DOM not being fully formed.&lt;/P&gt;&lt;P&gt;I wanted to investigate whether I can use Selenium as an alternative but am struggling as to how I can:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;get Selenium libs to be visible to the Qlikview macro environment&lt;/LI&gt;&lt;LI&gt;instantiate the Selenium webdriver&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I've read some online tutorials regarding automating with Selenium via Excel VBA.&amp;nbsp; In that, the webdriver object needs to be instantiated in similar fashion to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Dim driver as Selenium.WebDriver
Set driver = New Selenium.WebDriver &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Qlikview macros, all VB variables are created as variants so I suspect that the above isn't possible in a Qlikview macro?&lt;/P&gt;&lt;P&gt;Does anyone have experience of successfully using Selenium from Qlikview macros?&amp;nbsp; Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 18:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlikview-Macro-Is-it-possible-to-Web-automate-with-Selenium/m-p/1826042#M67917</guid>
      <dc:creator>paul4001</dc:creator>
      <dc:date>2021-11-30T18:17:33Z</dc:date>
    </item>
  </channel>
</rss>

