Tag Info

New answers tagged

1

Selenium is not able to interact directly with OS functionality. So unless there is some backend service that allows you to create the connection through the browser somehow you can't use Selenium for this. Options: Write custom code to do this outside of selenium and then put it in the middle of your test Utilize another testing tool at least for the ...


1

Suggestion: Every test automation shall run in a dedicated environment, dev code/script/db changes shall always auto deploy to this environment, automated test shall only run here. With such design the team can easily design the automated test an test data as well. After each success test execution, restore the whole db.


1

First: You have md5 encrypted passwords. When it is theoretically no way of decrypting md5 encrypted password there is a way to decrypt a MD5 hash, using a dictionary populated with strings and their MD5 counterpart. As most users use very simple passwords (like "123456", "password", "abc123", or in your case 's'), MD5 dictionaries make them very easy to ...


0

When you use driver.getPageSource() it gives you entire page source. To be more efficient, use something like this: WebElement element = driver.findElement(By.xpath("//*[contains(.,.)]")); return element.getText.contains(data);


0

It depends on what your tests are actually testing. "functionally" it should behave similarly, however alot of the variation is with browser/javascript/other component interactions. Headless would allow the functional test, but not guarantee the variations introduced with different platforms/browsers. When you add another third party like x virtual it ...


1

1.In eclipse i have executed the tests they are working fine, how i have to execute them in production server? Your tests can run in every environment. You can have a Selenium Hub and many VMs with different operating systems and browsers. But for the beginning the tests can also run from your local computer. You can choose against what environment ...


0

Here is the method I use to take screenshots using webdriver: private void takeScreenShot(EPropertiesNames path, Integer... screenID) { File directory = createFolder(path); try { // Toma la captura de imagen File imagen = ((TakesScreenshot) accesoWeb.getDriver()).getScreenshotAs(OutputType.FILE); StringBuilder sb = new ...



Top 50 recent answers are included