Discussion Feed
12-16-2020
02:55 PM
The current version of Firefox for synthetic monitoring is 72.0.1, which was released on January 8, 2020. Does AppD have any plans upgrading to a new version?
... View more
08-21-2020
08:34 AM
As the subject reads, webdriver.ActionChains(driver).send_keys(Keys.ESCAPE).perform() is not working in Firefox. This issue only occurs in AppD. Support and I cannot reproduce the issue locally. Support has created SYNTH-6266. I don't have any hope it will be fixed in 2020. I am asking the community to provide me a different method to Esc out of a pop-up without knowing any information about the pop-up like XPATH, ID, Name, etc. The pop-up I am using this for are Pendo pop-ups. Unfortunately, the environment that has this pop-up is not accessible from the Cloud for me to provide you an example.
... View more
07-22-2020
11:09 AM
1 Kudo
I resolve the issue by moving the code outside of a try/except section and also added quit() after driver.quit()
... View more
07-13-2020
11:08 AM
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?
... View more
01-16-2019
10:47 AM
I have a Python/Selenium script that has 30+ of the following. I've included two samples.
try:
xpathName = "//*[@id='locationDeductableAmount']"
xpathValue = "1000"
wait = WebDriverWait(driver, 10)
element = wait.until(EC.element_to_be_clickable((By.XPATH, "" + xpathName + "")))
element.click()
dropdown_element = wait.until(EC.presence_of_element_located((By.XPATH, "" + xpathName + "")))
select = Select(dropdown_element)
select.select_by_visible_text(xpathValue)
except:
stop = time.time()
print("Step " + step + ": Response Time (sec) is " + str(stop - start))
raise Exception ("WARNING: Could not find " + xpathName + " id")
print("--------")
try:
xpathName = "//*[@id='buildingSquareFootagerest']"
xpathValue = "3000"
wait = WebDriverWait(driver, 10)
element = wait.until(EC.element_to_be_clickable((By.XPATH, "" + xpathName + "")))
element.click()
element = wait.until(EC.element_to_be_clickable((By.XPATH, "" + xpathName + "")))
element.clear()
element = wait.until(EC.element_to_be_clickable((By.XPATH, "" + xpathName + "")))
element.send_keys(xpathValue)
except:
stop = time.time()
print("Step " + step + ": Response Time (sec) is " + str(stop - start))
raise Exception ("WARNING: Could not find " + xpathName + " id")
print("--------")
The website in question only works in IE.
Sometimes my script completes without any issues and other times it errors with "selenium.common.exceptions.StaleElementReferenceException: Message: Element is no longer valid".
This error which is random happens at different areas of the script.
I've tried using a hard pause of 1 or 2 seconds. There are times it works and other times it fails.
Can anyone please tell me what I need to update to make this work?
I've update the post to include the exception messages
Traceback (most recent call last):
File "c:\Users\uswarv41\Box Sync\Documents\GitHub\appd-selenium-scripts\CML_BIE_PROD_NB_Restaurant_Synthetic_Script.py", line 375, in <module>
element.click()
File "C:\Users\uswarv41\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "C:\Users\uswarv41\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "C:\Users\uswarv41\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\uswarv41\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: Element is no longer valid
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\uswarv41\.vscode\extensions\ms-python.python-2018.12.1\pythonFiles\ptvsd_launcher.py", line 45, in <module>
main(ptvsdArgs)
File "c:\Users\uswarv41\.vscode\extensions\ms-python.python-2018.12.1\pythonFiles\lib\python\ptvsd\__main__.py", line 265, in main
wait=args.wait)
File "c:\Users\uswarv41\.vscode\extensions\ms-python.python-2018.12.1\pythonFiles\lib\python\ptvsd\__main__.py", line 256, in handle_argse_args
run_main(addr, name, kind, *extra, **kwargs)
File "c:\Users\uswarv41\.vscode\extensions\ms-python.python-2018.12.1\pythonFiles\lib\python\ptvsd\_local.py", line 52, in run_main
runner(addr, name, kind == 'module', *extra, **kwargs)
File "c:\Users\uswarv41\.vscode\extensions\ms-python.python-2018.12.1\pythonFiles\lib\python\ptvsd\runner.py", line 32, in run
set_trace=False)
File "c:\Users\uswarv41\.vscode\extensions\ms-python.python-2018.12.1\pythonFiles\lib\python\ptvsd\_vendored\pydevd\pydevd.py", line 1283, in run return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
File "c:\Users\uswarv41\.vscode\extensions\ms-python.python-2018.12.1\pythonFiles\lib\python\ptvsd\_vendored\pydevd\pydevd.py", line 1290, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script File "c:\Users\uswarv41\.vscode\extensions\ms-python.python-2018.12.1\pythonFiles\lib\python\ptvsd\_vendored\pydevd\_pydev_imps\_pydev_execfile.py", line 25, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "c:\Users\uswarv41\Box Sync\Documents\GitHub\appd-selenium-scripts\CML_BIE_PROD_NB_Restaurant_Synthetic_Script.py", line 385, in <module> raise Exception ("WARNING: Could not find " + xpathName + " id")
Exception: WARNING: Could not find //*[@id='locationDeductableAmount'] id
PS C:\Users\uswarv41\Box Sync\Documents\GitHub\appd-selenium-scripts>
... View more
11-30-2018
11:34 AM
We have a synthetic job that runs through 15+ steps. Each step is a new vitual page. All the steps are under one URL.
The results of the job in AppD only shows one page. I need AppD to display each page on it's own.
How do I do this?
Thanks
... View more
Latest Activity
- Posted Any plans to upgrade Firefox to a newer version? on End User Monitoring (EUM). 12-16-2020 02:55 PM
- Posted webdriver.ActionChains(driver).send_keys(Keys.ESCAPE).perform() Not working in Firefox on End User Monitoring (EUM). 08-21-2020 08:34 AM
- Tagged webdriver.ActionChains(driver).send_keys(Keys.ESCAPE).perform() Not working in Firefox on End User Monitoring (EUM). 08-21-2020 08:34 AM
- Tagged webdriver.ActionChains(driver).send_keys(Keys.ESCAPE).perform() Not working in Firefox on End User Monitoring (EUM). 08-21-2020 08:34 AM
- Tagged webdriver.ActionChains(driver).send_keys(Keys.ESCAPE).perform() Not working in Firefox on End User Monitoring (EUM). 08-21-2020 08:34 AM
- Got a Kudo for Re: driver.quit() not working in AppD Synthetic Job. 07-24-2020 02:30 AM
- Posted Re: driver.quit() not working in AppD Synthetic Job on End User Monitoring (EUM). 07-22-2020 11:09 AM
- Posted driver.quit() not working in AppD Synthetic Job on End User Monitoring (EUM). 07-13-2020 11:08 AM
- Tagged driver.quit() not working in AppD Synthetic Job on End User Monitoring (EUM). 07-13-2020 11:08 AM
- Tagged driver.quit() not working in AppD Synthetic Job on End User Monitoring (EUM). 07-13-2020 11:08 AM
- Posted selenium.common.exceptions.StaleElementReferenceException: Message: Element is no longer valid on End User Monitoring (EUM). 01-16-2019 10:47 AM
- Tagged selenium.common.exceptions.StaleElementReferenceException: Message: Element is no longer valid on End User Monitoring (EUM). 01-16-2019 10:47 AM
- Tagged selenium.common.exceptions.StaleElementReferenceException: Message: Element is no longer valid on End User Monitoring (EUM). 01-16-2019 10:47 AM
- Posted One URL with several pages of steps on End User Monitoring (EUM). 11-30-2018 11:34 AM
- Tagged One URL with several pages of steps on End User Monitoring (EUM). 11-30-2018 11:34 AM
- Tagged One URL with several pages of steps on End User Monitoring (EUM). 11-30-2018 11:34 AM
- Tagged One URL with several pages of steps on End User Monitoring (EUM). 11-30-2018 11:34 AM
Community Stats
Date Registered | 10-30-2018 09:09 AM |
Date Last Visited | 12-17-2020 03:02 PM |
Total Messages Posted | 10 |
Total Kudos Received | 1 |