Questions tagged as 'selenium'

1
answer

Problem with annotations @BeforeTest @AfterTest in automated testing

I am learning to use Selenium with Eclipse for the automation of tests. When I try to run annotations, I get the error:    the annotation "X" is disallowed for this location. As I am starting with the theme, I am leaving something importa...
asked by 26.10.2017 / 10:02
2
answers

Selenium event click

I'm starting with Selenium and I'm doing tests on a website, but I find the following structure, and I can not click on the next one. It is a link inside a li tag. <li class="last"> <a onclick="sendFormWithOptionsCU(event, 'https...
asked by 01.11.2017 / 14:39
1
answer

Selenium element not visible Python

I am trying to log in to a site urgently through Selenium. All the sites in which I try to log in I could except this one. After putting this part of the code shows me a Python 2.7 error: Traceback (most recent call last): File "<stdin>...
asked by 04.10.2017 / 19:36
1
answer

Class Def Python Try / Except

I'm looking for someone to help me with funciones and clases python. I had always worked with functions but never with functions within functions. When I wanted to run the program I did not perform any of my functions until I chang...
asked by 13.10.2017 / 18:08
1
answer

WebDriver in Python with Pycharm does not work

These are the imports:    Update to the latest version of Selenium from lib2to3.pgen2 import driver import time from selenium import webdriver import datetime driver = webdriver.Chrome() driver.maximize_window() And here is the program...
asked by 23.11.2017 / 21:38
1
answer

WebDriverException: Message: 'phantomjs' executable needs to be in PATH

I'm trying to run a program that uses the selenium library and it throws me the following error: Traceback (most recent call last): File "C:\Python34\prueba_nuevo_bot.py", line 2, in <module> bot=FacebookBot() File "C:\Python34\F...
asked by 29.06.2017 / 14:45
1
answer

OpenQA.Selenium.WebDriverException

I'm starting to do small automated tests with Selenium webdriver and Visual Studio. Generated a unit test project with the following code: Then I downloaded and installed the corresponding webdriver. When running the tests it opens the...
asked by 09.07.2017 / 03:46
1
answer

How to configure the path for geckodriver in Ubuntu?

I'm doing a TDD tutorial on Django and selenium. I'm using Ubuntu and the first part is to run the following code: from selenium import webdriver browser = webdriver.Firefox() browser.get('http://localhost:8000') assert 'Django' in browser.ti...
asked by 04.06.2017 / 23:35
1
answer

How can I place a LoadPage in Selenium globally

Good day, I'm automating a web application (With JAVA-Selenium), since I have to wait between pages, I'm using the Thread.sleep but it makes me a bad practice because I'm putting it between each line of code, I'd like to know if there is an exte...
asked by 16.06.2017 / 19:04
1
answer

How can I find a java WebDriver checkbox item?

I need to find and select a checkbox. <p class="checkbox"> <div class="checker" id="uniform-cgv"> <span class="checked"> <input name="cgv" id="cgv" value="1" type="checkbox"> </span> </div>...
asked by 08.04.2017 / 20:31