Can latency measurements like screen loading time, completion time/reaction time/response time of any operation(like opening a URL, tapping on a button, deleting a message, navigating to the next screen) be done using MonkeyTalk?
If it cannot be done using MonkeyTalk, are there any other open-source tools which will be helpful in this regard?
Your help will be much appreciated.
Thanks.
Yes, MonkeyTalk has modifiers such as thinktime and timeout to wait until a component is visible to continue.
See here and here for the documentation on those.
Related
I've a small Extension which keeps checking for some data on a website.
On specific event it plays a sound file using:
document.getElementById("audio-beep1").play();
However practically this page isn't the foreground page since I'll be working on some other tab so this sound does not play even though event is detected.
So as I click this tab - sound plays.
Is there any way the sound will play on event even if the tab isn't the foreground one?
Google added an update in the past ~6 months or so, a The Great Suspender knockoff called "Tab Freezing" and "Tab Discarding."
That's why you can't play audio in a background tab. Google has suspended the tab without telling you. It's also why the second you click the tab, it starts playing the audio -- the tab is unfrozen, and re-loaded. This is proving to be a nightmare for one of my clients, as they use Incontact MAX, and if Chrome gets a chance, it simply wrecks the VOIP system.
I do not have a solution for you. Google, in their great and unending wisdom, decided this feature does not need any ability to be configured, disabled, or anything of the sort. Nor did they ask you if you wanted this function to be enabled. Truth be told, they appear to be very embarrassed about the unholy amounts of RAM that Chrome uses, and this is their kludge filled workaround.
(You were once able to disable this feature in chrome://flags but they have removed it from said window, and did not add it to the settings menu.)
And no, telling Chrome not to auto discard in chrome://discards does not actually stop it from doing this.
One suggestion I've heard is looping an audio file that is either not making any noise or so quiet it cannot be heard -- like a 1 second loop of dead air. This might trick Chrome into not freezing or discarding the tab, as it's actively playing audio. No idea if this will work. Another I'm planning to test out is using The Great Suspender on the background tab, and seeing if that prevents Google's thing from working.
Playing sound may do the trick, as tab playing sound is an active tab - but it's an ugly hack and consumes resources unnecessary.
Apparently as of now (12.07.2021) you can Disable tab freezing by this setting: chrome://flags/#calculate-native-win-occlusion
Set it to Disabled and tabs freezing should not happen any more. Here is a source
Any ideas about how to create a splash screen for my application using Python3 and PyGObject ?
For example : Like the GIMP's slpash screen.
In my case, i used time.sleep(...) and it makes my application start very slowly. I'm wondering if should i thread the slpash screen Gui.
I've searched in websites and i didn't find any solution.
Thanks for your answers. And sorry for my bad english.
create a window
will it with your content
open it
force it to show
set a timeout to close said window at a later time
proceed with initialisation
There are examples out there, e.g. http://code.activestate.com/recipes/577919-splash-screen-gtk/
While working with eXist, once I have written the query, I have to grab the mouse, point the Submit button and click it. I think this is a great lost of time if you have to do it thousands of times. Moreover I'm very used to do it with the keyboard in other programms I use.
Does anybody how to do it? Thanks
If you're using eXist-db's web-based code editor, eXide, you can submit queries using the CTRL+Enter shortcut (or Command+Enter on Mac). It works quite well.
I read many post on the subject but there is no concrete answer I found: is it possible to trigger F11 on internet browsers or somehow make browser to go into full screen? there are a lot of workarounds, but none of them are real full screen.
Thanks
Because you didn't specify the OS (and if the webbrowser is embedded) i can only give you this answer.
You can send a key with a sendkeys 'interface', it emulates a keypress, for example 'F11'.
More info: google sendkeys
Maybe this answer can lead you into the right direction.
What's a good text editor in Windows that automatically updates the view whenever the opened file has been modified by another process? I need this to watch the output of my program.
If you like using a mouse, Notepad++ is great
If you're happier with the keyboard, for me, it has to be Emacs. Here's the download for Windows.
To use the feature in Emacs, add the following to your .emacs:
(global-auto-revert-mode t)
There are lots of people at work who like Textpad but I don't understand why, it doesn't even have column editing.
Notepad++ has this feature.
If you want to reload automatically, go to Settings / Preferences, then the MISC tab and uncheck Update silently under File Status Auto-detection.
What I use is snaketail. It can update in real time several files, even without the focus.
I would recommend Notepad2. It refresh the content automatically without focus switching. You just need to go to menu 'Settings' and set 'File Change Notification...' option, and then save your settings. But keep in mind, refresh has a delay about 2-3 seconds.
Editplus is great.
This doesn't really answer your question, but it sounds like what you really want is some kind of console view, not a file. Would it be possible to pipe your program's output into an output stream that's visible in a console instead? Those are designed to show new lines as they arrive, automatically scroll, etc.
See the Viewer (F3 option) in FAR file manager, when End button is pressed, it updates and scrolls text automatically
Use Tail For Windows.
Tail doesn't need to have focus on.
I've got it from superuser.com answer.