New answers tagged

0

Possibly this link can help. Just some first steps though, using http://restcountries.eu. Reference: http://learnseleniumtesting.com/rest-api-testing-using-csharp/


1

A Platform independent way to create folder would be something like:- File rootDir = File.listRoots()[0]; File dir = new File(new File(new File(new File(rootDir, "Users"), "xyz"), "screencapture"), "new folder you want to create"); if (!dir.exists()){ dir.mkdirs(); }


0

@Bunny - Give a try to below solution : element_select_frame.sendKeys(""); textBox.sendKeys("Bunny, Pls Enter your text in text box"); Hope it will help ! Come up if you have queries.


0

Yes, agree and you are moving in correct direction. Automation itself complex so fine if you add little more complexity ;) BTW - I would like to add few things in your plan : Page Factories Pages GoTo [I will say - Page Helper, inlcude all navigation scenarios] Actual Tests Test helper [includes, all common functions for all test] TestHelper.java/ruby [...


0

According to your question use Explicitwait command ,this is useful in finding the elements until it gets enables in webpages.It will wait untill you get desired element in webpage as WebDriverWait wait = new WebDriverWait(driver, 30); wait.until(ExpectedConditions.textToBePresentInElement(By.xpath("xpath expression") You can find real time ...


0

It is very easy to handle excel data using POI as well as JXL jar in selenium.Mostly for jxl jar/POI you have to use Dataprovider in TestNG for easy purpose. You can find more details in this article ,it has given datadriven framework implemention here .Reading data from excel


0

I will suggest to use xpath only if you don't have id classname tagname Use contains in xpath: For Android: driver.findElement(By.xpath("//label[contains(@id,'dv-textbox-label-SubList')]"); For iOS: iosDriver.findElement(By.xpath("//UIAStaticText[contains(@name,'MOBDishwasher')]"));


0

Two reasons for occurrence of Stale element An element that is found on a web page referenced as a WebElement in WebDriver then the DOM changes (probably due to JavaScript functions) that WebElement goes stale. The element has been deleted entirely. When you try to interact with the staled WebElement[any above case], the StaleElementException is thrown. ...


0

@Ami - You are doing in far complicated way I guess Why don't you try to fetch all data you need in below fashion? Very simple solution public Object[][] signUpPage1FieldValidationData() throws Exception{ Object[][] retObjArr=getTestData("<your .xls file name","<your tab name>", "<fields which you wanted to fetch>"); ...


0

@Rajat driver.findElement(By.name("Email")).sendKeys("automation@gmail.com"); This should work to insert values/text into Text-box input field. If not working pls cross-check below points: Screen/Page is loaded completely Assert that textbox is enabled and visible If you found any of above points failing, you should try: WaitForElement(...


4

Try sending an empty key to the element in order to focus on it as well as set get visible over hidden property. For example: hidden_element.send_keys "" // This will make element visible first. hidden_element.click() // Pretty simple job when element is visible.


1

We are looking for a test management tool similar to Quality Center I would actually suggest that the equivalent tool does NOT exist. My experience over the past few years is that you have to pick the programming language and the test automation framework within that language. Even with test frameworks though, you will still need to manually write the ...


0

I also use Tosca Testsuite. I can create Execution lists, do distributed execution, link to our CI and have the risk contribution of the test case. and use the other features, like service virtualization, distributed execution and test case design. http://www.tricentis.com/solutions/testing-with-selenium/ I am not sure if it actually does more than you ask ...


1

I only have experience with Selenium WebDriver, but most like Protractor has an implicit wait going on, which means it tries keep finding elements for a certain amount of time. You'll probably need to turn this off (to 0), in order for the method to immediately return a value (similar issue for Selenium's FindElements method). This could be of interest to ...


0

Why exception arise? The reason behind the exception you have mentioned is because with your test script you are trying to locate an element that doesn't exist in the webpage you are trying to test. How to resolve? Well, along with the text you have provided, the console would also have given the line number in the test script where this exception ...


0

Update Firefox to 47.0.1 and Selenium Java client to 2.53.1


0

As of v2.51.0, the firefox driver supports Firefox 44, so without posting any code that's about all I can help you with. Source


1

I haven't found a way to do a 'mouse over' option but you can use Action Chains to achieve this. Actions action = new Actions(webdriver); WebElement we = webdriver.findElement(By.xpath("expression")); action.moveToElement(we).moveToElement(webdriver.findElement(By.xpath("expression"))).click().build().perform();


0

Similarly, This Exception is thrown when JRE can't find a class.This problem arises when we don't include a particular jar file i.e;"org-apache-commons-logging.jar"in the Referenced Libraries. Try downloading the jar and add it in the library. Hope yourproblem get solved.- SRIVANI


0

This exception is thrown when JRE cant find a class. Double check you have included all the necessary libraries


0

Robot Framework. It is a generic test automation framework for acceptance testing and acceptance test-driven development (ATDD). It has easy-to-use tabular test data syntax and it utilizes the keyword-driven testing approach. Its testing capabilities can be extended by test libraries implemented either with Python or Java, and users can create new higher-...


0

You can just use plain Selenium for testing Angular applications. Protractor just makes it easier to test Angular application. Its a framework for testing Angular applications. It has Automatic Waiting for elements and you can access specific Angular elements by.model and by.binding. Also it implements the Page Objects in the framework making tests more ...


0

Yes. You can execute Javascript like so. Of course, implementation may vary depending on the language you're using. WebDriver driver = new AnyDriverYouWant(); if (driver instanceof JavascriptExecutor) { ((JavascriptExecutor)driver).executeScript("yourScript();"); } else { throw new IllegalStateException("This driver does not support JavaScript!"); } ...


0

A new window is basically a new webpage that opens in a separate window or a tab depending on your browser settings. Since you have asked for examples, here it is e.g. visit appium tutorial webpage. Click on any chapter say chapter 1. It will take you to new window/tab. An alert box or pop up window is often used if you want to make sure information ...


0

You have to do some string manipulations to get the desired result String text=driver.findElement(By.id(idOfRecordCountElement)).getText(); String desiredText=text.substring(0,text.indexOf("\n"));


0

Simple solution - Set <String> handles =driver.getWindowHandles(); Iterator<String> it = handles.iterator(); String parent = it.next(); String child = it.next(); driver.switchTo().window(child); //perform actions on child window //perform actions on child window driver.close(); // only for child wondow ...


0

Its possible using Selenium WebDriver's TakesScreenshot interface. Visit https://seleniumlive.wordpress.com/2016/06/24/how-to-capture-screenshot-of-screen-using-webdriver-with-java/.



Top 50 recent answers are included