Is there a way to return the xpath of an element in Selenium during runtime whos xpath changes every time you return to the page? I need to extract a random number from the xpath of the element.
Ex: //div[@id='element_id-87462'] where 87462 is a new random number everytime the element is loaded. I want to be able to extract 87462 so I...
Hi,
I'm using an external library written in java (selenium). One of the function calls has signature type(String,String) , and I keep getting compiler errors when trying to call it from scala, i.e.:
selenium.type("ab","abc")
Is there any workarounds for this issue?
Thanks,
...
I am using Selenium to grab the HTML Source before and after certain events. I notice that sometimes it will grab the correct code and other times it won't. The issue I am running into is that when you click a check box or radio button, it will grab the same source. If you look at the actual sources before and after the events, they will...
Hey,
I have an app in which the user can change the background image of their profile page. Therefore, I wasnt to assert that, when the user changes the image, the image actually changes. I can't for the life of me figure out a css selector or xpath to do the job. This is the HTML I have:
<body style="background:#FFFFFF url(/uploads/i...
Hi ,
I am testing the Router UI using selenium. I am using cisco routers. I am pinging a website and the router opens a pop up window showing the Ping statistics. The selenium ide is recording the popup window as " Ping table " but when i am running it the ide shows an error.
I want to verify and validate the data in the pop up window ...
I'm trying to run selenium web tests in Visual Studio using MSTest.
I have a selenium process class, a selenium runner class and a web dev test class, as in this article:
http://keithbloom.wordpress.com/2009/10/16/running-selenium-tests-in-visual-studio/
I get the command prompt opening and I can see the selenium startup messages when I...
Hi,
The page I'm looking at contains :
<div id='1'> <p> text 1 <h1> text 2 </h1> text 3 <p> text 4 </p> </p> </div>
I want to get all the text in the div, except for the text that is in the <h>.
(I want to get "text 1","text 3" and "text 4")
There may be a few <h> elements, or none at all.
And there may be a few <p> elements, even one...
I'm running Hudson for my automated builds and love it.
I'd now like to create automated Web browser tests using either WaTiN (preferred) or Selenium.
As my Hudson runs as a Windows service (under Tomcat), how can I configure this to run? Will I be forced to log in as a user on the Hudson box so my automated browser tests will find a ...
Hey guys,
I'm writting a script which needs the browser that selinium is operating to close and re-open, without loosing his cookies.
any idea of how to go about it?
Basically it's a check to see that if the user opens and closes his browser, his cookies stay intact.
...
My Application has a lot of calculation being done in JavaScript according to how and when the user acts on the application. The project prints out valuable information (through console calls) as to how this calculation is going on, and so we can easily spot any NaNs creeping in.
We are planning to integrate Selenium (RC with python) to...
I am trying to capture screenshots on test failure using selenium-client and rspec. I run this command:
$ spec my_spec.rb \
--require 'rubygems,selenium/rspec/reporting/selenium_test_report_formatter' \
--format=Selenium::RSpec::SeleniumTestReportFormatter:./report.html
It creates the report correctly when everything passes, since no...
Hi all,
In Selenium RC I need to expand/click a node in a tree made with RichFaces. I have done a TreeUtil class, but at this point I am not sure how to click/expand a node (which I retrieve with this xpath: "//div[@id='foo:classTree']/div/div/table["+nodeLevel+"]/tbody/tr/td/div/a") using only a nodeNumber and a nodeLevel.
Anybody ha...
I have the following code in my script:
System.out.println(selenium.getAttribute("xpath=//div[@class='guest clearfix'][1]/@id"));
When I try to run the script, it says the element is not found. If I enter the xpath into XPather (addon for firefox) //div[@class='guest clearfix'][1]/@id, it will correctly give me the id.
I am stumped ...
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 browser which always has English as its default locale. Changing default browser settings doesn't change the fact that each new browser opened by Selenium has an English locale.
I haven't found any way ...
please suggest which tool should i use - QTP, RIATest , Selenium for Flex Application Functional Automation Testing . please help me compare them with different advantages and disadvantages.
any help appreciated
...
I am searching for an element on a webpage by using its xpath. The xpath is correct and can find the element ONLY if I manually perform a click anywhere on the page first. If I do not do this before the statement runs it will not find the element.
I have tried many different attempts to allow focus on the page:
selenium.selectWindo...
Has anyone been able to get the jQuery UI Dialog buttons to respond to click_button or selenium.click? I can't seem to be able to get this to work.
Basically, I'm trying to test a form in a jQuery UI Dialog in a Rails app using Cucumber/Webrat/Selenium.
I have a page with many table rows, and each row on click fires off a dialog box w...
Hi,
I have a problem: when I try to run a JUnit TestCase through Eclipse, in debug mode (using Debug as JUnit Test), it runs perfectly well (I step over each statement), but if I run it normally, not in debug mode (using Run as JUnit Test), the TestCase runs until some point and then fails when trying to find some html element in the pag...
I would like to create a script or a batch file on windows that automatically opens Selenium IDE (plugin) and opens and runs a test file.
...
Is there any way in Selenium ide, so that we get list and handlers for all controls provided on any page ?
So if we get that we can test that one by one using RC and it'll greatly helpful when there are more then 40 controls on page. In that case it'll become very tiresome to record for all.
...