New answers tagged

0

You need to run selenium server before you execute your test cases. Try following steps: Open Terminal / CMD. Navigate to directory where your selenium-server-standalone-2.33.0.jar is stored. E.g: cd /User/Documents/Selenium Execute following command to run the server java -jar selenium-server-standalone-2.33.0.jar This will start selenium server. ...


0

driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS); is the correct and cleanest way of doing this in my experience. Call it once after instantiating the driver, and all subsequent calls will correctly wait for whatever timespan specified (60 seconds in this case) It is better to be generous in timeframes for explicit waits, as lower ...


-1

You can do: browser.get('file:///path/to/my/html/file/testing.html') Edit. You are trying to open a html fake page ( I assume for get the HAR content ), also trying to mock the request (you can do it, but it's more difficult than that), when you can get the same result loading the html file from selenium.


-1

click on element first then do sendkeys, and if .click() is not working you can click on the element through taking coordinates of the element on the page or click on it using robot


1

This worked for me in webdriver.io var webdriverio = require('webdriverjs-angular'); var options = { desiredCapabilities: { browserName: 'firefox' }, ngRoot: 'html' // main application selector }; var wd = webdriverio.remote(options).init(); var wd2 = webdriverio.remote(options); ...


1

You first need to get the attribute of the element by using 'Get Element Attribute' of selenium2Library: ${style}= | Get element attribute | id=check_style@style Once you get the attribute like "width:20px;height:20px;background-color:#ffcc00;" then, you can get background-color very easily from this string by using 'Split String' of String library: ...



Top 50 recent answers are included