Tag Info

New answers tagged

0

From your code example and the url you provided I figure that you just want to find a specific Element on your map click it and if the popup window opens your test is successful. Here's how you can do this in a much simpler way: public class ClickMarkerOnMapOpensCorrectPopupTest { private static WebDriver driver = null; private static final By ...


0

It rather sounds like your first port of call should be talking to your development team to find out exactly what processes are affecting the text entry. There's definitely something moer than you know if those steps aren't providing results.


0

You can do this by following click on the login button use the command -> d.switchTo().activeElement(); Here 'd' is the Webdriver instance Also you may check if there is any frame in the pop up or not. Because you have to switch to the pop up and then iframe. Hope it helped :)


0

Each node has three configuration items: browserName, version and platform. The version is a "free" format. If you give each of your nodes a made up version name (999,998 and 997) then you can use the Grid capability to force a test the run on the version name of choice. Start the nodes with -browser version=999 In your test ask for a capability: ...


0

I've solved! Surfing on the web I've found this post http://seleniummonk.blogspot.it/p/how-to-handle-ssl-cerificates.html that gave me the solution. I need to use the "Firefox profile" (I use the default one ...), so I can have all the certificates I need to. Here you're the new code that works package myTestProjects; import ...


1

I've solved!! Here you're the code that works! package myTestProjects; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxProfile; import ...


1

Just use an Excel library to load data from Excel files and use that data in your Asserts? C# and Excel: http://stackoverflow.com/questions/657131/how-to-read-data-of-an-excel-file-using-c C# and Asserts: https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.assert.aspx


0

Are you creating object for the RemoteWebdriver class and setting the capablities for the firefox browser and chrome browser, on which you want to run the tests ex:RemoteWebDriver driver=new RemoteWebDriver(); capability = DesiredCapabilities.firefox(); Pass the capability object to the driver.


1

If link is not visible, wait.until(ExpectedConditions.visibilityOf(lnk)); will time out. Wait cannot succeed if link is hidden. In general, Selenium does only what user could do. If user cannot click on a link because it is hidden, Selenium cannot either. That's the whole point.


0

Selenium WebDriver Practical Guide http://goo.gl/YMyEcQ Creating automation test scripts for your web applications with Selenium WebDriver has never been easier thanks to this user-friendly book. All you need is a basic knowledge of Core Java, and then the practical tutorials supply the rest. About This Book Covers basic to advanced concepts of ...


0

you need to switch to desired window before printing the title: handles = driver.window_handles for ii, hh in enumerate( handles ): driver.switch_to.window(hh) print 'window %s has title %s' % (ii, driver.title)


2

You can get the nodevalue of the element using Javascript document.getElementsByClassName('dialog-components')[0].getElementsByTagName('h2')[0].childNodes[2].nodeValue; Use executescript to execute JavaScript in the context of the currently selected frame or window Below is an example in java Don't forget to add return since you need to return the ...


1

I like the method that is used by the conversion from Selenium IDE to Selenium C# personally, which is as follows: for (int second = 0;; second++) { if (second >= 60) Assert.Fail("timeout"); try { if (IsElementPresent(By.Id("blargh")"))) break; } catch (Exception) ...


-1

In Python: browser = webdriver.Firefox() browser.quit


0

This is an interesting question that I have been pondering myself. I am currently using a PageObject design using PageFactory IWebElements (C#). I do not follow this requirement: "Methods return other PageObjects". I will share my design and let others decide if this approach is "also" bad. This approach may do what you are trying to do but a little ...


0

Where ever the selenium library is running is where the browser will run. If you are planning on putting this on a server, you'll have trouble if there is nobody logged in to the console. You should look at Selenium Grid which allows the browser to run on a different machine. There are cloud based services for these clients, for example, Browser Stack ...


0

YAGNI: You ain't gonna need it. So why do extra work if you will not need it? Link from "original wiki", created by Ward Cunningham in 1995 and recommended read for all software developers: YAGNI: "Always implement things when you actually need them, never when you just foresee that you [may] need them."


0

driver.manage().timeouts().implicitlyWait(2000, TimeUnit.MILLISECONDS); driver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS); in my code, above 2 lines used and I comment the second line my application is working fine. //driver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS);


0

No, no and no. :) Do not initialize all your page objects at the start, what if your application keeps growing and growing. We already have hundreds of page objects, this could potential slow down all your tests in the suite. We always use the following way to access a Page: "Methods return other PageObjects" Example from Ubuntu acceptance testing: An ...


0

Since this is one of the top hits on google ill provide the ruby solution if you cant use the http://username:password@url. you can use system input but doing it on windows and on mac are different. Here is the solution on a mac: You would have to detect if the test is running on windows or mac first and then do the corresponding. t1=Thread.new{ ...


0

Instead of javascript{...} try to use javascript(...) (round brackets).


0

I have also added another solution which you wanted to implement ie) passing the values from the servlet post method to your selenium test Download selenium java client driver here Extract the downloaded jar and add the selenium-java-2.46.0.jar and all the other jars in libs folder into /WEB-INF/lib folder of the deployed web app I will add a basic script ...


0

The best approach is save the values from the servlet to a Database. Install continuous Integration server like Jenkins and create a Java project to check for new entries in database. Set cron job for this build. Actually Jenkins has all these features you just have to specify the time interval. Example: If the time interval is set to 10 mins the ...


2

Looking at the examples at their sites, I think using Selenium might be hard since the maps are rendered in images. Maybe a image based testing tool like Sikuli is worth trying. We have build a GIS system based on the Google Maps API in the past and we did successful test this with Selenium, but as Google uses canvas this was also not easy and straight ...


0

From my experience, Yes. It definitely helped my career. I was recently in the job market and in my area all of the good jobs wanted automation experience. If QA is the path you want to continue to follow I would suggest learning Selenium with either Python, Java, or C#. Those are the 3 you will see most often. As someone stated above, salaries are higher ...


1

Have you tried programming in some languages easy for beginners, like Python? Did you like it? If you did, adding test automation to your skills is positive. But if you did not like programming, adding skills for a job you do not enjoy will make you miserable and makes no sense. You may consider becoming a test manager instead (or continue to be an even ...


0

Learning new technical things will definitely boost your career. That too, a free software like Selenium with huge employment, will certainly uplift the career ladder. A * Your experience will help to manage teams. If you know Automation, you could drive a team with automation skills as well. * There are no. of onsite chances (if you wish to go to abroad) ...


2

Of-course it will add value, automated testing is partly programming. Understanding the challenges the developers have while making software products you test is very good. With 8 years of experience you could be under 30 or 55+ in age, depending on how old you are I would decide if you want to learn programming skills and pick it up or not. Also even if ...


-1

Yes you should move to automation after this great experience in manual testing. I think you are little bit late , Tester should move to automation as soon as possible for strong career. Many tester move to automation just after 1-2 years experience in manual testing. It is depends on opportunity for automation and interest of tester. Your decision is good ...


0

From your steps it seems you haven't installed selenium package for Node.js. Execute npm install selenium-webdriver Then run the test again


1

Instead of simple new FirefoxDriver(); try new FirefoxDriver(new FirefoxBinary(), new FirefoxProfile(), TimeSpan.FromSeconds(180));


0

This has been asked a few times on StackOverflow and every answer I found points to using JavaScriptExecuter. StackOverflow Example 1 StackOverflow Example 2


0

Option 1: trifleJs I haven't tried this but it was recommended in a similar StackOverflow question Option 2: Convert HtmlUnit from Java to C# I have used HtmlUnit in its Java form and it is great.


-1

ToolsQA is awesome. Please have a look and do go step by step. You will learn quite a bit.


0

In this case, I think you should capture the element first, just use capture by cssSelector. driver.findElement(By.CSSSelector("span.appt-details-dropdown-service-title")).click(); OR, if the element is not captured by using CSS above, I think this element is temporary hidden then we should use ActionClass to action on the parent element first, --> click ...


1

There are at least 2 approaches: If Jenkins is used in your company, you create a job that runs tests and then e-mails report by Email ext plugin. Or you can add such functionality to @BeforeSuite method with JavaMail.


0

Sauce Labs has good "Bootcamp" using Ruby and WebDriver that is free (but you have to sign up to download). I've done it in spare time and was fun. Lots of example code and an example website.


3

Or there's a third alternative to what Vangelisz suggested. There're several bug reports in the github bug tracker of the said project, and in one of them some nice gentleman points at how to fix the problem. However this requires building the upstream yourself, which in my case takes forever to do so due to a large dependency chain (I've seen QT among ...


0

Follow the below mentioned steps:- 1. adb tcpip 5555 This should give the output: restarting in TCP mode port: 5555 2. Now knowing the IP of you'r Android device (Settings->About->Status) type the following into the terminal: adb connect you should now get the output: connected to 3. You should now be able to debug against you'r device as ...


0

Firefox selenium web extension has an option to make the test run slower or faster using a sliding bar. Not sure if IE or Chrome has this if not i would just use the debugger.


1

I found the solution at http://stuffandtech.blogspot.in/2012/03/android-quick-tip-adb-over-wifi.html. It worked for me. Steps from article: Connect with USB debugging and do adb tcpip 5555 result is: restarting in TCP mode port: 5555 Now do adb connect <you'r devices IP adress> result is: connected to (you'r devices IP adress) You ...


0

Bar code reader can't be tested. If you are using TestNG then you can do load testing,please read this


0

You can't simulate a recovery from a system crash (either loss of internet or machine crash). I'd usually cover these manually to ensure that the devs are posting data in an appropriate transaction (to avoid partial posts).


0

The easiest way to do that in selenium webdriver is to extend your prefered WebDriver (e.g. FirefoxDriver) and override the execute methods. Write a Thread.sleep(yourWaitTime) in every execute method before return. Voila there is your speed reduce: @Override protected Response execute(String driverCommand, Map<String, ?> parameters) { try { ...


0

1- As you said you dont want to use any Third Party tool, then you can not handle windows browse or upload file button using selenium because its syntax is like this- Example: <input type="file" id="browsecv" name="browsecv"> /<input> or you can search it on below link and then inspect for **"browse"** button link: ...


2

The Uri class has a property called PathAndQuery that will strip off the fragment identifier (the part after the #). Assert.AreEqual("/shop/en-US/products/berry-blue", new Uri(driver.Url).PathAndQuery); If you need to test the host name too, you will need to add that back.


1

I would use a String.split command. The way it works is that you can split a string into an Array at a certain marker. So in this case for example. Split using the period and you would have three strings in an array /shop/en-US/products/berry-blue# VXCXwEb0_-s", driver Url Then you can split the 2nd in the list above on the _ character in a new array ...



Top 50 recent answers are included