Internet Explorer Open New Tab Showing Downloads - selenium

I'm using Selenium for a web automation task that would download files and only close the web driver when the downloads have finished. I have implemented a way to scan the downloads in progress for Chrome and Firefox by opening a new tab, going to their respective downloads manager URLs and finding web elements of all the downloads of the current web driver instance. For Chrome the downloads manager URL is: 'chrome://downloads/' and for Firefox: 'about:downloads'.
Is there a similar way I can do this for Internet Explorer? The only downloads list I've seen for IE is a separate window which I cannot access with Selenium.

I'm not sure if this will work for all downloads, but here is the idea:
Read the content of the folder where the downloads are stored
If the file size is zero 0kb, the download is still in progress.
Tested with a 5GB file on http://www.engineerhammad.com/2015/04/Download-Test-Files.html

Related

Powerbuilder 17 Microsoft web browser

I am using powerbuilder 17 and having microsoft web browser control. I have placed that control on one window and trying to open pdf file which is present in my local path.
I want pdf file to be opened inside web browser control. But it is opening in chrome instead of browser. I have tried navigate as well as loadfile function.
When tried to open http link then it is working fine. It is opening in powerbuilder control itself.
Please assist if I am missing anything.

Google Drive Contents are not getting displayed when open with selenium on Chrome Browser

[Gdrive Issue with Selenium Chrome Browser]1
Configuration Details:
Chrome Version Version 72.0.3626.96
Chrome Driver Version 2.43
Selennium WebDriver 3.11.0
Issue Description:
We are able to successfully launch Gdrive with Chrome browser using selenium webdriver till 7 Feb 2019. But now other all apps like Gmail , Google hangout activities working fine on same browser but when opening google drive after page loading we are not getting content of page , We are not able to create folder, Not able to upload file. Only search file working.
Gdrive has some new script introduces as
No i don't think that it has to work, it has some Prerequisites for Integration to automate google drive you can also automate google drive api if you want i have shared the link with you it will help you to how to automate google driver or API
https://www.cigniti.com/blog/integrating-selenium-with-google-drive/

Can't upload file from browser. RobotFramework, Selenium + Autoit on remote host

I have read many posts with similar problem but I didn't find any solution.
In my tests I'm uploading some files - after click on button in app in browser system shows window 32770 (opening or browse). I'm using AutoIt library for RobotFramework to handle upload action by this system window. Everything works perfectly until I run it on remote hosts (windows slave computer) and terminal's screen is covered.
Has anybody met and solved such an issue?
The most common way of uploading files with Selenium2Library is to use the Choose File keyword, which bypasses the need to interact with a popup dialog.
Please use this
choose file(locator,Path)
locator: Location of element where you click to upload image
Path: Path of image
Put your image is working directory.

IE 10 not using AppCache after browser closed

I wrote an application using the HTML5 Cache Manifest and I'm having a problem using it in IE 10.
I used Fiddler to witness the manifest file being downloaded and all resources fetched on the initial load of the application. If I disable my network adapter to force the machine offline, the application continues to work as expected as long as I don't close the browser window.
However, when I close the browser window, then attempt to re-open the page from a favorite, IE 10 tells me "You're not connected to a network". Obviously I know that, I'm trying to use the app offline. These exact steps work in Chrome.
Is this behavior by design? Is there a workaround? I can't test with IE 11 right now...is this different in IE 11?
Hearing of some issues of the appcache clearing if your company utilizes gpo settings and has "empty temporary internet files folder when browser is closed" enabled.
Did you find the answer to this? I have the same problem. I did get a bit further though. I found that if you go to the IE10 File menu option and tick Work Offline then try and access your cached app it loads the page but I still have an issue as it does not appear to be using the javascript file that should also be cached. All works ok on Google Chrome but our clients are restricted to IE so Chrome is not an option.

How to open a website with google chrome

I am making a desktop search app. I need a way to set the web browser target to Google Chrome. I.e., if a person clicks a button in my app it will open Chrome with the website instead of Internet Explorer.
run the chrome exe with a url as the first arg
chrome.exe xkcd.com
So something like...
Process.Start("pathToChrome\\chrome.exe", "xkcd.com")