browser « selenium « Java Testing Q&A

Home
Java Testing Q&A
1.Development
2.FindBugs
3.HTMLUnit
4.hudson
5.junit
6.performance
7.plugin
8.profile
9.selenium
10.Tools
11.unit test
Java Testing Q&A » selenium » browser 

1. Handling browser pop-up windows with Selenium    stackoverflow.com

We are running Selenium regression tests against our existing code base, and certain screens in our web app use pop-ups for intermediate steps. Currently we use the commands in the test:

// force ...

2. Any suggestions for testing extjs code in a browser, preferably with selenium?    stackoverflow.com

We've been using selenium with great success to handle high-level website testing (in addition to extensive python doctests at a module level). However now we're using extjs for a lot ...

3. What do you use to test your browser extension / BHO?    stackoverflow.com

What are the best approaches / tools to test browser extensions? In my case I work on an IE Browser Helper Object (C#) which has a small UI of its own and ...

4. Selenium browser detection    stackoverflow.com

Good morning I have been running a few tests over the past couple of weeks and I have come up against a bit of a wall. I am testing in IE 7 and ...

5. Is it worth the effort to write tests that work with the browser (like using selenium or something)?    stackoverflow.com

It's pretty clearly worth it to write tests for stuff that happens on the server side, but I've heard that it is really hard to write unit test for UI stuff ...

6. Detecting Presence of Horizontal Scrollbar in all browsers    stackoverflow.com

I'm testing a web application. This web application should never have a horizontal scrollbar (as it resizes automatically). I want to test whether or not the horizontal bar exists (it should ...

7. How to get Selenium and TestNG to open one browser to run tests in multiple classes    stackoverflow.com

I am using Selenium with TestNG to test a website. I have created tests using the Selenium IDE and exported them to TestNG with each test being a method in a ...

8. How to close a browser on a selenium RC server which lost it's client    stackoverflow.com

suppose a client starts a selenium session on an RC server, but at the middle of the session the client "went away". The browser will remain open, and eventually, after enough ...

9. Automated testing of rendering in browsers    stackoverflow.com

Can Selenium or any other automated tool check for the proper positioning of elements on a web page? For example, when you look at OnStartups.com in IE 6, the main content that ...

10. Selenium - Can I hide the browser?    stackoverflow.com

I am using Selenium RC to automate some browser operations but I want the browser to be invisible. Is it possible with Selenium RC. If yes, then how and if not then ...

11. is it possible to read something.properties using javascript ? (in a .hta file) >> to read in Selenium    stackoverflow.com

I am using Selenium to do testing, We write our test cases in html files and make test suites out of them, our requirement is to write test cases that are robust enough ...

12. Heightened privilege selenium browsers on Windows 7 (x64)    stackoverflow.com

I make use of *firefox and *iexplore etc. within my selenium tests to get around the issue of self-signed SSL certificates on my local machine. Unfortunately, now that I've moved from ...

13. How to set the browser locale for Selenium tests running in Java?    stackoverflow.com

I've been looking for a while and still haven't found anything. When I run my Selenium tests from within Eclipse, it opens up a Firefox ...

14. selenium-RC: what is the best way of clearing the browser without restarting it    stackoverflow.com

I'm running many tests (on FF) one after the other and I would like each test to start off with a fresh browser (ie no cookies, no cache,..). One idea is ...

15. How to delete Firefox Cookies and cache while program runs on Selenium Grid    stackoverflow.com

I am running Selenium Grid and most of my Scripts fails due to unable to delete FF cookies. Each testcase needs to delete browser cookies .If any one aware of this please ...

16. List of Selenium RC browser launchers    stackoverflow.com

I am trying to find a full list of Selenium RC browser launchers. So far I've not been able to find any documentation that lists them all. I've gathered the ...

17. Selenium tests and continuous integration (Running browser in background)    stackoverflow.com

We have Xserver-less CentOS system for continuous integration. So no UI. I want to run selenium test cases on it. I am using new Alpha version of Selenium2 which has WebDriver ...

18. How to use browser options in selenium?    stackoverflow.com

I have a browser which takes certain parameters as options as shown below.

testbrowser.exe -id=test -url=http://www.google.com/.
Below is my selenium code.
selenium = new DefaultSelenium("localhost", 4444, "*custom "+testBrowser+" -id=test -url=", "http://www.google.com/");
selenium.start();
selenium.open("http://www.yahoo.com");
When i execute this ...

19. Using WebKit GTK-Launcher as custom browser with Selenium-rc    stackoverflow.com

How do we use WebKit-Gtk-Launcher as a client custom browser. I am using java as language + scripting. I have used the following api for the setup. setUp("http://localhost:4444/", "*custom /home/shashidhar/WebKit-r60144/WebKitBuild/Debug/Programs/GtkLauncher"); Using this it opens only ...

20. How to close or minimize browser windows with Selenium RC?    stackoverflow.com

Every time I launch a Firefox instance via Selenium RC I get 3 windows that I don't need appearing:

  • the add-ons windows notifying me that "3 new add-ons have been installed" (since I'm using ...

21. In Java, starting a test in selenium with the DefaultSelenium object how do I find which browser the test is running on?    stackoverflow.com

Consider a simple DefaultSelenium object

DefaultSelenium sel = new 
      DefaultSelenium("http://localhost:8080/myapp",4444,"*iexplore","/myAppLevel1");
Now my server is set with the option of -forcedBrowserMode "*firefox" in the command line when I ...

22. How do I pass control of a browser from one selenium java client to another?    stackoverflow.com

Good day, I have some scripts (in fitnesse) that executes some selenium commands. However, there are some processes wherein it would be too complex (or hackish) with a plain selenium (+fitnesse) approach, ...

23. Can Selenium verify text inside a PDF loaded by the browser?    stackoverflow.com

My web application loads a pdf in the browser. I have figured out how to check that the pdf has loaded correctly using: verifyAttribute xpath=//embed/@src {URL of PDF goes here} It would be really ...

24. Selenium RC: Running browser on another X11 desktop    stackoverflow.com

I'd like not to be disturbed by the browser that is launched by Selenium RC. Is there any way how to force it to run the browser on another X11 desktop? ...

25. Driving multiple browsers that interact with eachother    stackoverflow.com

We have a complex web application which uses a lot of JavaScript along with XMPP and a Rails application. It has come to the point where we need to test the ...

26. Selenium RC, on Linux, is there a way to make all browser instances run in the background?    stackoverflow.com

I've been looking into this, as far as how I can run selenium browser instances in the background. I found some things about using a virtual GUI instance, or something like ...

27. screen shoot of the chrome browser using Selenium2 in java    stackoverflow.com

I am trying to take the screen shoot of the chrome browser using Selenium2 in java.Here is my code and the error i am getting

try
{
    driverC = new ...

28. Using Selenium to test on multiple versions of browsers    stackoverflow.com

I was wondering if anyone is familiar with testing different browser versions using selenium. I know that you can specify which browser to test (using *firefox or *iexplore) but what ...

29. selenium rc + c# how to handle the timed out problem after runned a new browse?    stackoverflow.com

all When I learned the selenium rc how to use selenium.click to open a new browse, I have met a problem. The new browse can be opened correctly, but the test tool ...

30. Unable to run html suites in other browser except Firefox Using selenium RC    stackoverflow.com

I have problem in running test suites in other browser using selenium RC. I have a test suite which is exported from Selenium IDE. I am intending to run 5 tests ...

31. Selenium Browser session issue    stackoverflow.com

The selenium server version I am using is 1.0.3 and the selenium client version is 1.0.1. The ANT version used is 1.7.1. I need to run the selenium tests in a DTE ...

32. How does Webdriver / Selenium "talk" to your local web browser?    stackoverflow.com

For example with FirefoxDriver, how is it sending out clicks and commands to the firefox instance?

33. When I run the selenium RC script, I am getting Failed to start new browser, Firefox 3 could not be found in the path!    stackoverflow.com

When I run the script, I am getting the below error... I have pasted the firefox location in to system variable path...
still i am getting the below error :

java.lang.RuntimeException: Could not ...

34. How do I rerun Selenium 2.0 (webdriver) tests on the same browser?    stackoverflow.com

I am trying to use Selenium 2.0 (Webdriver) to implement a series of tests. Before these tests can run, I have to login into the application. Since the ...

35. Selenium keyUp and keyDown is not working on googlechrome browser    stackoverflow.com

In a chat application, after entering the chat text, i do selenium.keyup(13), selenium.keydown(13) to simulate 'Enter'. On google chrome it is not triggering Enter, however this works fine on Firefox/IE. Thanks, Ashok

36. supported browsers for Selenium2    stackoverflow.com

Does anyone knows what browsers are supported by WebDriver? The official documents doesn't explicitly state it yet urging us to work with Selenium2.0 instead of 1.0 =(

37. WebDriver + swtichTo another browser    stackoverflow.com

I have seen umpteen posts talking about working with pop window using window handle. But how to work with a browser which is opened when clicked on a button -

<button class="power_buy_now_button" ...

38. Selenium-IDE test can't switch browser windows    stackoverflow.com

I'm writing a Selenium IDE script to test part of our website that opens a window that takes the user to a third party site that we integrate with. The test ...

39. Test browser locale using selenium webdriver    stackoverflow.com

I'm trying to test our website with different accept-language headers. So if accept-language header is fr it shows "bonjour" and if the accept-language header is "en" it shows "hello". ...

40. Use Selenium with Chromium Browser    stackoverflow.com

In the Selenium options (on Firefox) I can find Custom browser. It's possible to use this option to run a Selenium test in Chromium Browser ?

41. How to run unit-tests in all browsers?    stackoverflow.com

I've never used Selenium but I guess it's for simulating user interaction in all browsers. That's like integration tests. But how do you test your js libraries/frameworks (unit testing) on all the browsers ...

42. How can I control a browser ( ala Selenium ) with node.js?    stackoverflow.com

I've heard of soda, but it seems like it requires you to signup and there's a limit on the # of minutes ( free acct / 200 minutes ). Does ...

43. What is the significance of a browser profiles and User Agent in UI testing?    stackoverflow.com

I see a section called "Tweaking an existing Firefox profile" in selenium 2's documentation and wondering what would be the reason to change profiles and user agents during UI testing? Also ...

44. Specifiying firefox 3.6.3 in custom browser path selenium RC    stackoverflow.com

after specifying custom browser path to firefox 3.6.3 selenium couldnt able to open the testsuite. <*custom c:/program files/mozilla/firefox.exe> but error message appeared through RC server that it cannot open the firefox version. also ...

45. What .NET UI Testing tool has a built in browser to run tests faster?    stackoverflow.com

Hello I remember seeing once that either selenium or watin have a "built in" browser to run tests quicker than it usually takes with a usual browser (IE/FF...), was I dreaming or ...

46. Unable to make web socket connection in Selenium opened googleChrome browser    stackoverflow.com

Below is the test page to check the web socket connection, I am opening below page in selenium with (*googlechrome), i am unable to connect to the web sockets.

...

47. Selenium in -browserSessionReuse mode launchs a new browser    stackoverflow.com

I'm trying the -browserSessionReuse Selenium mode to speed up my tests but i've noticed a strange behaviour. The purpose of this mode is avoid the time wasted opening browsers between tests, and ...

48. what browser does zombie.js use?    stackoverflow.com

So I came across zombie.js, is this a headless browser? If so, what browser engine does it use? Could I rely on it for doing lot of automated tests? Basically, I am restricted ...

49. Stuck to run Selenium RC script simultaneously in multiple browsers    stackoverflow.com

I am working in selenium RC with Java+Junit+Eclipse. For my project I have developed script which will run in only one browser i.e Firefox through the below code..

public void setUp() throws Exception ...

50. what is difference between testing functionality in browser and same in mobile    stackoverflow.com

I today had basic question in my mind ,what is the difference between testing functionality in browser and same in mobile. say testing m.gmail.com in browser and same directly in mobile using ...

51. Help me to automate File upload using Selenium RC in all browsers    stackoverflow.com

please help me out to automate file uploading in selenium rc. I dont want to use Autoit and some other external softwares. i want to run it on firefox 3,Ie 9, google chrome. ...

52. Selenium: Taking forever to open browser    stackoverflow.com

It is taking forever for Selenium to open browser. Command line shows the following: It looks like your baseUrl (http://localhost/indico) is pointing to a file, not a directory (it doesn't end with ...

53. How could I start a Selenium browser(like Firefox) minimized?    stackoverflow.com

How could I start a Selenium browser (like Firefox) minimized? I want the command browser.start(mySettings) to start a browser minimized.

54. Any way to select a line of text in browser screen by webdriver to emulate keyboard or mouse?    stackoverflow.com

I want to use WebDriver to select a line of text in browser screen(actually in CKEditor editing area) then change its text style from CKEditor toolbar. Any method can do that? For ...

55. Get completely loaded webpage sourcecode in java as rendered by browser    stackoverflow.com

There are few webpage which employs some javascript/ajax calls to fill some fields in webpage during page load or after page load. One example is http://www.sohos.co.uk/MEN-T-Shirts/Iron-Fist-Mens-Clothing/--Iron-Fist-Bloody-Mess-T--Shirt_ct271bd5pd197.html where content in ...

56. Can Selenium IDE deal effectively with Browser alerts    stackoverflow.com

Hi I am currently writing a Test script for an ecommerce site using Seleneium IDE, this is in a testing environment in HTTP. The issue I am having is the test ...

57. Selenium-2 Webdriver browser support    stackoverflow.com

I have a question about selenium2 (webdriver). As selenium-2 supports following 4 types of web drivers.. 1-IE 2-firefox 3-chrome 4-htmlunit Is there any way to use any other webdriver apart from these; like Safari, Opera etc? ...

58. Which setup is best for multibrowser testing with selenium and rspec?    stackoverflow.com

I use rspec tests with Selenium RC to test my rails webapplication. The followin code block sets up the browser which should be used for testing:

  config.before :all do  ...

59. Selenium WebDriver how to close browser popup    stackoverflow.com

I am writing tests for a web App using selenium webDriver and came across a scenario where whne I try to close the browser i get a popup saying " Are ...

60. Selenium 2 - Changing browser proxy settings via RemoteWebDriver    stackoverflow.com

I've seen examples of how one can change proxy settings using FireFoxDriver and passing in a profile in the constructor. Is there a way of doing this when using RemoteWebDriver? Regards, Mark ...

61. howto run together multiple instance of selenium browser    stackoverflow.com

Is it possible to run together multiple instance of selenium browsers and each one will work for themselve which will increase speed? i can run one like:

ISelenium selenium = new DefaultSelenium("localhost", 4444, ...

62. selenium grid2 howto run 5 browsers in paralel    stackoverflow.com

DesiredCapabilities capability = DesiredCapabilities.Firefox();
                IWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), capability);

      ...

63. How does Selenium RC communicate with Browser    stackoverflow.com

How does selenium commands browser ? I know that selenium proxy's requests to urls and on reponse injects selenium core js api into the response. but how does "click" or any ...

64. Browser crashes during automated test runs    stackoverflow.com

For reliability testing, we are testing our web application through selenium automated tests runs on infinite loop on the Firefox /IE browser. Can some one have an idea on how to ...

65. cannot start browser for selenium through ssh    stackoverflow.com

I am trying to setup a linux box (no display connected) to run as a selenium server. If I connect a monitor and login on the box then I can run ...

66. Selenium2 (Grid): Violently killing a browser session    stackoverflow.com

Some browsers like IE fail to close when calling webdriver.quit() if they a modal javascript alert is displayed at the time of closing. Does Selenium2/Webdriver have a way of killing the browser ...

67. Screen record concurrent browsers during Selenium tests    stackoverflow.com

I want to videorecord Selenium test cases in IE, Firefox, Safari, ... When using Selenium Grid, a node can be processing multiple tests at the same time. I need to record a ...

68. How to control browser in focus?    stackoverflow.com

I'm playing around with C# webdriver and trying to figure out how to control which browser is in focus. This is basicly what i want do

      ...

69. Running selenium against multiple browsers with MSTEST    stackoverflow.com

Im using selenium and using mstest to drive it. My problem is i want my entire suite to run against 3 different browsers(IE,Firefox and chrome). What i can't figure out is how ...

70. In Selenium 1, why are all the browser commands prefixed with an asterix?    stackoverflow.com

Running Selenium 1 locally (not through grid) all the supported browser strings are prefixed by *. Assuming Selenium-Server has already been started

return new DefaultSelenium("localhost", 4444, "*firefox", "http://www.google.com");
Is this just a convention, ...

71. Launch selenium tests for Chrome browser via jenkins slave    stackoverflow.com

I have following jenkins setup - master node on centOS, slave node on windows server 2008 R2(run as windows service). Used selenium server: 2.5.0 Test is using Selenium 1 API. I am launching hudson ...

72. Selenium grid: Where browser windows should be opened - on the box with hub or on the box with remote controls?    stackoverflow.com

I'm running a hub on remote machine and connect several remote controls from my local box to the hub. The question is - where the browsers should be opened after the ...

73. Rescue Browser Instance    stackoverflow.com

I am running Selenium Grid 2.0. The hub and various nodes are all located in separate computers. I have yet another separate computer that sends commands to the hub, which runs ...

74. Controlling a web browser using Excel VBA    stackoverflow.com

I have been assigned the task of automating a web based task ( for a HTTPS website). The users currently are filling in the Excel sheet with the data, they now ...

75. Does Selenium support headless browser testing?    stackoverflow.com

I'm looking at Selenium Server at the moment, and I don't seem to notice a driver that supports headless browser testing. Unless I'm mistaken, it doesn't support it. If you're on ...

76. Selenium testing without browser    stackoverflow.com

I use selenium RC for testing. Now for performing load test, I have to run parallel test cases. Is there any possible way ,so browser do not open? Thanks in advance --mohyt

77. Selenium Webdriver via C# - how to connect to an already open browser?    stackoverflow.com

I would really appreciate a guide on how to connect to an already open browser using Selenium Webdriver via C#. This issue eats around 30% of my script development time! Thank you very ...

78. Can we set the selection of browser default ?    stackoverflow.com

i am running my suite using selenium grid on different ports parallely. i am passing the port and browser to the defaultselenium method statically. Things are running good but i want ...

79. What is the use of -browser switch in the context of Grid2 for webdriver node    stackoverflow.com

What is the exact use of -browser switch while creating a webdriver node for Grid2.

java -jar selenium-server-standalone-2.5.0.jar -role webdriver -hub http://localhost:4444/grid/register -browser browserName=iexplore,platform=WINDOWS -port 5556

80. Store selenium tests on a server but run them on local browsers, through a framework like fitnesse    stackoverflow.com

I've been working on a webdriver framework for a while now, I guess it is keyword driven now. We would like for there to be a central place for users to store tests, ...

81. Selenium - How do I hide the browser    stackoverflow.com

When I used WATIN I am able to hide the browser and my tests are a lot quicker. Now I am looking to do the same with selenium in c# if ...

82. Export Selenium browser addon macros into c# (webdriver)    stackoverflow.com

Is there a possibility to export a macro from the Selenium Firefox browser extension and run it from a C#/WebDriver application? The goal is to execute the recorded macro and add ...

83. Why the difference in same browser? firefox selenium webdriver    stackoverflow.com

So when I manually launch firefox, I see my firebug button on the upper right corner. when I launch firefox via webdriver, the button is not there. why? I don't have ...

84. Recording Locators using Selenium in Safari Browser    stackoverflow.com

I am testing the action of opening a PDF. In firefox I do not get a popup, but in selenium I get a save popup window. Is there a say to ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.