JavaScript driver for selenium test automation.
Questions tagged [webdriverjs]
68 questions
0
votes
0 answers
Value stored inside a loop not reflecting outside the loop
fnReturnElements: function(pathElems ){
var strArray= new Array();
selenium.waitForElements(pathElems).then(function(elements) {
for(i=0; i< elements.length;i++){
var a= selenium.getText(elements[i]);
…

KBM
- 341
- 4
- 16
0
votes
2 answers
How can I create a webdriverjs promise without creating a webdriver instance?
I need to do some node require commands in a webdriverJS test script, because these dont get entered into the webdriverJS command queue, I am wrapping them in .then() functions (to deal with the asyncrony)
e.g.
var webdriver =…

the_velour_fog
- 2,094
- 4
- 17
- 29
0
votes
1 answer
How to Iterated through and select each Drop down values in protractor
I have a scenario where there are 2 dropdowns each having some value and then there is an Add button.
so we need to select 1 value from one dropdown and then 1 value from other dropdown, then click on add button and then again select another value…

anuvrat singh
- 411
- 1
- 7
- 20
0
votes
0 answers
Selenium Webdriverjs test working in chrome but not in phantomjs
I have a very simple form: you enter a first name and a last name, click submit, it displays the full name. I wrote a simple test for this form using Selenium Webdriverjs. It works with chrome, but not with phantomjs. Am I missing any trick to make…

Naresh
- 23,937
- 33
- 132
- 204
0
votes
1 answer
How to find WebElement within WebElement with WebdriverJS?
If this is the HTML
I want to get this text

Artur Stary
- 724
- 2
- 13
- 30
0
votes
0 answers
Protractor ElementArrayFinder.filter() running only once?
I am having trouble with filtering a ElementArrayFinder of elements more than once in my page object. The second filter is being called right after the first one. In the following code, I am first verifying that a number is in the table, and…

Brandon Ryan
- 11
- 1
0
votes
1 answer
Promise executes too early
The WebDriverJS API says I can write code like this:
driver.get("http://www.google.com");
driver.findElement(webdriver.By.name("q")).sendKeys("webdriver");
driver.findElement(webdriver.By.name("btnG")).click();
driver.getTitle().then(function(title)…

P.Brian.Mackey
- 43,228
- 68
- 238
- 348
-1
votes
1 answer
Use sendKeys and store value in variable
Currently I'm using WebdriverJS and trying fill a form. My test is open form > fill the field with sendKeys and store this value for the variable. Follow my code:
driver.findElement(By.xpath("//a[contains(text(),'Añadir Propuesta …

Rafael C.
- 2,245
- 4
- 29
- 45