I have a program that has been working for quite a while. Not sure what happened, but all of the sudden it crashes. It looks like it is trying to access something on the page when this happens. It launches Chrome, gets to a login page, but then it crashes when trying to grab the login. Happens with multiple sites, so it isn't a site change or anything like that.
I tried converting to Firefox and InternetExplorer. However, because Chrome lets you download a file without prompting, that is what I know will work. I tried with FF creating a Profile and with IE creating a registry setting (to allow auto-download). Neither worked :(
I want to go back to Chrome, but not sure what is wrong. I even uninstalled Chrome entirely and re-installed it. Nothing :( I tried setting ChromeDriver.exe to "Run as Administrator" - nothing crashed, but also nothing ran.
I'm at a loss :(
the latest version of chrome has a rendering bug which is causing errors when working with selenium, you can try installing the latest chromedriver but it might be better to try to find a work around with firefox for now
Related
I recently had a new VM created for Windows 10 and our test automation suite.
After I got everything installed, I ran some of our tests. However, every single time that Selenium launches ChromeDriver, I still see the "What's New" / chrome://Whats-new tab in the browser, then our tests launch in a new tab. The tests seem to work just fine, however, if I do have a failing test, we take a desktop screenshot, and of course, all we see is the What's New tab, not our actual site-under-test.
I do not see the tab when launching Chrome manually, on any user that logs into the box. It only happens with the Selenium-ChromeDriver launched browsers. Even closing the tab while a test is running doesn't permanently remove that tab.
I have never encountered this problem with ChromeDriver before and it's a difficult question to search for answers.
Chrome / ChromeDriver versions: 98.0.4758.82 (which was released on 2/2, but it also happened on the previous version)
Has anyone solved this problem recently?
Try to use chromeOptions.AddArgument("--disable-features=ChromeWhatsNewUI");
I've been working for few months with QTP (UFT One 15.0.2), and today it has stopped recording (when I do the actions no lines are written in the script and no objects are added to the objects repository) and recognizing objects with the spy feature.
I am using the WEB add-in, and as I've been working for months with Mozilla Firefox I have checked that the WebExtension.xpi is well added to the browser.
I've tried to open mozilla before and after UFT One, I've also restarted my computer, I've checked the size of the screen browser is 100% and that in the Record and Run Settings the option " Record and run on any open browser" is checked for Web.
This situation usually occurs because the company's IT department has changed the related policy, causing the UFT Firefox extension to fail to run normally.
You can check if the HP.UFT.Firefox.NativeMessagingHost running in Windows task manager after openning Firefox while the extension is enabled, and check if the Micro Focus UFT Agent content script loaded in Firefox debugger's Sources tab(note: you need to check the "Enable browser chrome and add-on debugging toolboxes" in Web Developer Tools' Setting firstly).
If one of these things does not exist, you should check the policy change with your IT: did they block the related thing running?
If they all exist, you can open a CPE case to UFT One support. They will help you to do the further investigation.
I have checked that I had the same problem with chrome browser, so not an Extension problem.
Finally I have decided to uninstall and reinstall UFT One, but while uninstalling an error appeared and UFT persisted on the system.
After two trys I have launched UFT One and it has started working again.
I am not sure how long it will work.
When I try to debug it shows this dialog:
Error dialog
And when I clock "fix" It shows this:
Web Browsers dialog
I can't solve this problem, any suggestion? Also I am developing a react native app. But i don't think that's the problem...
I am running Intellij Idea in Elementary OS.
This is expected - debugging is only supported in Chrome and browsers of the Chrome family, as it's clearly stated in Help. So, when you start the debugger, the IDE will try to open Chrome regardless of the browser chosen in run configuration. You need to make sure that Chrome is installed and the correct path to it is specified in Settings | Tools | Web Browsers.
We used to support Firefox Remote Debugging (but without source maps) through the FireFox Remote run configuration, but our solution doesn't work in the latest Firefox versions due to changes in the protocol, and there doesn't seem to be an easy way to fix it. We've made some progress recently, but there are still some blocking issues
related ticket: WEB-45986
I have a question regarding Selenium and the current Microsoft updates:
I just installed the newest Microsoft patches on a PC and now the Selenium scripts won't work anymore. I'm using the Selenium IE Driver 2.44.0 in the scripts. Maybe something has changed in the Internet Explorer, I'm not sure. Suddenly the scripts can't find any web elements on the page anymore. An InvalidSelectorException is thrown because the findElements methods can't be executed. The IE driver opens up and it navigates to the given URL, but when it tries to find a web element, the script fails. I also tried it out on a PC which hasn't the newest updates installed yet and the scripts are working fine there, there are no problems at all.
Do you have any ideas what to do or what could be the cause?
Thanks a lot!
Yes as I stated here
If you have taken windows update KB3025390 IE will not work as expected. There is currently no resolution to that yet.
Also, Uninstalling the update KB3025390 should make the WebDriver work correctly with Internet Explorer 11. See this answer
I'm trying to run my code in some browsers. It works fine in Firefox and Opera, but in IE9 and Chrome it only works fine the first time.
After, when I want to run this code or another again it shows me the next warning:
"Resource interpreted as Script but transferred with MIME type text/html:"http://www.superfish.com/ws/sf_main.jsp?dlsource=dropdowndeals&userId=RR8BRgZAQDCRcXxJEAgX1g&CTID=1049999"."
However, if I delete the cache of the browser and run the code again, the code run without problems, but only the first time of course.
This problem is only on Google Chrome and IE9.
Do you have any suggestion, please?
Thanks!!
I ran into this on a users machine. It looks like it's AdWare that tries to parse the script tag, but doesn't like it when the type isn't javascript. If you use AdBlock or similar for the browser it should work, but this is just covering up the problem.
The end game would probably be to remove the adware completely.