Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7610)

Unified Diff: chrome/test/chromedriver/test/run_py_tests.py

Issue 2890103002: [Chromedriver] Allow access to chrome extension within iframe. (Closed)
Patch Set: using packed extension for unique id. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/chrome_launcher.cc ('k') | chrome/test/data/chromedriver/frames_extension.crx » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/test/run_py_tests.py
diff --git a/chrome/test/chromedriver/test/run_py_tests.py b/chrome/test/chromedriver/test/run_py_tests.py
index 18da3110613b10f9b22f7c0beb12f900acd9e57c..c2df3985f0f5618576dcbe7e4d16fc83c085017f 100755
--- a/chrome/test/chromedriver/test/run_py_tests.py
+++ b/chrome/test/chromedriver/test/run_py_tests.py
@@ -1838,6 +1838,17 @@ class ChromeExtensionsCapabilityTest(ChromeDriverBaseTest):
return
self.fail("couldn't find generated background page for test app")
+ def testIFrameWithExtensionsSource(self):
+ crx_path = os.path.join(_TEST_DATA_DIR, 'frames_extension.crx')
+ driver = self.CreateDriver(
+ chrome_extensions=[self._PackExtension(crx_path)])
+ driver.Load(
+ ChromeDriverTest._http_server.GetUrl() +
+ '/chromedriver/iframe_extension.html')
+ driver.SwitchToFrame('testframe')
+ element = driver.FindElement('id', 'p1')
+ self.assertEqual('Its a frame with extension source', element.GetText())
+
def testDontExecuteScriptsInContentScriptContext(self):
# This test extension has a content script which runs in all frames (see
# https://developer.chrome.com/extensions/content_scripts) which causes each
« no previous file with comments | « chrome/test/chromedriver/chrome_launcher.cc ('k') | chrome/test/data/chromedriver/frames_extension.crx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698