Hot answers tagged

3

Question yourself if you really need to test on Safari on WINDOWS? Safari on Windows has been discontinued since half 2013. I would say focus on the latest Safari on Mac OS X instead. The chance a windows user installing an old version of Safari is extremely small.


3

You should consider other tools to test it as Selenium is browser automation framework and you seem to be talking about REST API. Selenium limitations are: You don't have control of HTTP Headers, you will need at least Content-Type It will be tricky to send non-GET requests (POST, PUT, DELETE, etc.) So the options are in: Use underlying Selenium ...


3

I find MITM proxies and Mocks/Stubbing to be the most advanced pieces of Technology in Automated Checking. By using these, it makes it far easier to: Create repeatable, consistent checks Decrease overall execution speed Segregate the application into logical pieces Record executed manual tests But for the real answer, QA's knowledge and senses is the ...


2

The most recent developments that I have observed are: Running tests in the cloud. Companies like Sauce Labs and Browserstack are leaders here. There are many advantages to this, from the number of devices being tested to the number of parallels servers that can be used. Writing UI tests using UI tools. Products such as Ghostinspector, heliumhq and ...


2

multiCapabilities: [ {'browserName': 'internet explorer'}, {'browserName': 'chrome'} ], maxSessions: 1,


2

Use Select method in WebDriver- WebElement contractType = driver.findElement(By.xpath("//select[@id='user_contract_type_of_contract']")); Select dropdownField = new Select(contractType); dropdownField.selectByVisibleText("Contract onbepaalde duur"); OR // Select by using index starting from 0 to ...you have to select 2nd option so take as index-1 ...


2

That's a connection issue between Selenium and Firefox. There is an open bug on it here that has some information for potential a work-around. The issue, from what I have been able to tell is Firefox 45+ is having issues with Multithreading on a single node from Selenium. Potential fix, untested by me and from the bug report linked above, would be to ...


2

Use contains() or starts-with() function in xpah : Solution : With contains : //div[contains(@id,'post-body')]/div[1]/form[1]/input[1] With starts-with : //div[starts-with(@id,'post-body')]/div[1]/form[1]/input[1] Let me know If any query.


2

Selenium is a software library to locate elements on web page and interact with them. To deal with images, you need to use different library. Selenium can provide screenshots (images) but you need to use something else to work with such images. As a programmer, you need to master more than a single library, and learn to use right tool for the job.


2

I would go with rspec using capybara as effectively the next 'layer' down. Your existing experience should make it relatively easy. Make sure your UI tests are backed with a reasonable amount of model and controller tests. How much and what to test vary from place depending on what your built, your adherence to a rest model, etc. Try to put logic in models ...


2

I think you should continue with your script using Selenium for existing functionality. Once your all sites development work is completed, I mean once your all modules are ready then It's easy to move Selenium script in to Cucumber script. So my opinion you should continue scripting with as usual Selenium for existing functionality, because It's easy to ...


2

Something along the lines of the following code should give what you desire. Do this after instantiating your driver but before finding the elements (In the SetUp methods preferably). driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);


2

Selenium is a system for operating a web browser by remote control. You can cause the browser to perform actions, and you can retrieve information in the DOM using different criteria. Selenium is not a system for installing software, managing tests, or managing test data.


1

Here some points about sikuli I have discovered: Sikuli can not select by 100% text match. So it is extremely difficult to use it in financial applications cause there are not too many different GUI elements, but lots of similar buttons, lists, tables... So how could you select specific string (by its contents) in table with 1000+ rows (only 25 are in a ...


1

IIRC selenium webdriver creates a fresh FF profile each time it's constructed. I found a link about how to set it to a different profile (one where your bookmarks, addons etc. exist) Regarding IE, I imagine profiles with IE more difficult perhaps? Why would you want this though? I can maybe understand why you'd want a particular addon to see how it ...


1

After working on this for a few hours with a colleague and doing some in-browser debugging in Safari we came to the following conclusion: The element was not visible ('below the fold') and Safari was not able to find the element to then click on. The solution was to scroll to the area of the page where the element existed by finding a nearby element ...


1

You cannot do that with just Selenium, as @Peter-Masiar mentioned, but you can look at the Structural Similarity method. Additional link. My company has been using this method quite a lot for testing.


1

One non-selenium tool we use (we use the paid version) is GhostInspector which has several options for screenshots including comparing by % difference and by css selectors to target areas.


1

Use Sikulix API. Sikuli is a library that will help you compare two images or recognize images when they are displayed on your screen. After the said image is displayed, you can click on the recognized image. Download Link: http://www.sikulix.com/ Go for the download link: https://launchpad.net/sikuli/sikulix/1.1.0 Download sikulix-setup-1.1.0.jar Run ...


1

Try using the locator of the check box with keyword click element instead of Select checkbox. Click Element | xpath=(//input[@type='checkbox'])[3]


1

You can calculate hash of images and then compare the hashes for equality. SO has a question on calculating hash


1

form.form-horizontal > div:nth-child(3) > div > input I suggest spending 20 minutes here


1

I found a solution that requires no browser profile with a client certificate preconfigured but rather test must provide the certificate. The downside is that it is based on PhantomJS Web browser implementation, not on Firefox or Chrome. You just need to install version 2.1.1 version or later. A client certificate can be provided with the following ...


1

Selenium does not have the capability to automate the desktop applications.It cannot recognize the objects in a desktop application. Selenium drives the testing using the driver object that identifies the elements on screen using id, cssselector, xpath etc. which are not present in a desktop app. Though there is ID behind the elements in a desktop app but as ...


1

I don't think you need anyone's permission to shift to SAP testing, but in case you feel you needed one, you have my permission :-) Regarding if someone will hire you, it depends on your skills and their need, no one here can answer that.


1

It looks like the different C# browser drivers all extend RemoteDriver and end up sending the find elements commands over HTTP using the WebDriver protocol. Therefore, the actual finding of elements within the DOM does not take place in the C# driver code. Instead, it's ultimately up to the browsers themselves to provide responses to these commands. For ...


1

What I have done to deal wit CAPTCHA, is to test on a dummy site but the CAPTCHA was a static one. I do not agree with the people here saying to remove it because they site layout will be affected.



Only top voted, non community-wiki answers of a minimum length are eligible