Reputation
527
Top tag
Next privilege 750 Rep.
See vote count; VIP usercard
Badges
2 10
Newest
 Yearling
Impact
~5k people reached

1d
comment Selenium Webdriver runs in root but not in non-root account
To work out why you get a NoSuchElementException, you need to know the state of the browser on the line which is erroring. I recommend you set up a junit rule which will make it take a screenshot (if that is possible) and log the state of the DOM. That way, you'll be able to diagnose these errors yourself; and that's an important skill, because if you work with webdriver much you will get a lot of those errors.
Apr
24
comment Testcases fails on chromedriver
Yes, this is likely to fix it. The null pointer exception points to the driver object (or lack of it) being the source of the problem.
Apr
24
comment Testcases fails on chromedriver
The findElement method doesn't through a null pointer exception if the selector is wrong, so using a css selector won't fix it. This kind of exception is thrown if the driver object doesn't exist.
Apr
24
comment Python selenium - how can I loop a function to make 100 Copy accounts using different emails
Do you know the email addresses in advance, i.e. are you working from a fixed list? Or could you make up the email addresses in the code?
Apr
24
comment how to iterate over a collection of items in selenium webdriver
Can you post the html of the elements you're looking at? Also, can you explain what it is about the second element that you're interested in, and how you can tell it apart from the others?
Apr
21
comment Selenium WebDriver automation testing G-mail with iteration
Hello or kowalsky, and welcome to sqa.stackexchange. It sounds like you're asking how to implement data-driven testing with webdriver. There are a number of standard ways to do this, for example using Junit parameterized class runners. You need to try these out for yourself, and come back to this site if you have any specific questions about the implementation; this is the wrong place to ask for help in something where you haven't even started it yet.
Apr
21
comment Selenium webdriver with python - cannot find dynamic content
Hi account4327, and welcome to sqa.stackexchange. Have you looked into the webdriver's switchTo() method? There are already plenty of answers here, and on stackoverflow, discussing it.
Apr
20
comment Selecting multiple options and deselecting options using Selenium with python
Hi Moj: can you give more detail about what goes wrong when you run your test, and what your expected result was? If there is an error, some detail from that would be useful.
Apr
20
comment Newbie: Unable to identify objects in QTP from QC?
Hi Subhash - I think most of what you say there would be better as a comment on the question, rather than an answer.
Apr
16
comment Opening Multiple windows of firefox in the same test case
Good luck with that - but definitely replace those sleeps with explicit waits. They'll do the job more reliably, and never waste any time when the browser runs quickly.
Apr
16
comment How to click on Canvas element?
Your xpath still wouldn't find any canvas element in that html, I think. I recommend using FirePath in Firefox to validate that your xpath works correctly.
Apr
16
comment The best time to run acceptance-tests with Cucumber/selenium?
Hi Pedro; there are good reasons to run the tests on both environments, but it depends on what those environments are used for. Is your qa site only for the use of the software testing team?
Apr
16
comment Mobile automation
Hi Sunil; I'm sorry but your question doesn't really belong on this site; the answers would be different people's opinions without any way to decide what is the best answer. You'd be better off with a forum site (e.g. sqaforums.com/forums/selenium) where the answers can be discussed? Good luck finding a solution.
Apr
16
comment Opening Multiple windows of firefox in the same test case
Rather than running multiple testcases at once, it might be possible to speed them up. If you have any sleep() calls, replace those with explicit waits to cut down on waiting time; and try running it in a headless browser to make it go faster; I recomment PhantomJS.
Apr
15
comment Selenium - what is the CSS for the following Xpath
Hi Monika, welcome to sqa.stackexchange! About your question: on this site, when you ask a question you really need to show what you have tried so far and say why you think it isn't working; you shouldn't just ask for a solution to your problem without having tried it yourself first. If you don't know how css selectors work at all, then there are many tutorials where you can find out; Alan Richardson's book Selenium Simplified is very good.
Apr
14
comment Smoke testing by Dev team
A small number of deployment-validation tests to exercise the dependencies sounds like a good idea. However, I agree that needing the developers to do functional testing of each module sounds like overkill.
Mar
27
comment sometimes “invisible element” exception and sometime ‘timeout’ appers
When you're running the test, in release mode, are you sure that the div you're clicking on is visible?
Mar
23
comment Quantifying change size in a deploy
"Change" by itself doesn't mean anything. Degree of change of what? What are you trying to measure, and what for?
Feb
12
comment Confuse about internet banking testing
That is a terrible exam question. The wording implies that you should only do one type of testing, which is ridiculous.
Oct
14
comment Selenium WebDriver - how to cleanly code with PageObjects in combination with By locators?
Are you sure you need to extract these locator values? If you need to find a dynamic element in the same containing DIV, you can declare the DIV itself as a WebElement and use the WebElement's findElement() method. If you need to determine if an element exists, just call the WebElement's isDisplayed() method.