[Webkit-unassigned] [Bug 225050] Safari preferences for setting Pop-up Windows not working in Selenium tests with Webdriver
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 28 04:20:40 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=225050
--- Comment #1 from harshit at browserstack.com ---
Attaching sample script to reproduce the issue herein. To change safari preferences
1. Open safari Browser
2. Go to preferences
3. Go to Pop-up Windows
4. Select one of the three modes given next to "When visiting other websites"
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver import ActionChains
driver = webdriver.Safari()
driver.get("https://deliver.courseavenue.com/PopupTest.aspx")
element = driver.find_element_by_css_selector('#ctl00_ContentMain_popupTest')
action = ActionChains(driver)
action.click(element).perform()
time.sleep(10)
driver.quit()
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210428/b6dd8dba/attachment.htm>
More information about the webkit-unassigned
mailing list