variable « 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 » variable 

1. Selenium: Is it possible to concatenate an xpath with a variable?    stackoverflow.com

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 ...

2. Selenium Fitnesse Bridge: How do I store and echo a variable?    stackoverflow.com

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 ...

3. How do I parse a variable or multi value cookie in Selenium?    stackoverflow.com

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 ...

4. Access JavaScript variables with Selenium IDE    stackoverflow.com

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 ...

5. Selenium - Store hidden variable    stackoverflow.com

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 ...

6. Selenium IDE - Passing a URL string variable into a conditional 'gotoIf' statement throws a Syntax error?    stackoverflow.com

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):

   ...

7. Selenium Test Runner and variables problem    stackoverflow.com

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 : ...

8. Is any way to get captcha value and store it in a variable?    stackoverflow.com

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 ...

9. how to use variable from runscript command    stackoverflow.com

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]); ...

10. selenium-ide pass variable from test suite to test    stackoverflow.com

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 ...

11. How to use getEval() to verify the typeof of a variable in selenium    stackoverflow.com

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.

12. Is there a way to store in a variable the text in a certain element in selenium?    stackoverflow.com

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 ...

13. How do you store an elements text with selenium in a javascript variable?    stackoverflow.com

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 ...

14. AssertText between an input value and stored variable text in Selenium IDE    stackoverflow.com

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 ...

15. Storing html source or contents of a variable in selenium ide?    stackoverflow.com

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 ...

16. How do I want to store the condition value in variable in selenium ide    stackoverflow.com

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: ...

17. how to verify the condition using verifytext and store the value in to variable either true or false    stackoverflow.com

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 ...

18. Using variables as selectors with Selenium 2 Webdriver by.cssselector    stackoverflow.com

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 ...

19. Pass variable to Selenium-IDE script    stackoverflow.com

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 ...

20. Using Javascript variables in Fitnesse Tests to be run on Selenium    stackoverflow.com

I am using the below test in Fitnesse to pick a value from an excel cell and use that in the script.

!|Scenario          ...

21. C# Methods not printing proper values    stackoverflow.com

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, ...

22. Selenium Compare storedVars to Text    stackoverflow.com

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 ...

23. Selenium Accessor not storing variable    stackoverflow.com

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 ...

24. Storing current URL then opening it later in Selenium IDE    stackoverflow.com

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 ...

25. Selenium: Stored variable is not considered across test cases while executing test suite from command prompt    stackoverflow.com

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 ...

26. Selenium IDE: Pass a variable to open URL    stackoverflow.com

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>
   ...

27. Selenium: How do I inject a Javascript variable across my tests?    stackoverflow.com

I'm using Selenium client driver 2.4.0. When running tests using the WebDriverBackedSelenium object, e.g.

     final FirefoxDriver driver = new FirefoxDriver();
     selenium = ...

28. To store value of a table variable into a variable of my own in selenium    stackoverflow.com

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 ...

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.