Questions tagged as 'selenium'

0
answers

NullPointer Exception when using the @Before and @After notations in Selenium

When using the ratings @Before and @After , it is giving nullpointer error. Does anyone know what to say? Follow the code: import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; impo...
asked by 26.05.2018 / 22:34
0
answers

Selenium does not find the element

I'm starting to study Selenium WebDriver and I'm doing some testing. I created a fictitious account on an e-commerce site to automate a product purchase. I can access the page, log in and go to the main screen, but in this page I try to sear...
asked by 15.05.2018 / 02:57
0
answers

How to type in a textarea with selenium python?

I'm trying to comment on instagram with selenium just for testing, but I'm not able to type inside the textarea, follow the part of the code. comentar = driver.find_element_by_tag_name('textarea') comentar.clear() comentar.send_key...
asked by 04.05.2018 / 13:15
0
answers

How to end process 'chrome.exe' at the end of script execution

I've implemented a script using selenium that accesses a few pages. The code is working exactly as expected. My problem is when script ends its execution which happens in two ways: When the user closes the browser (ChromeDriver) When th...
asked by 28.02.2018 / 18:59
0
answers

Selenium 3.8 + Firefox 56/57 does not run in Background

I have a service currently running with Firefox 46+ Selenium 2.53. But I need to update it and I'm trying to use Firefox 56 or 57 with Selenium 3.8. When I run on my machine the service runs nice, but when I run it as windows service, it does no...
asked by 12.12.2017 / 13:13
0
answers

What is the best way to scratch the Datasus site in Python?

The link is this: link I'm trying to send a POST through the requests with a dictionary containing the categories I want, but then the URL is still static. Do you think Selenium would be more suitable for this? Has anyone done anything l...
asked by 15.12.2017 / 17:07
0
answers

Selenium works with Firefox, but not with Chrome

I was normally using Firefox in Selenium with Python, but wanted to do some testing using Google Chrome, so I made the following change: self.driver = webdriver.Firefox() To self.driver = webdriver.Chrome() It opens Google Chrome but s...
asked by 16.11.2017 / 12:50
1
answer

Parallel tests using Selenium / TestNg and Database

I have 1165 test cases and it takes 36 hours to run + run this all in 3 different browsers and I'm going crazy with that delay. My question is whether you have to run parallel tests using selenium / testng and your classes need to access the...
asked by 10.10.2017 / 16:15
0
answers

Selenium testing on Linux

I have a suite of tests with 36 fonts, in Windows runs smoothly, in CentOS gives the error:    Chrome failed to start: exited abnormally. It is interesting to mention that when I run tests 1 to 1 the problem does not occur, just when I ru...
asked by 07.08.2017 / 13:25
1
answer

Configure webdriver Firefox in Selenium

I'm using selenium (Python) to fetch some data from a website, at some point I access a link that downloads a file. How do I configure webdriver (Firefox) so that it automatically accepts the download, without which I need to click download?   ...
asked by 05.04.2017 / 17:14