Tag Info

New answers tagged

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 ...


0

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


0

when you need to test ur site for mobile devices, best and economic thing is user agent. Just go to google.com, enable site emulation by right click on site and go to inspect element and go to Show Drawer (icon something like >= ) then go to Emulation and then to device, now select any kind of device you want to check.


0

This seems to be the case where you try to find the element (using findElement) before the page completely loaded its content. At that moment, the element might not exist. Selenium itself already waits for the page to load. But in some cases (JavaScript execution, for example), it doesn't know the page content is fully loaded. So, you need to add robustness ...


1

If ID is shown on the page - it is shown as text in some element. Which has some locator. Find that element and get it's text or value property, as appropriate.


0

I faced similar kind of problem earlier. Here is my suggestions 1- Don't just wait for page to load write a logic for it.Try to make several attempts after a given interval. (refer below mention code. language is perl) e.g. my $wait =some_value; my $url ="something"; for($i=0;$i<=5;$i++){ eval{ $selenium->get($url); } if($@){ print "$i attempt became ...


0

You can use reportNG. Its the reporting plugin for testNG. You can add your message using Reporter.log("Your Message"); If you want to add your alert messages in report and your project is Maven project then add following in pom.xml <reporting> <plugins> <plugin> <groupId>org.testng.xslt</groupId> ...


0

DesiredCapabilities caps = DesiredCapabilities.internetExplorer(); caps.setCapability(InternetExplorerDriver.INITIAL_BROWSER_URL, ""); WebDriver driver = new InternetExplorerDriver(caps);


0

Look at the given link for example- How To Handle JavaScript Prompt Box: http://reditblog.blogspot.in/2014/11/how-to-handle-javascript-prompt-box.html How To Handle JavaScript Confirm Box: http://reditblog.blogspot.in/2014/11/how-to-handle-javascript-confirm-box.html How To Handle JavaScript Alert Box: http: ...


4

Try this line of code: Driver.findElement(By.xpath("enter your xpath")).click(); Hope it works out!


0

The command should be: captureEntireScreenhot which is available in commands and the target should be the address of the folder where the screenshot is to be saved. This has to be written manually. Example as requested. WebDriver driver = new FirefoxDriver(); driver.get("http://www.google.com/"); File scrFile = ...



Top 50 recent answers are included