Questions tagged as 'selenium'

0
answers

Problem collecting links from a site

Expensive, good morning! I'm writing a program in Python to collect links from a website. The part of the code that collects the links is: links = driver.find_elements_by_xpath('//*[@href]') for link in links: print(link.get_attribute('hre...
asked by 31.10.2018 / 13:48
1
answer

Tweak selenium python download name

I'm downloading a pdf through the automatic navigation through the site, so I deactivated the pdf preview of chrome and activated to download the pdf automatically, how would I change the name of this pdf file by code? There are 64 files, I thou...
asked by 22.10.2018 / 21:58
0
answers

Running loop in selenium without crashing the form c #

Good afternoon friends, I'm developing whatsapp marketing automation software using selenium and C # language. The software is already functional and functional, however, I want to perfect it ... basically it has the function of sending messa...
asked by 07.10.2018 / 22:02
0
answers

Test error with Selenium with Python 3.x

I'm doing a test on a simple page that I created and runs with flask just for testing, I'm using Behave and Gherkin to create the cases. The error occurs when selenium has to fetch the form's field ID from a simple post inside the page's blog....
asked by 27.09.2018 / 15:00
0
answers

Cucumber failing to instantiate class, 'steps undefined'

I get these errors on the console every time I try to run my test using cucumber with selenium: cucumber.runtime.CucumberException: Failed to instantiate class br.gov.pb.receita.atfbdd.steps.arrecadacao.ConsultarLancamentoARR001 - this class d...
asked by 17.09.2018 / 22:24
0
answers

How to get span text? but when one has an img in that span of error!

The following code gets the span , but if it has a img it has an error. user = driver.find_element_by_xpath('//span[@title = "{}"]'.format(names)) user.click() My system takes title from span and clicks it. But wh...
asked by 14.09.2018 / 18:13
2
answers

How to retrieve the second text in a validation with AssertEquals

I have this code: AndI'mtryingtoretrievethetext"AutoTest". I made the following code here. WebElement idMenu = navegador.findElement(By.id("dropdown-menu-profile")); String valortesteAutomacao = idMenu.getText(); assertEquals("Teste_Aut...
asked by 15.09.2018 / 16:21
0
answers

Add chrome extension in app.config

I'm using autofac with specflow to call the instances of the browsers and would like to know if there's any way to set an extension for the direct browser in the app.config something like this: <--component name="Chrome" type="OpenQA.Sel...
asked by 27.08.2018 / 15:56
2
answers

Error when using Selenium WebDriver in Python

I'm trying to develop a script in Python that simply opens the browser as shown in this Selenium with Chrome , but every time I try to run the program I come across the following error:    navigator = webdriver.Chrome () AttributeError: mo...
asked by 20.07.2018 / 09:48
1
answer

Python WebDriver Selenium does not find the item on the page after loading

I'm having a problem fetching an item from within a page, this item loads after loading the page via ajax or iframe , is there any way to to create a condition for the script to wait until the item appears? To exemplify my problem I did th...
asked by 13.07.2018 / 13:52