<?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 Re: Installing webdriver for selenium in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Installing-webdriver-for-selenium/m-p/4295234#M5302</link>
    <description>&lt;P&gt;Looks like the webdriver that gets installed when you use&amp;nbsp;&lt;SPAN&gt;webdriver.Chrome(&lt;/SPAN&gt;&lt;SPAN&gt;options&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;options)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;is missing some dependencies - specifically&amp;nbsp;&lt;FONT face="courier new,courier"&gt;libnss3.so&lt;/FONT&gt;,&amp;nbsp;&lt;FONT face="courier new,courier"&gt;libnssutil3.so&lt;/FONT&gt;, and&amp;nbsp;&lt;FONT face="courier new,courier"&gt;libnspr4.so -&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;that aren't installed in the native notebook OS of CBL-Mariner/Azure Linux.&lt;BR /&gt;Next steps (beyond contacting the Synapse team) might include trying to get those libraries/library files installed.&amp;nbsp; The package manager is &lt;FONT face="courier new,courier"&gt;tdnf&lt;/FONT&gt;, rather than &lt;FONT face="courier new,courier"&gt;apt&lt;/FONT&gt;.&lt;BR /&gt;[Edit - same dependency issue if you pip install&amp;nbsp;&lt;SPAN&gt;chromedriver-py too]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(results of ldd &amp;lt;chromedriver path&amp;gt; below)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spencer_sa_0-1732186435382.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1203642iD8A753F230DD752A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="spencer_sa_0-1732186435382.png" alt="spencer_sa_0-1732186435382.png" /&gt;&lt;/span&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 21 Nov 2024 12:19:38 GMT</pubDate>
    <dc:creator>spencer_sa</dc:creator>
    <dc:date>2024-11-21T12:19:38Z</dc:date>
    <item>
      <title>Installing webdriver for selenium</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Installing-webdriver-for-selenium/m-p/4292547#M5266</link>
      <description>&lt;P&gt;Has anyone successfully installed a WebDriver in the Fabric environment?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attempted to place the WebDriver binaries in a Data Lake, but it didn’t work. I need to use Selenium to handle authentication for a single-page application, as Beautiful Soup is insufficient for this task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already checked this but they solution is outside fabric/bs4&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Environment-Selenium-installation/m-p/3703772#M1825" target="_blank" rel="noopener"&gt;Solved: Notebook Environment, Selenium installation - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 06:37:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Installing-webdriver-for-selenium/m-p/4292547#M5266</guid>
      <dc:creator>FelipeM</dc:creator>
      <dc:date>2024-11-20T06:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Installing webdriver for selenium</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Installing-webdriver-for-selenium/m-p/4292869#M5269</link>
      <description>&lt;P&gt;Is there any reason &lt;STRONG&gt;&lt;EM&gt;%pip install selenium&lt;/EM&gt;&lt;/STRONG&gt; isn't working?&amp;nbsp; This screenshot is from one of my notebooks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spencer_sa_1-1732091717291.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1202899i30063A1FB0A99B0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="spencer_sa_1-1732091717291.png" alt="spencer_sa_1-1732091717291.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are having issues with the pip repositories, we have managed to load .whl files dynamically from a lakehouse by mounting the lakehouse and loading from there with sys. libraries.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 08:35:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Installing-webdriver-for-selenium/m-p/4292869#M5269</guid>
      <dc:creator>spencer_sa</dc:creator>
      <dc:date>2024-11-20T08:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Installing webdriver for selenium</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Installing-webdriver-for-selenium/m-p/4294141#M5288</link>
      <description>&lt;P&gt;Selenium is already installed, but a compatible web driver is required to interact with web browser.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sephir_0-1732147337249.png" style="width: 618px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1203240iF7B604586B28E8F1/image-dimensions/618x51?v=v2" width="618" height="51" role="button" title="Sephir_0-1732147337249.png" alt="Sephir_0-1732147337249.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/679603"&gt;@spencer_sa&lt;/a&gt;&amp;nbsp; are you able to start the driver and perform any operation? thanks for your time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 00:03:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Installing-webdriver-for-selenium/m-p/4294141#M5288</guid>
      <dc:creator>Sephir</dc:creator>
      <dc:date>2024-11-21T00:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Installing webdriver for selenium</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Installing-webdriver-for-selenium/m-p/4294620#M5298</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/808641"&gt;@Sephir&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/855708"&gt;@FelipeM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This might be a challenge in Fabric. When using Selenium locally, WebDriver can launch a locally installed browser (such as Chrome) to visit websites. However, in Fabric, notebooks run in an Apache Spark-based environment, which is a virtual environment and may not have a specific browser that WebDriver can launch. Therefore, even if WebDriver is available, the goal cannot be achieved due to the lack of web browser.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could reproduce the same error as you have got:&amp;nbsp;"&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;WebDriverException: Message: Service /home/trusted-service-user/.cache/selenium/&lt;FONT color="#0000FF"&gt;chromedriver/linux64/131.0.6778.85/chromedriver unexpectedly exited. Status code was: 127".&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;According to the error message, it seems it already has a chromedriver which is linux version. When we&lt;SPAN&gt;&amp;nbsp;are using&amp;nbsp;Selenium&amp;nbsp;v4.6&amp;nbsp;and above we don't need to explicitly download&amp;nbsp;ChromeDriver,&amp;nbsp;GeckoDriver&amp;nbsp;or any browser drivers as such.&amp;nbsp;&lt;A href="https://www.selenium.dev/blog/2022/introducing-selenium-manager/" target="_blank" rel="noopener"&gt;Selenium Manager&lt;/A&gt;&amp;nbsp;would help to get a working environment to run Selenium out of the box. So it has prepared the chromedriver for the Fabric environment. Therefore I guess the cause of failure is the lack of browser in the Fabric environment.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Update:&lt;/P&gt;
&lt;P data-unlink="true"&gt;I read something about headless mode and browserless mode about Azure and Selenium, not sure if this could be applied to Fabric. I haven't tested this yet, to be honest.&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;A href="https://stackoverflow.com/questions/51958882/run-selenium-chrome-webdriver-on-azure-cloud-service" target="_blank" rel="noopener"&gt;c# - Run Selenium Chrome WebDriver on Azure Cloud Service? - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;A href="https://medium.com/@illiyas.k/how-to-run-selenium-driver-in-azure-for-data-collection-b473214f2724" target="_blank" rel="noopener"&gt;How to Run Selenium Driver in Azure for Data Collection | by Illiyas K | Medium&lt;/A&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Best Regards,&lt;BR /&gt;Jing&lt;BR /&gt;Community Support Team&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 06:40:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Installing-webdriver-for-selenium/m-p/4294620#M5298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-21T06:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Installing webdriver for selenium</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Installing-webdriver-for-selenium/m-p/4295234#M5302</link>
      <description>&lt;P&gt;Looks like the webdriver that gets installed when you use&amp;nbsp;&lt;SPAN&gt;webdriver.Chrome(&lt;/SPAN&gt;&lt;SPAN&gt;options&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;options)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;is missing some dependencies - specifically&amp;nbsp;&lt;FONT face="courier new,courier"&gt;libnss3.so&lt;/FONT&gt;,&amp;nbsp;&lt;FONT face="courier new,courier"&gt;libnssutil3.so&lt;/FONT&gt;, and&amp;nbsp;&lt;FONT face="courier new,courier"&gt;libnspr4.so -&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;that aren't installed in the native notebook OS of CBL-Mariner/Azure Linux.&lt;BR /&gt;Next steps (beyond contacting the Synapse team) might include trying to get those libraries/library files installed.&amp;nbsp; The package manager is &lt;FONT face="courier new,courier"&gt;tdnf&lt;/FONT&gt;, rather than &lt;FONT face="courier new,courier"&gt;apt&lt;/FONT&gt;.&lt;BR /&gt;[Edit - same dependency issue if you pip install&amp;nbsp;&lt;SPAN&gt;chromedriver-py too]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(results of ldd &amp;lt;chromedriver path&amp;gt; below)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spencer_sa_0-1732186435382.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1203642iD8A753F230DD752A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="spencer_sa_0-1732186435382.png" alt="spencer_sa_0-1732186435382.png" /&gt;&lt;/span&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Nov 2024 12:19:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Installing-webdriver-for-selenium/m-p/4295234#M5302</guid>
      <dc:creator>spencer_sa</dc:creator>
      <dc:date>2024-11-21T12:19:38Z</dc:date>
    </item>
  </channel>
</rss>

