I am trying to maximize a desktop application with robot framework. I read somewhere that i could use key combinations Windows + Up Arrow but how do i implement it ? Can someone share the code for it please ?
You might use the PyAutoGui library for this.
import pyautogui
def maximize_window():
pyautogui.hotkey('win','up')
and import this function as a library to your Robot Framework file.
Maybe pressing F11 (pyautogui.press('f11')) might also work, instead of Windows key + Up.
Related
I am working on test automating a qt 5.5.1 - qml Application on an embedded device.Is it possible to do on Selenium - qtwebdriver? If so I would first like to try it on the Desktop and then on the device.
Does anyone know of a tutorial of how a basic qt qml Desktop application is automated?I couldn't find it online.Pardon my noobness. Thanks in advance!
Yest it is possible.
Check some example selenium tests here : https://github.com/cisco-open-source/selenium/tree/master/java/client/test/org/openqa/selenium/qtwebkit/quick_tests
To run these tests check https://github.com/cisco-open-source/qtwebdriver/tree/WD_1.X_dev/src/Test: (main.cc is the main class to run, the *DeclarativeViewTest.cc are the test applications)
you can start from wiki: https://github.com/cisco-open-source/qtwebdriver/wiki/Hybridity-And-View-Management
I just started looking into TideSdk and noticed that when I "compile" (or package) a project (in Win-7), I get all of these dependecies which is actually the un-compiled source code for the app.
Is there any way to:
Have Tide SDK package a file to one executable
Not have the source code visible in any way, shape, or form in the final executable?
If none of those are possible, is there an alternative that can to these things?
We are working on a solution. There are a few possibilities. The only thing that is possible currently is to obfuscate your code using google closure library through a tidebuilder option.
I found this on google when trying to do something similar. It is annoying but seems to work.
http://coffeecone.com/post/36127491095/howto-single-exe-for-tidesdk
I use the application virtualization app Cameyo for this purpose. http://www.cameyo.com/
I need to integrate an editor into a window/dialog in my PyQt4 application.
It needs to support syntax highlighting for Python, Java and C++. It should run under Linux and ideally windows.
What would you suggest and where can I find the API and instructions?
I was thinking about Katepart, but I can't find instructions for it.
http://www.riverbankcomputing.co.uk/software/qscintilla/intro
http://www.riverbankcomputing.co.uk/static/Docs/QScintilla2/index.html
http://eli.thegreenplace.net/2011/04/01/sample-using-qscintilla-with-pyqt/
I need to trigger a phone call from a Qt application. I looked to previous post without find a complete answer.
I need to make it with qt 4.6.3. I'm quite new to symbian development, I'm using the last nokiaSDK.
It MUST work ONLY on n97 and E71.
Can Anybody provide a solution?
May be a solution exec an extenal process using QProcess?
It seems like currently none of Qt APIs (including QtMobility) allows to do it. However, you can use native Symbian C++ API - CTelephony class. There are some examples showing how to make a phone call using this class. The obvious disadvantage is that it won't work on any other platform than Symbian.
You may be interested in this example: http://library.forum.nokia.com/topic/Qt_for_Symbian_Developers_Library/GUID-B4DA6005-3037-4FF8-82D5-BA748532E648.html#GUID-B4DA6005-3037-4FF8-82D5-BA748532E648. It shows how to mix Symbian C++ code with Qt code, and it also uses CTelephony, so you just need to change method call from GetPhoneId() to DialNewCall(). Don't forget to add appropriate library (etel3rdparty.lib) in your .pro file.
We'd like to have an app autorun when our clients put in our info CD.
Is it possible to do this using Adobe AIR... We were thinking of using the Flash Projector cause it compiles to an .exe which is easily launched, but there's no way to get rid of the ugly window chrome is there?
AIR Apps have to be installed right?
Thanks
It isn't going to work with AIR, but there are numerous Flash projectors that would work. AIR needs the runtime and has to be installed.
I had the same requirements and ended up using zinc. You can't get an AIR app to launch without installing it (much assuming that the user has the runtime in the first place) but zinc allows you to do so AND deploy to multiple environments like AIR with custom chrome if need be...Good Luck!
You can't do it with AIR. In fact that was one of the key design points of AIR, that you couldn't do automatic execution.
You can theoretically do it with a .EXE projector file, but it requires some fancy footwork, and I don't think you can output Flex to Projector.