Handling IFrame using Watir WebDriver - iframe

Wanted to know how do you handle iframe using Watir WebDriver.
I am trying to automate a SalesForce based app which runs in a console mode.
All the GUI elements of the web applications are within iFrames.
The issue we are facing is the automated tests run perfectly fine in case of FireFox but when we try to run the same scripts in Chrome (using ChromeDriver ChromeDriver 2.20) the user action of selecting links within iFrames are not being performed.
Any idea if this is an issue/bug with the Chromedriver 2.20 being used.
Thanks,Umesh

Related

Running a Playwright Test that interacts with Maptile Headless, when running headless the map does not render

When running a Playwright Test that interacts with a page with Maptiles in a Headless browser, the map does not render
I've tried these without any success
passing --no-sandbox to chrome
passing --disable-gpu to chrome
setting preserveDrawingBuffer={true} inside of ReactMapGL
I'm open to any ideas

Does using a headless browser with rselenium significanly faster?

I'd like to know if using a headless browser, (such as phantomJS) with RSelenium significanly faster than running scripts with a regular browser (such as chrome)? Also driving it directly or using a selenium server ?
Is there a short function to check/plot difference in speeds?

remote webdriver: Element is not currently visible and so may not be interacted with

I use JAVA + WebDriver (Thucydides) and Maven.
I'm trying to automate uploading of a file. If I launch test manually from IDE it passes, but when I launch it with Maven on Remote WebDriver the test fails halfway with the error:
net.thucydides.core.webdriver.WebdriverAssertionError: Element is not currently visible and so may not be interacted with
The browser is FireFox.
Thanks.
Look at screenshot in Thucydides report. It seems that your element is really not visible.

Is it possible to run browsers in headless mode in a windows box?

I'm writing tests using webdriver in Java.
Is there a way to run browsers (ff / ie) in headless mode in a windows box?
I cant use a linux box and HtmlUnitDriver is not helping as our webapp has many ajax controls.
I have started a small project to supply a driver for WebDriver using SimpleBrowser. You may want to check it out: https://github.com/Teun/SimpleBrowser.WebDriver
It's still early days though. I would appreciate help in the form of contributions and testing.
At this point there is no headless version that I am aware of the Firefox or IE. Since Firefox is open source it's possible that you could get the source code for that browser and then remove the UI portion but there are a few problems with it that I can see. First you have to build a custom app to setup your own load testing engine. Second you are locked to one web render, though I think chrome is open source as well but it doesn't play as nicely as Firefox or IE (using the system .dlls vs. a custom executable). Third without a lot of testing I am sure there will be stability issues and potentially other unforseen issues with this option. That being said there is a .net headless browser that's fairly simple and would probably be decent for load testing called simple browser. However it depends on what you are wanting to load. If you just looking for bandwidth and server load then you should be find using multiple instances of the browser. I would be curious to know if using the headless browser in this fashion if you instantiated different WebDriver if it would play nicely. i.e.
WebDriver driver1 = new SimpleBrowser();
WebDriver driver2 = new SimpleBrowser();
.
.
.
.
.
WebDriver driver[n] = new SimpleBrowser();
and then you could run [n] parallel tests. Also of note in the above code SimpleBrowser() doesn't hook directly to the WebDriver interface you would have to Extend the interface to reference that .dll
Start the test program as a Windows service and the browsers will run just fine, even on a machine with no monitors. Technically speaking, they're running in a "session" that is disconnected, but it's essentially what you mean by "headless".
HtmlUnitDriver does support ajax, and can run in both java and c# (if ported via IKVM).
There is, however, no way to run IE and FF in headless mode. I can't tell you how many times I've wished for that...

ASP.NET MVC 3.0 deployed code not working in IE8 in IIS 7.5

I have an ASP.NET MVC 3 app. It is working fine in both IE8 & FF when we run VS2010. I have deployed this code in IIS 7.5. Now, the deployed app is working fine in FF, but not in IE8. I am getting error:
Stop running this script?
A script on this page is causing Internet Explorer to run slowly...
See following screen-shot:
I tested the published code in IIS6, It's working fine in both FF and IE8.
Any help is appreciated.
You are probably using some javascript which is entering a loop of some sort (possibly recursion)
Either comment out one function at a time to see which function is the culprit, or do it in binary-search fashion and comment out half at a time to narrow it down.
Finally, is there something out of the ordinary about your page? If the your javascript (or one of your libraries) was not the culprit, start ripping out chunks of your code to narrow the problem down.
Unfortunately there is not a quick answer to this one...
There are various ways to try to determine what's going on with your JavaScript. Try reloading the browser. You can also try downloading the Ajax profiling bits at
http://archive.msdn.microsoft.com/AjaxView
This can help determine your slow functions. You could also load up the JavaScript debugger and break into the code as well
What nonstandard javascript libraries are you running? Any?
Since your app runs differently seemingly only based on iis version differences compare a session on one to a session on the other using 'Fiddler'

Resources