Questions tagged as 'selenium-webdriver'

1
answer

How do I capture the text of a webpage with Selenium?

I need to create a default People Generator by using the link site with Selenium. This is the code I have for now: [TestFixture] public class GeradorDePessoas { private IWebDriver driver; [SetUp] public void SetUp() {...
asked by 14.06.2018 / 18:16
1
answer

How to click on a link in a frame using Selenium WebDriver?

I'm studying a book Automating Massive Tasks with Python. I'm on page 317 that talks about Selenium WebDriver about methods of finding elements on pages. Table 11.3 - The Selenium WebDriver methods for finding elements. After doing this littl...
asked by 14.06.2018 / 08:04
0
answers

Selenium does not find element

Follow the code. Selenium does not find the element: package test; import java.util.concurrent.TimeUnit; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import org.openqa.selenium.By; import org.openqa.seleni...
asked by 11.05.2018 / 15:11
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

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

Identify items from a combobox and play in the loop for using Selenium JS and Python

I need to make a for loop to open an x number of tabs and each tab uses a different dashboard. The first part I already did how could make the second? Remembering preferentially with Xpath using JS and Python. Here is the code: # Abre qnt...
asked by 13.11.2017 / 19:31
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

How do I upload the image in this case

Each time I try to upload the image either by disk or by a link on the internet I get error in the line where the find_elemento statement is. I ask someone to try uploading to this particular site and tell me how you successfully uploa...
asked by 12.08.2017 / 17:36
2
answers

Selenium WebDriver

I'm learning to program test automation using Selenium WebDriver with Java, but when I run the same test in Firefox and Internet Explorer the following message appears:    Exception in thread "main" org.openqa.selenium.NoSuchElementException:...
asked by 04.06.2017 / 01:21