Splunk AppDynamics

How to create synthetic monitoring selenium script?

Rajnikant_Bansa
New Member

Hi All

what are the various way to create the synthetic monitorng selenium script in case of SSO authentication issue?

Labels (1)
0 Karma
1 Solution

Chitra_Lal
Contributor

Hi Rajniikant,

Outside of selenium/manually, how to do login to the application using SSO from the AWS instances? Well generally this can be achieved either using the inline credentials in the URL, eg:

http://username:password@example.com/yourpage

Or Another mechanism is to use the selenium authenticate function as described at http://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.common.alert


Just t
arget the landing page (that redirects you to the sso login) and then you can pass on the username and password and get going. Somewhat like in below example:

pageUrl = "https://abc.xyz.edu"
driver.get(pageUrl)
driver.find_element_by_id("username").click()
driver.find_element_by_id("username").clear()
driver.find_element_by_id("username").send_keys("Useraccount")
driver.find_element_by_id("password").clear()
driver.find_element_by_id("password").send_keys("PASSWORD")
driver.find_element_by_name("submit").click()

Please refer to the below doc links for detailed help on creating the selenium scripts:

https://docs.appdynamics.com/display/PRO44/Synthetic+Scripts

https://pypi.org/project/selenium/

Hope this helps. Do let me know in case you have further queries. 

Thank You,

Chitra

View solution in original post

Chitra_Lal
Contributor

Hi Rajniikant,

Outside of selenium/manually, how to do login to the application using SSO from the AWS instances? Well generally this can be achieved either using the inline credentials in the URL, eg:

http://username:password@example.com/yourpage

Or Another mechanism is to use the selenium authenticate function as described at http://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.common.alert


Just t
arget the landing page (that redirects you to the sso login) and then you can pass on the username and password and get going. Somewhat like in below example:

pageUrl = "https://abc.xyz.edu"
driver.get(pageUrl)
driver.find_element_by_id("username").click()
driver.find_element_by_id("username").clear()
driver.find_element_by_id("username").send_keys("Useraccount")
driver.find_element_by_id("password").clear()
driver.find_element_by_id("password").send_keys("PASSWORD")
driver.find_element_by_name("submit").click()

Please refer to the below doc links for detailed help on creating the selenium scripts:

https://docs.appdynamics.com/display/PRO44/Synthetic+Scripts

https://pypi.org/project/selenium/

Hope this helps. Do let me know in case you have further queries. 

Thank You,

Chitra

Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...