When I try to run following function on chrome.
window.find("text",false,false,true,false,false,true);
according to the documentation here
https://developer.mozilla.org/en-US/docs/Web/API/Window/find
and here
http://help.dottoro.com/ljkjvqqo.php
This is supposed to show the search Dialog box.
I have tested. It works with firefox but not with chrome.
Any possible solutions?
Related
I am trying to enter keystrokes(TAB) in my script.
I have used the following code:
browser.actions().sendKeys(protractor.Key.TAB).perform();
This is working in chrome but not working in firefox browser.
browser.actions().sendKeys(protractor.Key.TAB).sendKeys(protractor.Key.ENTER);
browser.actions().sendKeys(protractor.Key.TAB).sendKeys(protractor.Key.RETURN);
These 2 approaches are not even working in chrome also.
I need to run my script in firefox with entering keystrokes. Please help me...
Try to init some element on the page and send the key chord to it.
element(by.id('<visible element on the page>')).sendKeys(Key.chord(protractor.Key.TAB, protractor.Key.ENTER));
or try with browser actions:
browser.actions().sendKeys(Key.chord(protractor.Key.TAB, protractor.Key.ENTER));
I need to prevent the scroll caused by focus().
For this purpose, I found that if I use element.focus({preventScroll : true}) instead of element.focus(), it works fine, based on the documentation from mozilla.
However, this only works perfectly on Chrome but not in Firefox.
I'm wondering how could it be not supported by FireFox, when the documentation has been done by Mozilla.
Am I missing something here?
Focus method documentation by Mozilla
firefox version: 34.0.5
Recently I am using the mouseaction function of protractor. All worked fine on chrome. But when I tested them on firefox, most specs failed.
The first condition:
browser.actions().sendKeys(protractor.Key.DELETE).perform();
This action does not work on firefox.
The second condition:
when I want to right click an element, usually I use this:
browser.actions.click($(#id)).perform();
browser.actions().click(protractor.Button.RIGHT).perform();
This does not work well on firefox. It will not right click on the selected element, but somewhere else.But it has actually done the right-click action. I found a similar issue which has the same condition with me. Protractor click svg element breaks on latest firefox(v.34)
Would you please help to check these two issues? Thanks in advance.
I'm using this script since years in an old website. Now it's no more working with Google Chrome, but it's ok with Firefox and IE.
If you open that site, you'll see a yellow box. With Firefox and IE it's populated with strings or images scrolling, while with Chrome it remains empty. Can anyone explain why?
see https://stackoverflow.com/a/18444795/420006
.load doesn't appear to be valid in Chrome
I have made a simple embed of slideshare on my site. However, on Internet Explorer, it keeps saying "Loading" and nothing appears. However, in Firefox its almost instant. Please try here using internet explorer.
Or is it just me? It makes use of Flash and Javascript.
What can the problem be?
Thanks all for any hellp
This page works fine in IE9 at least, and the content you say is broken was written in Flash. You might want to watch your HTTP traffic using Fiddler (www.fiddler2.com) and check for script errors using IE's developer tools (hit F12).
I've check it in Chrome, Firefox, IE6/7/8 and they all seem fine. I haven't checked it in Opera or Safari though.