Tagged Questions
0
votes
0answers
9 views
Not able to locate org.openqa.selenium class using ant to run a webdriver script
I am using Apache ANT to run my webdriver script.
My project structure is as follows:
ant_webdriver_project
- src
- test.ant.webdriver
- TestLogin.java
- JRE System Libraries
- Referenced ...
0
votes
1answer
41 views
My script is not running successfully every time. After running sometimes it runs successfully for 1 time and next time when I run again it fails
My script is not running successfully every time. After running sometimes it runs successfully for 1 time and next time when I run again it fails.
package Example;
import java.io.FileInputStream;
...
1
vote
1answer
58 views
Can i use MyEclipse IDE instead of Eclipse IDE (Eclipse for Testers) for using testing with Selenium
I am new with Selenium and having java development experience.
I have installed Selenium IDE as plugin with Firefox.
I have MyEclipse IDE. Should i download another Eclipse IDE for using testing ...
0
votes
2answers
29 views
Click on element does not produce expected outcome using selenium webdriver
First the specs, I am writing Selenium Webdriver tests in java for an application written largely in ExtJS and running on the firefox browser v14. The interesting thing is that Selenium can find the ...
1
vote
3answers
54 views
Selenium 2: something wrong with “driver.findElement(By…);
the selenium webDriver just does nothing when no Element is found by calling driver.findElement(By.className("item"));
the driver does not even throw an ElementNotfoundException, which I´m sometimes ...
0
votes
3answers
57 views
To select a text box using index
Below is my code
<TR ID="oldContent"><TD><input type="text" name="code" id="oldContent"></TD></TR>
<TR ID="oldContent"><TD><input type="text" name="code" ...
0
votes
1answer
33 views
Is there an exporter plugin for Selenium IDE that puts out Remote::Driver Perl scripts?
So far I have only seen the exporter that gives us Test::WWW::Selenium scripts.
I fear this might not be the right place to ask; if that's true please point me in the right direction. To calibrate ...
1
vote
2answers
114 views
What is the alternative of selenium.isElementPresent in Webdriver
Hi I need to check a drop down field is having given values but those values are not selected so its not getting displayed in the dropdown box.
I have following Xpath for the element
...
0
votes
1answer
36 views
Execution in Background
I don't know whether I am right or wrong but just want to know can I run selenium webdriver scripts in background. I want to give some more explanation about this as
I have one script which will ...
0
votes
0answers
62 views
Two different ways to override console.log, why one is not working in js.executeScript()?
I overwrite console.log function and put it into executeScript() which is method of selenium web driver. For example, I wrote:
js.executeScript("console.log = function(txt) {alert(txt);};");
is not ...
1
vote
1answer
78 views
The method executeScript(selenium web driver) cannot define a global variable for later use?
I am using the method executeScript in selenium web driver, I found a problem:
js.executeScript("var b='1'; ");
js.executeScript("alert(b)");
After I run above code, I suppose get a alert window ...
1
vote
1answer
73 views
WebDriver getCssValue is not returing border color
I need to find the border color of a button the HTML properties of the button is like follow
<input class="PSPUSHBUTTON" type="button" title="Add Link" value="Add Link" name="ADD_LINK"/>
and ...
0
votes
2answers
73 views
Extracting text from the input field - using Webdriver
How would I extract the text from the input filed? I tried using XPath/CSSSelector but I'm getting an empty text and since its a input field.
Here is my html code:
<div>
<input ...
0
votes
1answer
73 views
How to convert this xpath to css?
How to change this below Xpath to css? Please help.
//button[text()='Continue' and @class='buttonLargeAlt' and @type='submit']
-3
votes
0answers
62 views
How to convert “/html[1]/body[1]/div[2]/div[1]/div[2]/ul[2]/li[1]/div[2]/ul[3]/li[1]/a[1]” to meaning ful selenium XPath
How to convert the following xpath to a meaningful xpath that can be understood by selenium.
/html[1]/body[1]/div[2]/div[1]/div[2]/ul[2]/li[1]/div[2]/ul[3]/li[1]/a[1]
Attributes
Name :href
Value ...