Issue I am trying to set up an Azure pipeline which will run a Selenium test suite. The suite was build in VS2022 with C# and Selenium. The suite runs fine from VS, command line and also Jenkins but we
Continue readingTag: selenium
[SOLVED] How to hide Selenium ChromeDriver console in VB .NET
Issue How to convert these C# code to VB .NET? I just can’t figured out. var driverService = ChromeDriverService.CreateDefaultService(); driverService.HideCommandPromptWindow = true; var driver = new ChromeDriver(driverService, new ChromeOptions()); or var chromeDriverService = ChromeDriverService.CreateDefaultService(); chromeDriverService.HideCommandPromptWindow = true; var option =
Continue reading[SOLVED] Set tests to retry based on parameter in .xml?
Issue I’m trying to implement test retries on failure, right now I’ve added IRetryListener which I managed to get working. The issue I am facing is, that when developing new tests locally the retry is kicking off each time the
Continue reading[SOLVED] How to get the XPath for an element?
Issue I am trying to programmatically get the XPath of an element of a webpage. I am searching the HTML source for a specific pattern, when I find one, I get the returned string, and the start position of that
Continue reading[SOLVED] How a write a common XPath for same text displayed for different HTML tags?
Issue I want to write a common XPath for the result displayed for my searched text ‘Automation Server’ The same text is displayed for td HTML tags as well as for div html tags as shown below, and I wrote
Continue reading[SOLVED] Python Numpy: How can we compare arrays?
Issue I have an assertion that needs to compare two arrays. I have tried assert arrayOne == arrayTwo is True but it returns Assertion error. Then I tried np.testing.assert_allclose(str(arrayTwo), str(arrayOne)) But I’m still getting this error: TypeError: The DType <class
Continue reading[SOLVED] Going through a list in Capybara?
Issue I have a drop down menu. I want capybara to go through it and find the specific element and click on it. I’m currently trying to do a within clause and having it iterate through the list and find
Continue reading[SOLVED] How do i loop and collect data after closing webdrivers
Issue I am trying to be able to go to a tournament href, input that into the url then cycle through the rounds before closing that driver and opening a new one to do the same thing. For some reason
Continue reading[SOLVED] web scraping with python selenium loop and save problem
Issue ‘Hi,I want to save the data I took as csv and txt, but I couldn’t. Moreover; How can I repeat this process multiple times?’ nextInput = driver.find_element("xpath",’//*[@id="pnnext"]/span[2]’).click() result = driver.find_elements(By.CSS_SELECTOR, ".GyAeWb cite.iUh30") ‘ Code; ‘ from selenium import webdriver
Continue reading[SOLVED] How to create a for-loop in relation to value obtained via Selenium
Issue Variables chrome_path = ‘chromedriver’ driver = webdriver.Chrome(chrome_path) chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("–disable-popup-blocking") driver.get("https://gibiru.com/") driver.find_element(By.CSS_SELECTOR, ‘.form-control.has-feedback.has-clear’).click() driver.find_element(By.CSS_SELECTOR, ‘.form-control.has-feedback.has-clear’).send_keys("lfc") driver.find_element(By.CSS_SELECTOR, ‘.form-control.has-feedback.has-clear’).send_keys(Keys.RETURN) driver.find_element(By.XPATH, "/html/body/div[1]/main/div[1]/div/div/div/div[2]").click() time.sleep(2) I have this try-stratement, which works perfect, but needs to be looped arcordding to the value of page_length,
Continue reading