HTML code for the dropdown: <div class="margin-bottom"> <select ng-class="{'invalid-select':(selectedItem == '-1' && submitted)}" class="select-lg select-custom ng-pristine ng-untouched ng-valid ng-not-empty ng-va
I have my script to login to a site. i then need to click on another link which is contained in an <a href> </a> I have tried multiple methods without success. The link I need "Available Deployments" only appears after clicking a dro
I am writing selenium tests, and I need to switch to an iframe with no id or name and which parent element contains variable id's (so not helpful. Also, the src attribute has variable data in it as well, so I can't target it directly like By.cssSelec
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>
I want to open Google search results into new tab. I tried this code: WebDriver driver = new ChromeDriver(); driver.get("http://www.google.com/xhtml"); Thread.sleep(5000); WebElement searchBox = driver.findElement(By.name("q")); search
I'm getting an error when trying to set up a phantomjs node on Selenium Grid (https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Plugin) I've set up the following custom json configuration: { "capabilities": [ { "browserName": "
I am following browserstack's documentation on using automation and currently getting an error and am abit confused about the URI. My code looks like the following: using System; using OpenQA.Selenium; using OpenQA.Selenium.Remote; namespace Selenium
I am able to login on facebook, able to open chat but unable to send any message Below program code I have used: //Login on FB >> Working fine driver.findElement(By.xpath(".//*[@id='email']")).sendKeys("******@gmail.com"); driver
I'm currently working on a java test framework with cucumber, JUnit and Selenium. I've already worked on projects like that, but I'm experiencing an issue on this one. I'm trying to create a Context class that is a Singleton. I want to use cucumber-p
I am working on an automation project.In that I have to fetch all the email address from the span text which will be having characters of more than 200.But the email address are not in regular expression format instead it is showing as Eg:- xxx(at)ab
In Selenium WebDriver, if I select drop down value by 'name' then how do I verify that all products are sorted by name? This is my code: import org.openqa.selenium.WebDriver; import org.openqa.selenium.By; import org.openqa.selenium.firefox.FirefoxDr
I'm trying to follow the Selenium Webdrive Tutorial http://www.toolsqa.com/selenium-webdriver/headless-browser-testing-selenium-webdriver/ There is a simple test, here you are the steps: Open webpage http://google.com Get the title of the page. Searc
I am trying to run a test on multiple browsers using WebDriver, Nunit and C#. It's working, but I am getting that annoying security warning in Chrome. In an effort to fix it, I need to re-create the driver using ".AddArguments("--test-type"
I've got web application with browser authentication before webpage is loaded so in automated test i am log in via http://user:
[email protected] but when i am entering wrong credentials, pop up would not disappear it would wait for correct credentials.
I am fairly new to R and am having trouble with pulling data from the Forbes website. My current function is: url = http://www.forbes.com/global2000/list/#page:1_sort:0_direction:asc_search:_filter:All%20industries_filter:All%20countries_filter:All%2
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
Clicking on checkbox based on tables column value using Xpath. Below is the html <table id="tblHotels"> <TBODY> <TR> <TH align="left"> <INPUT checkbox="" id="chkNSelectAll name=chkNSelectAll ty
I am using Cucumber, with Ruby and Selenium. I've got the following HTML: <html> <body> <div class="breadcrumbtrail" id="breadcrumbtrail"> home </div> </body> </html> and the following step definitio
I'm testing an ADF application with Selenium IDE. At one point, the automated test case has to click on a button, which has a partialTrigger attribute pointing to a table on the page and after the button executes some background logic, the table is p
I recently migrated from Selenium RC to Web driver. I am testing a registration form which contains "login" field. I have to test the form based on 2 criteria: The name entered in the Login field should not be used by any other user. The Login n
This works as supposed, test fails (due to haltTesting()) and is repeated 2x public class A0001_A0003Test extends TestControl { private Kunde kunde = Kunde.FR_WEHLITZ; @Test(retryAnalyzer = TestRepeat.class, groups = {TestGroups.FAILED}, description
I want selenium to press "TAB" for me and then write something in the focused field, now I know that I can use sendKeys(Keys.TAB) But as I understand it That require a locator behind it, I want to test the tab order of my page and to do so, I wa
i have tests made with Mink using Selenium 2 driver. everything is working OK under Windows 7 with Firefox, Chrome and IE and Ubuntu 12.10 with Firefox. the problems are: when i try to run test on Opera (Windows 7) it launches but it cannot find any
i'm testing my JSF with Arquillian. a simple button looks like this: <h:form id="myForm"> <a4j:commandLink value="delete" ajaxSingle="true" id="delete" action="#{controller.delete(object)}" reRend
I looked at the documentation located here, but couldn't find an answer. I want to get an element by class name or xpath and return the number of instances. There seems to be no available function in Python, such as get_xpath_count(). Any ideas on ho
how to save file automatically in particular location using VB Script ? or How is it possible to Download file to particular location in IE without interacting with Download dialog ? Ultimately I need to save file in particular location from IE autom
I was trying to use this blog post. To get count of CSS locators. But of not avail, method is - public static int getCSSCount(String cssLocator) { String jsScript = "var cssMatches = eval_css(\"%s\", window.document);cssMatches.length;"
G'day, I'm working with a fairly DB heavy web app and looking at setting up automated testing for it using Selenium. However, as an automated testing newbie, I don't know where to start. How do you categorize your tests to make sure they're logically
I have been trying my hands on opensource tool selenium, i was actually looking for selenium video tutorials. I haven't found any good resources. I know there is documentation for selenium. But am more interested in video tutorials. Any help in sugge
I'm trying to capture the id of an element that will be randomly generated. I can successfully capture the value of my element id like this... | storeAttribute | //div[1]@id | variableName | Now my variable will be something like... divElement-12345