Quantcast
Channel: All AppDynamics Discussions posts
Viewing all articles
Browse latest Browse all 1667

Re: Scripts for Browser Synthetic Monitoring

$
0
0

Ok, so here is the latest script I have:

 

try:
    driver.get("http://www.landstaronline.com/Public/Login.aspx")
    driver.find_element_by_id("USER").click()
    driver.find_element_by_id("USER").clear()
    driver.find_element_by_id("USER").send_keys("USERID")
    driver.find_element_by_id("PASSWORD").click()
    driver.find_element_by_id("PASSWORD").clear()
    driver.find_element_by_id("PASSWORD").send_keys("PASSWORD")
    driver.find_element_by_id("Submit").click()
    if driver.title != "LandstarOnline Home Page":
        success = False
        print("verifyTitle failed")
finally:
    driver.quit()
    if not success:
        raise Exception("Test failed.")

 

It runs, and has a visual load time of .9 seconds, so it is kicking off the first step of getting the URL, but I get no other errors, and the screenshot shows a fully loaded page with nothing entered into the text boxes.  I have also run this script throug Sauce OnDemand and it works as it should.  I had to rename the driver from wd=webdriver to just use driver, but other than that the same script works fine in Sauce.  Script output is below as well.

 

 

 

0.00s   [INFO]  Starting measurement [161012_MR_27ZB]
0.25s   [INFO]  Executing WebDriver script
20.25s  [ERROR] Script timed out after 20 seconds

 


Viewing all articles
Browse latest Browse all 1667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>