Replies: 3 comments 12 replies
-
|
I am guessing that the issue is related to this bug: Upshot is that --allow-file-access-from-files argument should get you up and running. |
Beta Was this translation helpful? Give feedback.
-
|
I isolated something in trying to find a solution. I do not know what it means. just before the .analyze, I do a driver.SwitchTo().DefaultContent(); if I comment out the line driver.SwitchTo().DefaultContent(); , then I no longer get the above issue. Instead I get a so I am not sure how to proceed. before the analyze(), I need to switch into nested frames, to go click on a button, to load the next part. once on the next part, I usually have to navigate back up to the top, then through the frames to the various elements. All of it works with selenium (the reference is never stale, the items are found, manipulated) -- but the axe stuff fails... the exact same code works against our production server/app. I am not sure what to do with this. |
Beta Was this translation helpful? Give feedback.
-
|
status update: after a couple sleepless nights... it does works locally with the firefox driver. I am not sure if I missed it in all my tests, or if there were other issues that I was having before . But now, the tests work locally/Internally only in firefox. I still have the original issue in Chrome. in production : any browser works. I wish I understood the "why" of why it will not work in Chrome, but right now, as long as I can run it internally and produce reports, that works for me. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I hope someone can maybe provide a hint of what is happening, and what could be the cause for the following.
first time here, and first time trying to create a proof of concept to integrate running accessibility tests.
I managed to create some tests , select elements, select iframes, and create reports against those. These are running fine against our production servers, but they will not run against any of our internally hosted environments.
Note: it works for the main login page. That page has no frames. But as soon as I log in, and load any of the internal application pages , they all have iframes, and that is where it seems to fail.
Here is the error that I receive against any of the logged in pages (where the equivalent in production just works):
javascript error: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
(Session info: chrome=91.0.4472.114)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary
2 parameters) at OpenQA.Selenium.Remote.RemoteTargetLocator.Frame(IWebElement frameElement) at Selenium.Axe.WebDriverInjectorExtensions.InjectIntoFrames(IWebDriver driver, String script, IList1 parents)at Selenium.Axe.WebDriverInjectorExtensions.Inject(IWebDriver driver, IAxeScriptProvider scriptProvider)
at Selenium.Axe.AxeBuilder..ctor(IWebDriver webDriver, AxeBuilderOptions options)
at Selenium.Axe.AxeBuilder..ctor(IWebDriver webDriver)
at SeleniumAxe_POC.Testclass.POC_TestAxe()
Void UnpackAndThrowOnError(OpenQA.Selenium.Remote.Response)
So it seems that pages served from our internal servers, are different, and when the InjectIntoframes occurs, that is where it breaks?
IIS setting? something to do with security, headers? I am not too sure what is at play here?
thanks,
julie
Beta Was this translation helpful? Give feedback.
All reactions