New answers tagged

0

Q.1 Sometimes "click_button" or "choose" (for radio buttons) does not work. Even when an ID/name is clearly shown in the HTML & it'll throw an element not found? Ans - One basic mistaken we might can do is - if we have seen element on page means that will be identified by program/code too. Don't believe only on eyes, Good if we right code considering ...


0

Purpose of keyword driven frameworks compared to data driven frameworks. Keyword-driven testing is a technique that separates much of the programming work from the actual test steps so that the test steps can be developed earlier and can often be maintained with only minor updates, even when the application or testing needs change significantly. The keyword-...


1

There IS a way to click on a certain coordinates (X, Y), but you need to locate an element as the reference first. Can you please try this approach? Actions builder = new Actions(driver); builder.moveToElement(referenceElement, X, Y).click().build().perform(); where X and Y are the offsets from the reference element.


2

There are testing frameworks for Matlab. Suppose you can automate testing of this development just like you would any other software product. I would not check the visualizations, but check the data instead and trust the render to do its job, unless you ran into issues here in the past. If you need to check the visualizations either compare the output with ...


2

You can use Selenium to develop automated tests for Web GIS applications. Web GIS is all about present the information graphically to a user, and whatever we can see on a web page is what we can test using Selenium. But it will be: very time consuming to develop it difficult to maintain As one thing computer program can not perform as well as humans ...


0

Selenium determines an element is visible or not by the following criteria (use a DOM inspector to determine what css applies to your element, make sure you look at computed style): visibility != hidden display != none (is also checked against every parent element) opacity != 0 (this is not checked for clicking an element) height and width are both > 0 ...


0

Can you please try this approach? element = FindElement(By.CssSelector("input[id='tempname']")) string = element.getAttribute("value") This string should have what you want.


0

You can try sending the credentials in the "Authorization" header using a special URL format like this: [protocol][user:password]@[domain_name] You can copy your homepage url and insert user:password@ after the // For example: https://user:password@www.example.com


0

Preparation and planning is the key. Break the functionality in smaller steps, use page objects. Check this similar post to see some general tips to keep in mind: how-to-automate-functionality-of-this-complex-web-application


0

In order to upload the file using JMeter as a proxy just drop the file to JMeter's "bin" folder. See Recording File Uploads with JMeter article for detailed explanation. If you're still looking for an alternative tool, here are some other free and open source solutions (all of them support record and replay) Grinder Gatling Tsung Remember that in the ...


0

Try Zenoss Core, a powerful open source IT monitoring platform that monitors applications, servers, storage, networking and virtualization to provide availability and performance statistics. It also has a high performance event handling system and an advanced notification system.


0

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


0

There's The Grinder, but I see it hasn't been updated in four years.


0

Maybe you can use Fiddler, it also helps with monitoring requests and responses, and it's pretty easy to use


4

Seems ok, but you should add also the setup for the framework. how to install the framework what do you need to execute a test/suite (Java installed, selenium, driver if needed) how to run smoke/regression (if you have a lot of tests) additional you could add a small documentation and/or links to online official documentation for: the framework, page ...


0

If you have a C# Selenium Framework (built on MSTest or even NUnit) then you may have issues running Parallel tests. Especially if you want to fire these tests off in BrowserStack or SauceLabs. Java framework at least has TestNG to help with this but for dotnet it is a lot trickier...


1

There might be slight differences in behavior of different browsers (because they are written by different teams). Selenium tests can be flaky - fail, and later pass with no changes. As with many Open Source tools, documentation might less than perfect. Reference docs is there but examples might be scattered over blogs. This is rapidly improving recently. ...


0

@Richardson, I would like to mention few where I faced issues or challenges with Selenium: Image or text overlapping issue No facility to deal with Captcha Doesn’t support any non web based (Like Win 32, Java Applet, Java Swing, .Net Client Server etc) applications When you compare selenium with QTP, Silk Test, Test Partner and RFT, there are many ...


0

@rakes, I caught you again! follow below steps for xpath : Enter all details related to targeted android hybrid app in appium GUI Connect to open network Click > Appium Inspector Select field/element you want and check you can find ready-made xpath Agree with @hayi & saurabh-ar too Hope it helps!


1

What I am thinking is as following: driver = webdriver.Firefox() e = driver.find_element_by_xpath("//someXpath") location = e.location size = e.size print(location) print(size) If I can get the size and location for an element, given an element is symmetrical, I can calculate its boarders as well. As long as one element's boarder does not cross into ...


1

That was what I had previously believed also (because I've done dev) until my current position whereas the director is my source for this who actually sees the numbers. Although, maybe its more specialialist thing. You generally don't become wealthy as anyone's employee.


4

Test automation is not high-end coding. You will not become wealthy doing either test automation or unit testing. Typically, unit-testing is not a separate job title. Experience with unit testing is more likely to lead to a career as a developer than Selenium automation. You are likely to make more money as a developer than as a tester.


0

Issue has solved I was looking in different folder which had different pom.xml, :p :)


1

(Full Disclosure.... I work for Pragmatic Works) Pragmatic Works' LegiTest allows for automated Data Validation to quickly verify your data is accurate, error-free, and up-to-date between any two systems with an OLEDB/ODBC/ADO.Net connection (including databases, applications, and web services). Users are instantly notified with data validation results, ...


1

This is a basic control not found error, I would start working up the Automation tree with the control's parents to see that you can find each one using the drawhighlight function below, and then work your way down to this control using this function to troubleshoot and find at which level the search is failing. control.Drawhighlight(); You can also ...


0

That is not an actual popup. If you click/focus on any element in the page it should disappear. Do you need to handle that browser notification? to remember the password? If not it should not be an issue.


2

I think you are trying to detect if elements are overlapping. You will need some way in the clientside to tell you if two elements are colliding. I would try jQuery collision for this or some custom JavaScript code. Add or inject jQuery and jQuery collision to the web-app under test Use the Selenium javascriptExecutor to fire a collision detection on two ...


2

If this overlapped texts belongs to single element, lets say label, or text field. You can locate that element and use "webElement.Text.Contains("the text you want to validate");" method to validate your expected text. And if the overlapped texts belongs to different element, you can simply locate that specific element and validate the text of that element. ...


-1

can we use this appender..... testname testrun ${testname}.log ${testname}.%i.log 1 100 10MB %d{ISO8601} %-5level %C{1} [%M:%L] [%thread] - %msg%n


0

Another approach would be to disable such prompts. If you disable the Firefox Password Manager then you shouldn't get the pop-up to remember passwords. Tools > Options > Security: Passwords: [] "Remember passwords for sites" Since you are using IDE and not really testing anything in the prompt, this solution should work. For webdriver, it requires ...


0

Agree if we use exclude under method tag. I have another solution - Remove "methods" tag from "class" Do not include any method under with prefix "include" While writing code use can use those methods which you really wanted to use Hope this helps !


1

Selenium IDE cmd - There are limitations as to what can be replayed through Selenium IDE. It is not possible with IDE because the popup is not a html object and will not have any locator. It is an ActiveX object. I would suggest you try Selenium Webdriver. Don't bother building tests using Selenium IDE, even though the Selenese script recorded by Selenium ...


1

Some of the things you can do: create a documentation page for the project with best practices ( automation flow, code review standards, automation framework structure, coding best practices, CI process, execution and debugging ) setup the automation repository setup for how the data is generated review and add improvements in the automation framework ...


0

@Cuong - I can suggest to use appropriate classes - Standard Android WebViews: query('webView') Crosswalk WebViews: query('org.xwalk.core.internal.XWalkContent') Titanium WebViews: query('ti.modules.titanium.ui.widget.webview.TiUIWebView$NonHTCWebView') PhoneGap / Cordova WebViews: query('cordovaWebView') IOS WEBVIEWS CLASSES: query('webView') ...


0

I would suggest getting down to HTTP protocol level and focus on simulating browser rather than driving a real browser. Pros: Reliable record and replay (at least more reliable, with minimal correlation) Increased execution speed Functional tests can be converted to load tests in few seconds (even more increased execution speed) Multiple browsers can be ...


0

@Rita, It may happen that LinkText can be recognize by ff and not be phantomJS. This possibility has very less chances. Can you give a try and use other locators like We can just use as 'link=Forgot your password?', using xpath we should use as //a[.='Forgot your password?'] We can also specify the partial text of the link as //a[...


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

@solTesting, I guess, You are messed up pop-up view and background view in UIAutomator Viewer. If not, Open using Appium inspector. Might you can expect better results !


0

In general, if you're asking for a "good" method, it is recommended to create the main load using JMeter HTTP Request samplers and if needed run a single threaded Selenium test in parallel to monitor end-user experience and measure page rendering time, time of JavaScript execution, etc. If for some reason you need to stick to Selenium, first of all, have ...


0

Solution 1 : I use PageFactory with AjaxElementLocatorFactory - PageFactory is a support class for the Selenium 2 Page Objects pattern which you are using, and the AjaxElementLocatorFactory is the factory for the element locators. In your case the constructor will looks like: public GoogleResultsPage() { PageFactory.initElements(new ...


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

Great that you resolve on your own. Similar issue I faced. Below solution works for me - Open project in Eclipse Right click on "JRE System Library" Click on Properties Select "JAVASE - 1.7" In your case, java version might be different. But this works perfectly!


1

@Jakob - Found you again :) public void waitForElement(WebElement value) { // wait for field WebDriverWait wait = new WebDriverWait(ad, 60); wait.until(ExpectedConditions.visibilityOf(value)); System.out.print("."); } Hope this will help ! Take up if you have any questions.


0

Fuzz-based Testing is :- Simple and offers a high benefit-to-cost ratio. Fuzz testing can often reveal defects that are overlooked when software is written and debugged. Nevertheless, fuzz testing usually finds only the most serious faults. Fuzzers work best for problems that can cause a program to crash, such as Buffer overflow, Cross-site scripting,...


1

It is notoriously hard to automate a UI that does not exist yet. In theory, if you and the UI designer work closely enough, you may be able to at least spec out your tests before the UI exists. I have never seen this happen in practice. There are other kinds of automation, though. For example, you could write automated tests against APIs, or automation ...


1

Automation is not limited to the UI. Developers can start automating unit tests from the very beginning. The team could automate constructions towards Continuous Integration. Then, when the project is on a posterior stage you could start automating UI and Acceptance tests.


0

JMeter is made for generating load, and WebDriver is made for testing user interfaces. Neither is great for doing the other. You can configure JMeter to talk to WebDriver -- see this tutorial -- but you cannot just drop your existing WebDriver test into JMeter; you have to rewrite it in a way that only works with JMeter. Going the other direction, some ...


2

Depending on the data, but jmeter can get and store variables to use, you can also set your own variables. It is quite an easy thing to do if you're familiar with basic jmeter. Here's some links on getting started: Basic getting started with HTTP Requests User Defined Variables


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

Yes, that would be awesome, but there is no such tool. (If you are very ambitious, you can try writing it yourself.) The reality of cross-platform UI automation is that it is brittle and requires a lot of maintenance. Any vendor who claims otherwise is more interested in taking your money than solving your problems. Here are some alternatives: Hire ...



Top 50 recent answers are included