Tag Info

New answers tagged

0

Check if: element is visible in your viewport, if not, try calling maximize_window() in order to maximize the current window that webdriver is using, your element is not appearing twice (under the same selector), and you're selecting the wrong one, if your element is hidden, then consider making it visible, if you'd like to change value of hidden element, ...


0

Yes, I am using profile. I am trying to use Chrome browser but it is not working. Is there any tutorial that I can use? What is firefox portable?


0

One possibility: Run each thread against its own instance of the application. Depending on the cost of instances, this may be too expensive. But it does eliminate crosstalk among tests.


0

Whenever I am writing automation around "New" logins, you really have to ask yourself: "Is this new user necessary?" a lot of times in my earlier years I would create a new user each time I did a test, and realized I only needed to create a few to handle all of my testing steps. This may not be the prettiest answer, but following best practices will minimize ...


0

The first thing I would start with is ensuring that you aren't testing more than one type of user repeatedly. Check out "equivalence partitioning".


2

The answer was buried in some MSDN documentation that was challenging to google-reach: http://blogs.msdn.com/b/visualstudioalm/archive/2013/09/16/using-internet-explorer-11-and-not-able-to-record-a-web-performance-test-successfully.aspx Also ... don't forget to enable the test tool. Might have to check a couple places.


0

Can you try this and see if you still get the same error? Also rebuild your entire project to be sure. File pathToBinary = new File("C:\FirefoxPortable\FirefoxPortable.exe"); FirefoxBinary ffBinary = new FirefoxBinary(pathToBinary);


0

I would suggest just exporting a jar file for your project. All the libraries will be packaged together in the jar files(including TestNG) and you can simply double click on the jar file to start your tests. Make a runner file that calls all the tests you have to run one by one. External resources (if any), will have to be available for the jar file though. ...


0

In Selenium features the server and client are running in separate processes. Therefore when mocking time with a tool like Timecop, the browser controlled by Selenium will still see the unmocked system time. Simple case: Synchronizing the client’s time with the mocked server’s time = render "layouts/sinon" # the card attached partial Advanced case ...


1

From your question I'm assuming that you want to run your automation tests built using java one after the other using a batch file. Yes, you can run the tests using a batch file. Open a notepad and add your tests (binaries) like below and save is as YourTestFilename.bat echo off % java C:/Test/Test1 % java C:/Test/Test2 % java C:/Test/Test3 Or % java ...


1

I'm not sure what testing library (if any) you are using to execute the tests; I'm going to assume jUnit here, because that's what most people use for testing in Java. Similarly, I'm not sure if you're using ant or maven with this project. Using JUnit You can invoke the JUnit test runner from the command line using the following: java -cp ...


1

when I select the popup link it opens in a new frame on the same page. For webdriver, you have to explicitly move the driver to a new frame. If you can identify the frame, you can use driver.switchTo().frame() to find elements inside it. Does that help?


1

I really like the answer from the link Philip Beadle posted in a comment: It's a bad idea to test the core browser's behaviour as it's not your logic, i.e. you should not need to test that arrow keys work with options since that's something your browser implements. And some Protractor (JavaScript) examples how to handle the drop from the same ...


0

Hello @rOCkINGsp007 , when ever your finding elements with tag tr , then just check whether the element is visible or not. If element is visible/displayed then add it an array and at last you can find the total number of elements were displayed in a page from array



Top 50 recent answers are included