The code snippet below works fine, but having a little trouble with the wait.until() line.
wait.until(new ElementPresent(By.xpath("//a[@title='Go to Google
Home']")));
It works but I want to send my PageFactory WebElement homePageLink
instead.
How do I change my ElementPresent class to except
both:
wait.until(new ElementPresent(By.xp...
I am using Selenium to test out a web site. The web site contains a date field, which when clicked, opens a popup from wherein I can choose the date.
My issue is that I wish to select a particular date using the Selenium IDE or Selenese. I have tried various methods, but have not been able to get a correct solution or been able to resol...
I am running Selenium Java RC on Linux. When I execute my program it opens only one Firefox window where commands display; it doesn't open a second Firefox window.
...
I have an existing jar file which I run. It is the Selenium RC server. I want to be able to change the JVM httpProxy.host/port/etc system values. On the one hand I can modify the source and add this feature in. Would take some time. Is there another possible way to do this? Like have my own JAR (which would set these JVM properties) invo...
I am planning to learn selenium, what would be the best language to learn along with selenium?
Perl or Ruby or others?
...
Some links on our page open in a new window using target="_blank". How can I make selenium look at the right window so I can verify that the page is linking to the right page?
Here's what I've been trying:
open /page/
click link=Find us on Facebook!
pause 2000
selectWindow title=window...
Hi,
I have some Selenium test scripts which I'm using to test a Classic ASP web app, but I'm having problems after restoring the database (SQL Server 2005) with a backup file before every test is run. Immediately after the successful RESTORE (from a Python script running sqlcmd ...) when the ASP tries to connect to the db I get the foll...
We're converting our Selenium tests to use Selenium-Grid.
I'm trying to find a way to launch selenium-grid's hub and/or remote so that it can use the user-extensions.js that we created before. I've been able to get everything to work with our old tests except for our extensions.
Searching online I found that you can edit the project.p...
Hi,
I've run into a weird problem yesterday. I am using selenium-rc along with C# to write test scripts. For the first time, yesterday, I started getting the error "Unable to connect to remote server". It seems to occur randomly at any part of code. e.g. The error is triggered at the statement selenium.setspeed(2000);. In another script...
I'm playing with a grails app that has a contextmenu (on right-click).
The context menu is built using Chris Domigan's jquery contextmenu plugin.
While the contextmenus do actually work, I want to have automated tests, and I can't work out how to do it.
I've tried Selenium 2.05a (ie. Webdriver), but there's no rightClick method.
I not...
I try to write selenium tests for a web site.
I used a tomcat server with a MemoryRealm authentication cf
<Realm className="org.apache.catalina.realm.MemoryRealm" pathname="/DEV/tomcat1/conf/tomcat-users.xml"/>
I didn't find how to set authentication in my tests. I tried to put in "selenium.open"
selenium.open("http://user:pass@mys...
I initialize the selenium like
public void setUp() throws Exception
{
setUp("http://localhost/", "*firefox");
}
and I write my test in the method like
public void testUntitled() throws Exception
{
boo();
foo();
}
But it gives error like
java.lang.RuntimeException: Could not start Selenium session: Failed to start...
Hi,
I'm facing a kinda weird problem today. Selenium appears to click on a link in one test case, but, ignores the same link in the subsequent case. This happens with any permutation-combination of test cases. Whichever case run 2nd, fail due to the above problem. can anyone suggest a solution for this?? I've tried selenium.click and se...
When I put my Mac to sleep while an interactive Python session with a selenium instance and corresponding browser is running, after waking up the browser (or selenium server?) are no longer responding to any commands from the Python shell.
This forces me to restart the browser, losing the state of my test.
Is there a way to overcome th...
I've got a bunch of test scripts written using Test::WWW::Selenium (but the fact that I used perl is inconsequential, any language selenium supports probably has the problem I describe). When the cogs in my application come loose I'd like to replay the test using the Selenium IDE, letting me have full control over the action
But I'm no...
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 start it up. However, I have 2 different batch files to start the Server, one forced...
I need to apply a few patches to the Selenium CaptureNetworkTrafficCommand.java code.
In order to test the fixes, I will need to rebuild the selenium-server.jar.
Is there any easy way to build the selenium server if I'm only changing this file?
I've try both maven and rake and both seems to fail building.
...
Once you have a test defined in Selenium IDE, is it possible to run it automatically in 2 or more tabs at the same time? If not, is this something that is possible with Selenium RC?
...
Hi all , i started hub with ant ,i dont to start rc using ant instead
i want to invoke it from code .iam using junit to run rc .please
suggest me how??
...
Hi all;
I created 2 test suites with Selenium IDE and I would like to run those test suites at the same time. Just like firing threads at the same time. Is it possible without entering programming ?
P.S : I couldn't open 2 selenium IDE in Firefox.
Thanks.
Altug.
...