# Dynatrace Chrome plugin and Selenium webdriver

**URL:** <https://community.dynatrace.com/t/dynatrace-chrome-plugin-and-selenium-webdriver/19243>\
**Category:** Extensions\
**Tags:** extensions\
**Created:** [January 23, 2019, 5:36pm UTC](https://community.dynatrace.com/t/dynatrace-chrome-plugin-and-selenium-webdriver/19243 "2019-01-23T17:36:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonio\_castro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonio_castro/32/34123_2.png) [@antonio\_castro](https://community.dynatrace.com/u/antonio_castro)\
**Post date:** [January 23, 2019, 5:36pm UTC](https://community.dynatrace.com/t/dynatrace-chrome-plugin-and-selenium-webdriver/19243/1 "2019-01-23T17:36:35Z")

</div>

Has anyone been able to enable and configure the Dynatrace Chrome extension when running Chrome via Selenium webdriver? Currently I’m able to enable the extension via ChromeOptions and also via a custom user-data-dir but the url to fetch the Dynatrace configuration is never saved after the test run is complete. Is there a way to preset the url?

---

<div class="post-metadata">

**Author:** ![Philipp\_Kastner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/philipp_kastner/32/28797_2.png) [@Philipp\_Kastner](https://community.dynatrace.com/u/Philipp_Kastner)\
**Post date:** [January 24, 2019, 7:53am UTC](https://community.dynatrace.com/t/dynatrace-chrome-plugin-and-selenium-webdriver/19243/2 "2019-01-24T07:53:59Z")

</div>

Hi [@Tony C.](https://answers.dynatrace.com/users/6453/view.html),

You can preset the url via an extension policy. See [https://www.dynatrace.com/support/help/shortlink/r…](https://www.dynatrace.com/support/help/shortlink/rum-browser-extension#deploy-the-rum-browser-extension) for details. I think there should be a way to do this in combination with selenium as well. (Never tried though)

May I ask what’s your use case for driving the RUM browser extension via selenium?

Kind regards, Philipp

---

<div class="post-metadata">

**Author:** ![antonio\_castro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonio_castro/32/34123_2.png) [@antonio\_castro](https://community.dynatrace.com/u/antonio_castro)\
**Post date:** [January 24, 2019, 12:55pm UTC](https://community.dynatrace.com/t/dynatrace-chrome-plugin-and-selenium-webdriver/19243/3 "2019-01-24T12:55:53Z")

</div>

Hi Phillip,

My long term implementation will utilize the extension policy as suggested. We have an existing set of .NET tests that has a framework built on top of Selenium so we were looking to use those to baseline and test a network upgrade we’re doing. I was able to get it working by unpacking the extension and defaulting the url in the globalConfig (definitely temporary). We just activated our subscription so I will try manually setting the extension policy on the actual test devices we’re going to use.

Thanks,

Tony
