What is the difference between  executeAsyncScript and executeScript?  How can i use event such as window.onload? I tried something like this   ((JavascriptExecutor) driver).executeAsyncScript("window.onload = function() {alert('Hello')}&...
Is there a known solution to perform Eval (Javascript execution) in Webdriver, Ruby bindings?   The equivalent of the following example in Java.   WebElement element = driver.findElement(By.id( "foo" ));  String name = (String) ((JavascriptEx...
I now get "javascript error: circular reference(Session info: chrome=76.0.3809.100)" whenever I try and click on any element on my company's webapp.  This is code that was working fine on previous chromedriver versions  I have tried the s...
// I had previously used a CSS/JQuery extractor to get a URL from a page and add it to JMeter vars - accessing it here var pageURL = "${valueFromJmeterVars}";  // navigate to that url WDS.browser.get(pageURL);   // selecting an element var bu...
I'm trying to get the x and y values for an element on the page while running my Protractor test.  it('should keep the left nav links floating along with the page', function() {         var navDiv = element(by.id('pd_page_nav'));...
I am trying to prevent Javascript from changing the site's source code I'm testing with Selenium. The problem is, I can't just simply turn Javascript off in the Webdriver, because I need it for a test. Here's what I'm doing for th...
Does anyone have a proper example on how to configure BrowserMobProxy with WebDriverIO? This is so I can capture network traffic. I previously had it working with WebDriverJS, which is essentially a deprecated version of WebDriverIO....
I want to iterate over element and do some thing on all of them, e.g. set values etc. For now i have following code, but i cant even get attribute from selected elements.   client.elements("freeforms-widget").then(function (elems) {...
I'm trying to set up selenium-webdriver example using Javascript and Microsoft Edge. In any other browser this code below works. But Edge won't start. I tried to find a solution, but couldnt find anything that helped me... Maybe you can help....
I am trying to execute javascript Appium test using WD. My code should look something like this:  "use strict";  var wd = require("wd"); var chai = require("chai"); var chaiAsPromised = require("chai-as-promised"); var...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.