Tag Info

New answers tagged

0

strong text Hello friends, i saw the source code and understood the problem. I had also the same problem with auto-suggested text box and i saw deeply at the code at the downline you would be seen anchor tag either with ul or li try to see the values whatever you are put in the text box at those anchor tags. Once you would be able to see that you can ...


0

You may find essential information on the official wiki: https://github.com/allure-framework/allure-core/wiki Also I suggest you to watch video from Selenium Conf 14 about that: https://www.youtube.com/watch?v=xrlS-7mLm0E


0

Split your long testcase into two -- one testcase does the stuff before the wait and returns a passing status if it was able to do start the process successfully. The second half of your original testcase runs as a separate testcase that you run at the end of your suite For example, if the test is "click the 'submit order' button and verify an email was ...


1

Solved Error. I was missing main class of java so it was giving me error. Just added main class and then program runs successfully.


0

Basically getoptions() returns All options belonging to your select tag. It finds value in sequence. For example if we have array in java then when array display value from index 0 to end of array. In same way getoptions() start to get value from 1st select and go till last value.


-1

I haven't used the getOptions() function before, but with every other find or get function I've used in Selenium, the objects are returned in the order in which they appear in the page source. That said, why don't you just test it by tweaking your code to display the text of the elements, and see if they are in the same order you see in the browser?


1

MultiScreenShot I found following useful link in Github for Multiscreenshot


0

As Twaldigas said, use contains in an xpath query to find all elements with 'selectedDetailsRadio' in the input id, then iterate through the results. You can analyze the numbers in the id either using string indices or regex.


0

Every driver.manage().timeouts() value lives till the instance of the driver is alive, be it the default value or a custom value set by the user. So to answer your question- Once you set a driver.manage().timeouts().pageLoadTimeout() value it will remain constant throughout the lifetime of your driver instance. If you want to change the value you will have ...


2

you can pass the driver as argument to the methods , so no need to re create them.


0

The default pageLoadTimeout() is a member of Timeouts interface which is set to never in wevdriver according to this. But, it is possible to overwrite. See here


0

You can get list of all elements say by type, then loop over them, check the ID, and by some custom rules decide which one to pick. You have quite a mess on your hands, but do what you can.


0

I have experienced the same thing. I believe that for some reason it stops executing Java scripts on the page once the focus to the browser is lost. My quick workaround was to create a Linux VM on my Mac, and do all the testing (and development) in it, because then the browser is always in focus, even when you do other stuff in the host OS.


0

I think there is problem of latency. So I will suggest you to try slowing your test scripts after first test run. Give enough time to the browser to logout completely and then read inputs for second test and then you pass them into the test scripts. The only thing here is you have to pass values only then when browser have successfully loaded the login page ...


2

You can use WebDriverWait to synch with page load. Something like the following might help WebDriverWait wait = new WebDriverWait(driver, 15); //you can play with the time integer to wait for longer than 15 seconds.` wait.until(ExpectedConditions.titleContains("title")); //if you want to wait for a particular title to show up OR ...


0

Any time someone considers a career change it can be difficult and stressful as you go from an area of comfort to an area of relative unknowns. The difficult thing with learning about testing is there are so many people out there with misconceptions about what we do that it can be hard for someone new to get and stay on the "right path". I'd suggest finding ...


0

It looks like this for me: Windows Ruby Capybara vs Windows Java Selenium + configure connection + patch codebase + run hub As I understand remote Selenium system is not a thing to be added to Jenkins. It was designed instead of it. What do people say? https://code.google.com/p/selenium/wiki/RemoteWebDriver Pros Separates where the tests are ...


1

It actually depends. At first, testing requires other skills than programming. If you will became test engineer with programming experience you would be able to automate more efficient and find accidental regressions better. less pressure on work. and again, softare testing could be very responsible job and you can get much pressure. i have java ...


0

Below link have lots of device available so you can test with more flexibility : http://emulator.mobilewebsitesubmit.com/


1

You can switch your career from java developer to testing field. Mainly software testing includes : Manual testing Automation testing At first, you should learn what is software testing. What is software testing: Test plan, test cases, test scenarios creation Test design techniques Bug reports using tool like mantis , BT tracker , Jira Software ...


0

You have the following options: driver.findElement(By.className="k-button").click(); // Do not work if you have several HTML elements with the k-button CSS class on the same page driver.findElement(By.xpath("//input[@onclick='Post();']")).click; //Do not work if you have several HTML elements with this onlick action on the same page ...


0

there will be 2 reasons : 1 - May be it is trying to click the button before page loads completly in this case you should use wait() 2 - may be that button is located in iframe in this case u need to move to iframe and then click on button



Top 50 recent answers are included