Tag Info

New answers tagged

2

If you're trying to register 100 accounts, this is a simple addition to your code to do that. for i in range(100): email_address = "money" + str(i) + "@qa.test" firstName.send_keys("mike") lastName.send_keys("mano") emailField.send_keys(email_address) passwordField.send_keys("test12") submitButton.click()


0

If you want to write your test-cases in Python you could have a look at http://marathontesting.com/ as I found in this SO post. As I understand the MarathonITE supports Applet testing: http://marathontesting.com/tutorials/page/2/#!prettyPhoto[]/1/


2

data-href is an attribute of a HTML tag, try to use get_attribute method, something like: url = browser.find_element_by_xpath("//a").get_attribute("data-href") For more information see: http://selenium-python.readthedocs.org/en/latest/api.html#selenium.webdriver.remote.webelement.WebElement.get_attribute Or this for examples: ...


0

Your if statement feels like it's not even there because when your test encounters and exception and dies, that if statement effectively is not even there. The line of code that is dying is this: xpath = driver.find_element_by_xpath( "/html/body/main/div/article[2]/div[4]/header/div[2]/div/div[4]/a") Your if statement never gets a chance to run. This ...


0

You should write on programming language which you know better and make sure that your colleagues familiar with Java or Python in case of your support. I guess your question has answer and you should start to write on Java. But you will not get any pain if you will try to learn Python because Python is easier to understand in my opinion.


0

The answer to your question is dependent upon your familiarity of the programming language. You should use the language which you are more familiar with and feel comfortable using it. When you will be writing scripts, you will have to implement complex scenarios, which will require you to write complicated logic and once you are done with it, in the future ...


1

At this point of time it doesn't matter which language you'll start with, 'cause both are relatively easy to learn considering the number of educational resources available. The more important thing is the language your application under test is developed with. In case when the application under test written in Java and you do your automated testing ...


0

According my experience JAVA is better if you think about scope and career. I agree with @user246. Also you will have vast area , lots of tutorials to use java with selenium. If you have good command over python programming then you should not switch to java for selenium.


0

Selenium + Java has a lot of tutorials / examples / documentation available. I believe there's plenty of documentation available on using TestNG in Java or the ATU Graphical Reporter if you are into designing automation framework or reporting structures. So, you might find it easier to start Selenium with Java.


0

They work equally well. If you have never programmed before, it may be easier to start with Python. If you want an eventual career as a developer, you will eventually want to learn Java.



Top 50 recent answers are included