When dealing with Synthetic monitoring for services that have a step where either a new window or tab is involved after an action is taken the monitor fails to record the resulting new page.
Would be nice to have the recorder be able to handle this type of scenario since this is possible with Selenium which the recorder is based on... Here is an example I found online of dealing with this cenario:
# filename: new_window.py
from selenium import webdriver
self.driver = webdriver.Firefox()
driver = self.driver
first_window = driver.window_handles
all_windows = driver.window_handles
for window in all_windows:
if window != first_window:
new_window = window
assert driver.title != "New Window", "title should not be New Window"
assert driver.title == "New Window", "title should be New Window"
if __name__ == "__main__":