Questions tagged as 'selenium-webdriver'

1
answer

When you finish the script with "Ctrl + C" (KeyboardInterrupt) it does not close Selenium or Firefox

I'm using selenium to handle a page, while running the script it opens firefox, but what I wanted to do is the following, if any problem occurs in the script or if the user terminates, I want the firefox to close as well. I tried several thin...
asked by 28.09.2017 / 18:27
1
answer

Selenium WebDriver_ Access the page without opening a browser

Does anyone know if I can access the page without opening a browser? That is, to do the tests without opening the browser. How? If you can give me a light. I'm using the Firefox browser     
asked by 08.07.2016 / 20:52
1
answer

Error executing script in python in Laravel controller

Currently my scripts work perfectly within the schedule that run at specific times within my server's cron. The problem is occurring when I try to execute the method inside the controller, this method basically uses a shell_exec () that e...
asked by 29.06.2018 / 22:36
1
answer

C # SELENIUM - How to read elements of a webpage by keyword mention

I'm creating a Bot that searches a word in google and writes to a txt file all the links found in the search I'm currently trying to find a keyword on the search result page, I store the links that contain that keyword in a variable and save...
asked by 17.02.2016 / 14:45
1
answer

Error RSelenium - Selenium message: Java heap space

Hello, I'm trying to scrape the link using RSelenium because the page only generates the information in the html when it is loaded in the browser. Well when this happens I do not know how to do otherwise than with RSelenium. But when the lo...
asked by 27.09.2017 / 19:23
1
answer

Static properties and memory release

I have some doubts regarding the release of resources for cases where my modifiers are static. My project is unit testing and I'm using Selenium for the first time. public class LoginTest : Base { [ClassInitialize] public st...
asked by 19.05.2017 / 16:46
1
answer

WebDriver Error in Python3.5 AttributeError: can not set attribute

I need to download content from a website. I made a code in python 3.5. When I run it just for a single page the code works fine but when I put it in a loop or function it gives error. The code as function is as follows: from bs4 import Bea...
asked by 20.09.2016 / 19:16
1
answer

How to use the Selenium WebDriver findElement (By.xpath ())?

Hello, please, I'm trying to get information from a public site: name of a vote, date and table with list of votes This site: link I used Python 3, selenium webdriver and PhantomJS: from selenium import webdriver path_to_phantomjs = '...
asked by 31.10.2017 / 11:47
1
answer

Set download location and name of each downloaded file - Selenium WebDriver C #

I'm doing an automation using Selenium with Chrome WebDriver. The application has to do a series of downloads that need to be saved with different names (Data + Report type) and folders that match the type of report I'm downloading. The probl...
asked by 03.08.2017 / 16:04
4
answers

Selenium can not find by id

I'm running a test with testNG along with Selenium org.openqa.selenium.By Test, do this search: driver.findElement(By.id("idRoleCheck:0")).click(); It gives the following error:    org.openqa.selenium.ElementNotVisibleException: ele...
asked by 23.09.2016 / 16:27