I have this code:
FileDownloadHandler handler = new FileDownloadHandler(fileName);
Browser.AddDialogHandler(handler);
//using (new UseDialogOnce(Browser.DialogWatcher, handler))
//{
Browser.Button(Find.ById("ButtonExportReport")).ClickNoWait();
handler.WaitUntilFileDownloadDialogIsHandled(20);
handler.WaitUntilDownloadCompleted(30);
Console.WriteLine("download finish: " + handler.HasHandledFileDownloadDialog);
//}
Browser.RemoveDialogHandler(handler);
And when I call Browser.RemoveDialogHandler, Internet Explorer 7 crashes with the message:
"no installed debugger has
just_in-time debugging enabled"
(I don't know how to debug IE7 because I only have the CLR debugger which can debug only managed code)
Do you know what I should do ? Any path where I should look for information ?
Thanks
EDIT1:
In fact the error is not caused by the .RemoveDialogHandler
I added
ZvLogManager.Info("start wait");
Thread.Sleep(10000); // wait 10 seconds
ZvLogManager.Info("end wait");
just before the .RemoveDialogHandler, and I get the error message of IE between the "start wait" and "end wait".
So it is file download that makes it crash after 5 seconds. Any idea ?
EDIT 2:
I enable the logging in WatiN and I get:
[Action]: Clicking (no wait) Button 'ButtonExportReport',
[Action]: Clicking on '&Save'
[Action]: Clicking on '&Save'
[Action]: Download started at 4:21:13 PM
[Action]: Clicked Save
[Action]: Saving Download file as c:\temp\export_file634296648679859966.xls
[Action]: Clicking on '&Save'
[Action]: Clicking on 'Close'
[Action]: Download complete at 4:21:17 PM
INFO download finish: True
INFO start wait
INFO end wait
This is not very helpful...
I finally install VS on the server where IE7 was crashing in order to debug IE (!!!). I get an exception: "Unhandled exception in iexplore.exe Access violation reading location"
After googling it, I found this website and it proposes me to reset all settings: Options -> Advanced -> Reset Internet Explorer Settings.
And I have no more crash !
Related
My system opreater is ubuntu18.04,and when i use two screens,and log in my account,it not showing my desktop,instead of the errorenter image description here
But when i shut down the second screen,it will be working with no problem.
I followed this tutorial to install the Wiris plugin on a new installation of Drupal.
Once the installation was complete and I clicked on the Wiris icon to begin adding a formula, the popup window does NOT load and I get the following error in the console area:
Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin '/DrupalQuiz/sites/all/libraries/ckeditor/plugins/ckeditor_wiris/' in a call to 'postMessage'.
at http://*.*.*.*/DrupalQuiz/sites/all/libraries/ckeditor/plugins/ckeditor_wiris/core/core.js:19:22
The code causing the problem is as follows:
e.source.postMessage(postVariable, _wrs_conf_path);
I'm at a loss how to deal with this issue.
I don't have a complete fix but I was able to get it working locally by replacing _wrs_conf_path with the base path of my dev box. _wrs_conf_path was evaluating to a relative path to the plugins folder.
if (typeof(e.source) != 'undefined') {
e.source.postMessage(postVariable, _wrs_conf_path);
}
with
if (typeof(e.source) != 'undefined') {
e.source.postMessage(postVariable, _wrs_currentPath);
}
in the /sites/all/libraries/ckeditor/plugins/ckeditor_wiris/core/core.js file.
Edit: I replaced _wrs_conf_path with one of their internal variables _wrs_currentPath and that seemed to fix the issue.
My Jdeveloper is continuously prompting me with this error popup window.
The error details is as follows:-
The details of the error message is as follows:-
Exception while updating action Block Selection
java.lang.NoClassDefFoundError: oracle/javatools/editor/EditorSelectionColumns
o.i.ceditor.CodeEditorController.update(CodeEditorController.java:462)
o.i.controller.IdeAction.updateAction(IdeAction.java:787)
o.i.controller.IdeAction.updateAction(IdeAction.java:749)
o.i.view.View.updateAction(View.java:390)
o.i.view.View.updateToolbarActions(View.java:384)
o.i.view.View.updateVisibleActions(View.java:214)
com.oracle.jdeveloper.nbwindowsystem.NbMainWindow$UpdateVisibleActions.fireUpdate(NbMainWindow.java:1794)
com.oracle.jdeveloper.nbwindowsystem.NbMainWindow$UpdateVisibleActions.actionPerformed(NbMainWindow.java:1779)
jx.s.Timer.fireActionPerformed(Timer.java:313)
jx.s.Timer$DoPostEvent.run(Timer.java:245)
j.a.event.InvocationEvent.dispatch(InvocationEvent.java:311)
j.a.EventQueue.dispatchEventImpl(EventQueue.java:756)
j.a.EventQueue.access$500(EventQueue.java:97)
j.a.EventQueue$3.run(EventQueue.java:709)
j.a.EventQueue$3.run(EventQueue.java:703)
j.security.AccessController.doPrivileged(Native Method)
j.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
j.a.EventQueue.dispatchEvent(EventQueue.java:726)
o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
j.a.EventDispatchThread.run(EventDispatchThread.java:82)
I cant figure it out what is the problem. It worked few times by cancelling the pop up. But I think it's better to find a solution for it.
This is a fairly regular screen in jDeveloper, I get it at least twice a day. I click save and exit (which does nothing) and continue working.
I am having an issue with entering text into the address bar nothing happens and I get the error
selenium.common.exceptions.WebDriverException: Message: Can't load the
profile. Profile Dir:
/var/folders/8_/f48lnzrs7r59_h2yb3dkfbh40000gn/T/tmpsGffLD If you
specified a log_file in the FirefoxBinary constructor, check it for
details.
I am able to open the browser but when I uncomment the code browser.get('http://www.google.com') nothing happens and I get the error listed above. I am using Firefox 48, Python 2.7.10 and selenium-2.53.6-py2.7.egg
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://www.google.com')
Change that line to
browser.url('http://www.google.com')
OR
browser.open('http://www.google.com')
I'm trying to automatically run an r script to download a private Google Sheet every hour. It always works fine when I'm interactively using R. It also works fine during the first hour after I automate the script with launchd.
It stops working an hour after I start automating it with launchd. I think the problem is that after one hour the access token changes, and the non-interactive version isn’t waiting for the auto refreshing of the OAuth token. Here is the error that I get from the error report:
Auto-refreshing stale OAuth token.
Error in gzfile(file, mode) : cannot open the connection
Calls: gs_auth ... -> -> cache_token -> saveRDS -> gzfile
In addition: Warning message:
In gzfile(file, mode) :
cannot open compressed file '.httr-oauth', probable reason 'Permission denied'
Execution halted
I'm using Jenny Bryan's googlesheets package. Here is the code that I initially use to register the sheet, and then save the oAuth token:
gToken <- gs_auth() # Run this the first time to get the oAuth information
saveRDS(gToken, "/Users/…/gToken.rds") # Save the oAuth information for non-interactive use
I then use the following script in the file that I automate with launchd:
gs_auth(token = "/Users/…/gToken.rds")
How can I avoid this error when running the script automatically with launchd?
I don't know about launchd but I had the same problem when I wanted to run a R script automatically from the Windows task planer. Changing the 'cache' attribute value to FALSE did the trick for me [1]: https://i.stack.imgur.com/pprlC.png
You can find the solution here: https://github.com/jennybc/googlesheets/issues/262
To authenticate once in the browser in order to get a token file, I did this:
token_file <- gs_auth(new_user = TRUE, cache = FALSE)
saveRDS(token_file, "googlesheets_token.rds")
Automatic login afterwards via:
gs_auth(token = paste0(path_scripts, "googlesheets_token.rds"),
verbose = TRUE, cache = FALSE)