select the checkbox using selenium webdriver

i need to select checkbox which is having same ids HTML: <label class="table-checkbox-label" for="record-12034"> <input id="record-12034" class="table-checkbox" type="checkbox"/> </label>

Ruby Cucumber Automation

We are doing automation using Ruby and Cucumber. We have around 80 feature files, 1 web_Steps file containing all the generic steps. The problem we are facing is all locators are present in the feature file. So if the html structure changes then we h

Unable to run the selenium web driver with the robot frame

I am getting the following error while trying to get selenium webdriver working with robot framework. WebDriverException: Message: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capabil

Problem Locating the item on the web page

HTML of element In selenium webdriver, I am trying to locate, then clear the textbox element in the given image with this code driver.findElement("X")).clear(); or driver.findElement(By.cssSelector("input[name=X][type=text]")).

Selenium comes out of the screen

I currently have a selenium test that runs smooth on 1920 * 1080 resolution. But I have a task to make this test on different common resolutions such as 1366 *768. Problem is when I run my Selenium test on smaller resolutions than 1920 * 1080 I can't

Selenium WebDriver dom locators workaround

Is there a way to do some workaround for Dom Locators when exporting testcase from Selenium IDE to java/junit/WebDriver? These are not implemented yet (for about few years?) I have an error: // ERROR: Caught exception [Error: Dom locators are not imp

Get all the href links using selenium in python

I am practicing selenium in python and I wanted to fetch all the links on a web page using selenium. For example, I want all the links in 'a href" tag from this website : I've written a script and it is working. But, it's

Selenium on Windows 10 Edge Browser

I have to run automation on Windows 10 'Edge' browser. Please let me know how to launch Edge browser in windows 10 using Java Selenium Web Driver. File file = new File("C:\\Program Files (x86)\\Microsoft Web Driver\\MicrosoftWebDriver.exe"); Sys

Waiting for a table to fully load using selenium with python

I want to scrape some data from a page which is in a table. So I am only bothered about the data in the table. Earlier I was using Mechanize, but I found sometimes some of the data are missing, especially in the bottom of the table. Googling, I found

Selenium id = email not found

I'm using Selenium WebDriver to try and capture an email address field to log into our site. My code to detect the email address field so I can insert the email is: WebDriverWait wait = new WebDriverWait(driver, 10); wait.until(ExpectedConditions.pre

How can I get a value from the style element?

How do I get a single value from the style element. Here is my CSS. I want to be able to get the width value of 51.06383% span id="ctl00_cphNavigation_svyNavigation_lblProgressMeter" class="progressmeter" style="display:inline-blo

jMagick - image comparison

I am trying to develop a program which would take the snapshot of webpage and will then compare it to an old one and highlight the changes if any. I am using Selenium- WebDriver for taking snapshots. For image processing and compare, after a bit goog

Selenium WebDriver find blocked java?

I am writing a very simple test case using selenium webdriver. Lets say I have @Test public void github_search() { this.webDriver.get(""); WebElement findBox = this.webDriver.findElement("qa")); ...... } in t

How to change the language of a WebDriver?

I want to execute my Selenium tests in different languages. Is it possible to change the language of an existing WebDriver at runtime or do I have to recreate the browser instance? Right now I'm only using Firefox, but I want to execute tests in diff

Selenium2 expects a specific item on a page

I am using Selenium2(2.0-b3) web driver I want to wait for a element to be present on the page. I can write like below and it works fine. But I do not want to put these blocks for every page. // Wait for search to complete wait.until(new ExpectedCond