I'm using Selenium2 for some automated tests of my website, and I'd like to be able to get the return value of some Javascript code.  If I have a foobar() Javascript function in my webpage and I want to call that and get the return value in...
I am using WebDriver with Java for test automation. I have the following HTML code for input field which is hidden:  <input type="hidden" value="" name="body" id=":6b">   How to type something in hidden field in...
The Problem:  In our rather big test codebase, we are using different keyboard shortcuts. For instance, to copy selected text we are using CTRL/COMMAND + C, to paste CTRL/COMMAND + v, to open a new tab CTRL/COMMAND + T etc.  To keep tests work on mul...
Because Webdriver waits for the entire page to load before going on to the next line, I think disabling images, css and javascript will speed things up.  from selenium import webdriver from selenium.webdriver.firefox.firefox_profile import FirefoxPro...
I'm new on protractor, and I'm trying to implement an e2e test. I don't know if this is the right way to do this, but... The page that I want to test is not a full angular page based, so... I'm having some trouble.  On my first spec I...
Checking the protractor documentation, I see there is a option to run protractor without using Selenium server using directConnect: true flag.  What is the difference between running protractor tests with a selenium server and without a selenium serv...
I'm try to get the currently selected text in an input using window.getSelection() but I'm always getting an empty string:  expect(browser.executeScript("return window.getSelection().toString();")).toEqual("test");   Results i...
Selenium:  I am new to WebDriverJS. I have tried this approach in Java.  Long repaeted = 0l, scrollHeight = 0l, returnHeight = 0l; while(true){     if (repaeted == 0) {         returnHeight = (Long) jse.executeScript("var scroll =document.documen...
In order to implement drag and drop for Selenium tests, I referred to http://elementalselenium.com/tips/39-drag-and-drop There it's mentioned to use javascript(from https://gist.github.com/rcorreia/2362544) to handle drag and drop.  I implemented...
I am using selenium-webdriver for nodejs.  How can I emulate a right-click with this driver? I can't find this in the official documentation....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.