Splunk AppDynamics

driver.quit() not working in AppD Synthetic Job

arthurva
Explorer

Below is a snippet of code that is working locally, but not in AppD. The specific line is `driver.quit()`

try:
    time.sleep(1)
    elementName = '//*[@id="ClaimSearch:ClaimSearchScreen:_msgs"]'
    WebDriverWait(driver,30).until(EC.element_to_be_clickable((By.XPATH, "" + elementName + "")))
    time.sleep(1)
    driver.quit()
except:
    print("Did not see a Message")

Continue with script...

Is there a different way to quit?

Labels (1)
Tags (2)
0 Karma
1 Solution

arthurva
Explorer

I resolve the issue by moving the code outside of a try/except section and also added  quit() after  driver.quit()

View solution in original post

iamryan
Community Manager
Community Manager

Hi @Arthur.Valijan,

Thanks for asking this question on the community. I see you also created a support ticket. If support is able to help you with an outcome, can you please share it back on this post. 

This helps drive knowledge sharing in the community.

0 Karma

arthurva
Explorer

I resolve the issue by moving the code outside of a try/except section and also added  quit() after  driver.quit()

Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...