The xpath of my elements are becoming extremely hard to read.
//div[@id='main_content']/div[2]/div[2]/div[2]/div[4]/table/tbody/tr[2]/td/form/fieldset/p[1]/input
It would be nice if I could store most of that as a variable and use it later like this:
| assertElementPresent ... |
I'm using the Selenium Fitnesse Bridge Fixture in order to write tests in Fitnesse for Selenium. It's great because it covers ALL the functions that Selenium has. However, the ... |
I am trying to parse a multi-value cookie using the Selenium IDE. I have this as my Tracking Cookie Value: G=1&GS=2&UXD=MY8675309=&CC=234&SC=3535&CIC=2724624
So far I have simply captured the full cookie into ... |
I'm wondering if it's possible to access page JavaScript variables with Selenium. I have an application that's using a variable attached to the window object. It has a global scope and ... |
We are using Junit + Selenium to webtest our webpage. But we have run into a problem.
I need to parse the value from a hidden field with Selenium.
HTML of hidden field
<input ... |
I am trying to store the current url (http://example.com)in a variable and compare it with another string as a condition in the gotoIf command (part of the gotoIf extension.js):
...
|
In my selenium test suite (html), I define a first test case to initialize variable called in the next test case.
Sample :
In first script :
store|//div[@id="myfield"]|myvar
In my second script : ... |
|
I am Using Selenium RC in C# My application has 3 Captha image in Different registration pages. i have a Huge script i will run it on night hours(when i am ... |
I get some text from a web page 5,19 € 3,50 €
I want to split this text after "€". for that I'm using this command
runScript | javascript{var prices = storedVars['price'].split("€"); document.write(prices[0]); ...
|
Is there any way to pass a variable from the suite to the test in selenium ide? I need to have change the baseURL half way through my tests and I'd ... |
I want to do this in selenium:
var variable = editors;
if (typeof(variable) == "undefined") {};
but I am not entirely sure how to do it with the getEval() method.
|
I have a selenium script that I created with Selenium IDE. I was
wondering if there is anyway to store the text that is in a certain
element in a variable so that ... |
I have this html:
<div class="title">
<div class="subtitle">
<div id="flhcd1>
<h3>Hello</h3>
<span></span>
</div>
<div class="subtitle2">
</div>
</div>
I want to be able to use selenium and javascript to store the text in the <h3> (Hello) in the variable titleText .
I ... |
Having trouble with returning the text from an attr node for the purpose of using in a AssertText Selenium IDE command.
Command: AssertText
Target: //input[@id='myInputTextBoxID']/@value
Value: ${myStoredSeleniumVal}
The result is [error] Element xpath=//input[@id='V1_I1_T5']/@value not found
I ... |
I am trying to build a macro in selenium ide that stores the page source to a file. I see there is a command storeHtmlSource() that stores the page source ... |
I have a application which contains first page..
The navigation of the flow is
If it is a first login: Page A --> Page B --> Page C
For subsequent login: ... |
I have a application which contains 3 pages.
The navigation of the flow is
If it is a first login: Page A --> Page B --> Page C
For subsequent login: Page A ... |
I am using Visual Studio 2010 to write Selenium 2 Webdriver automated tests in C#.
I have searched high and low for examples of using variables as selectors and have found nothing ... |
Is it possible for an MSBuild script to pass an argument to the Selenium test runner that can then be used by a Selenium-IDE test script? I was hoping I could ... |
I am using the below test in Fitnesse to pick a value from an excel cell and use that in the script.
!|Scenario ...
|
I have two methods General and SearchTab below. When I look at my report file, I see that the values for the General Methods as:
TestName:
TestMachine: Maya
TestUser: Administrator
TestTime: 6/13/2011 12:02
TestStatus: FAIL
TestExpectedResult:
TestActualResult:
TestComments:
TestName, ... |
I'm trying to compare a stored variable (user inputs variable value) to a predefined text. This is for testing on a beta site compared to the production site. An ... |
I would like to store a value that's inside the inner HTML of a span tag of id="ctl00_body_BatchEditor_LblBatchIdentifyingNumber" with the Selenium IDE. And then I want to take that variable ... |
the application I am testing generates a dynamic URL that I need to go back to later to perform further actions on.
I can store the URL using
storeLocation | url
However, I am ... |
I have a test suite with 3 test cases, out of which first test case has all the variables required in the other 2 test cases(something like its a dataset for ... |
The below is my Selenium IDE generated XML file.
<?xml version="1.0" encoding="UTF-8"?>
<TestCase seleniumIDEVersion="1.0.10" baseURL="http://test.com/">
<selenese>
<command>open</command>
<target><![CDATA[/test/contract/?testId=743474]]></target>
<value><![CDATA[]]></value>
</selenese>
<selenese>
<command>clickAndWait</command>
...
|
I'm using Selenium client driver 2.4.0. When running tests using the WebDriverBackedSelenium object, e.g.
final FirefoxDriver driver = new FirefoxDriver();
selenium = ...
|
Hi i am using selenium with testng and right now i have to store a value present in the page to some variable but i am having much problem regarding this
This ... |