Error: socket hang up with executeAsync when running the test from the same...
When running a selenium test with nighwatch and zalenium that is deployed on a jenkins server, if the tests are executed from a remote system there is no issue but if the test is executed from the same...
View ArticleHow do I switch to the active tab in Selenium?
We developed a Chrome extension, and I want to test our extension with Selenium. I created a test, but the problem is that our extension opens a new tab when it's installed, and I think I get an...
View ArticleHow to integrate Behat whith Python scripts?
I have an script in Python to test login on a web page. My question : how to integrate Behat on my test case. Thanks
View ArticleHow to setup Selenium with headless Chrome/Firefox on Raspbian Buster
I have gotten this to work in Jessie/Stretch with previous Chrome/Firefox versions but can't seem to get it to work with Raspberry Pi 3B or 4 running Raspbian Buster and the latest Selenium, 3.141.0 in...
View ArticleScraping Data from a website which uses Power BI - retrieving data from Power...
I want to scrap data from this page (and pages similar to it): https://cereals.ahdb.org.uk/market-data-centre/historical-data/feed-ingredients.aspxThis page uses Power BI. Unfortunately, finding a way...
View ArticleHow do i check if there is an overlapping element for element.click() in...
If there is such an element i get the ElementClickInterceptedException. I don't know in before what element is overlapping, only after the Exception is thrown in the Exception message. It's not about...
View ArticleJavascript generated content detection using BeautifulSoup and Selenium
I'm trying to get all the books regarding computer science from Pearson's website (starting from this url:...
View ArticleHow to get URL attach with button?
I am scraping this website Click here here is button in each record that use java-script to open Spotify page. I want to get URL of that Spotify page using python. I used Selenium and Beautiful-soup...
View Articleorg.testng.TestNGException: Cannot instantiate class error occurring at...
public class Test{ private WebDriver driver; private String baseUrl; @BeforeTest public void setUp() throws Exception { driver = new FirefoxDriver(); driver.manage().window().maximize(); baseUrl =...
View Articleclick() not working on difficult to navigate website
I'm fairly new to Python and very new to Selenium. I want to click on a button on a website that has no class or id attributes.I've tried using XPath with find_element_by_xpath() and click() but either...
View ArticleHow do i fetch the text from a tag which contains the tag text
I wanted to fetch text from the g tag and wanted to disply on concsol. Total 21 rows and when i am clicking on it its give me popup(its not java or window based popup) I wanted to fetch some of the...
View ArticleHow can I get windows task scheduler to download a file via Python Selenium...
I specified my webdriver as follows:chrome_options = webdriver.ChromeOptions() curr_path = os.getcwd() prefs = {'download.default_directory': curr_path, 'download.prompt_for_download': False}...
View ArticleHow can I prompt for input using Selenium/Webdriver and use the result?
I would like to allow for user input and make some decisions based on it. If I do this:driver.execute_script("prompt('Enter smth','smth')") I get a nice prompt, but I cannot use it's value. Is there...
View ArticlePython Selenium Headless Chromedriver taking all white screenshots and can't...
Im setting a script up to flush the cache of a certain application, When running chromedriver not headless all xpath locators work fine. I set up the chrome options chrome_options = Options()...
View ArticleClicking on Javascript tab using Selenium?python without unique class id or...
I have this HTML element code which I am currently struggling to figure out to use it for clicking on the tab that says Problem. As the "Problem" doesnt have a unique classname or element ID, I am...
View ArticleHow can I run all the dataProvider entries in one class in parallel?
I set up my tests where each row in the dataProvider creates a new instance of the test class and runs some tests with the data passed in. I want to have all the tests execute simultaneously, however...
View ArticleSelenide - Create new driver for each Junit 5 Test
I'm using Selenide with Junit 5Selenide 5.1.0 Junit 5.3.2When I run tests with junit, same driver/browser is used for all tests. I want to create new WebDriver instance for each test.I can call...
View Article"No tests were found" exit code 0. InteliJ IDEA
I created tests, but when I run them I get the error "No tests were found" `Default SuiteTotal tests run: 0, Failures: 0, Skips: 0Process finished with exit code 0` Does anybody know how to fix this?
View ArticleUnable to automate the click of a button in Selenium with Python
I am trying to automate the log in process to WebAdvisor. I have tried to select the "Log In" button by calling different elements. Each attempt so far has been unsuccessful.My current code:path =...
View ArticleScraping CNN with Scrapy and Selenium
I'd like to create a highly automated scraper, which would be able to open the search results page of cnn.com (that's why I need Selenium), extract some information from each article, then get to the...
View Article