Google captcha handling with headless selenium in python
I am making a website scraper with selenium and the website has a captcha that sometimes triggers for an input. Is there a way to integrate just the captcha box if its prompted and make put it in say a...
View ArticleCan't select drop-down menu in Python app
I have a script to scrape values from a website, with a drop-down hover menu in which the parent menu needs to be hovered over and a drop-down option selected. This was working perfectly up until a few...
View ArticleManifest a click into another tab instead of the current (default) one in...
Let's say there is an element with xpath "//a[@href]" that doesn't have a direct link to it and when clicked opens the UNKNOWN url in the current tab. Is there a way to make it open the URL in another...
View ArticleDoes Openshift support selenium?
Does openshift work with GUI stuff like Selenium? I have a python application I wanted to setup in the cloud...If there isn't, is there a workaround I can use? The application logs into a website and...
View ArticleHow to navigate to a particular tab when multiple page windows open at the...
Lets assume, I've to click on a link that open 4 more tabs. I want to shift it to 3rd tab.
View ArticlePython Selenium button isn't being clicked
I am trying to scrape data from this website (https://www.ilcollege2career.com/#/) using python (selenium and beautiful soup).The code I have is this:driver = webdriver.Chrome('my file path')...
View ArticleHow to write the selenium code for scroll down the mouse action, I will try...
How to write the selenium code for Scroll down the mouse below. I try to use the below code it was not scrolling action.JavascriptExecutor Scrool = (JavascriptExecutor) driver;...
View ArticleHow to locate Instagram Follow button with selenium (Python)
I'm trying to locate the 'follow' button element on an instagram page (using selenium).I've found the main 'follow' button of a user's page (https://www.instagram.com/USERNAME/) with the following...
View ArticleScrape data from a website using selenium
I am still quite amateur at python, I am trying to scrape data from a website using selenium<small class="fxs_price_ohl"> <span>Open 1.29814</span> <span>High...
View ArticleHow to skip TestNG test based on Selenium OS running the test
I would like to be able to skip tests based on the OS running the test. To be clear this is not the OS running the actual tests, I've done this before using IInvokedMethodListener throwing...
View ArticleHow to escape "/" in send_keys?
Running a script that writes a block of code into a textarea on a website. The first four "lines" write correctly until var url = "https: at which point the cursor jumps to the upper left of the text...
View ArticleDropdown menu won't close using - Selenium and Python
Even after clicking an item on the dropdown menu, it doesn't close, it stays open. Very weird. from selenium import webdriver from selenium.webdriver.chrome.options import Options from...
View Articleorg.openqa.selenium.WebDriverException: Timed out waiting for driver server...
While everything works on my machine, when I bring the project in which I'm working on my server, Selenium and Chromedriver won't boot, causing the following exception2018-08-31 09:16:06,578 ERROR...
View Articlehow to get the details on each step in tests?
i want to add to each and every step at the extent report (4), the details on it so i won't get it empty like my code have an extent class and an ITestListener (TestNG) so the class looks like that...
View ArticleCode Coverage for Cucumber Tests using Jacoco
I am trying to integrate Jacoco to get the code coverage for my Cucumber tests using Maven. Following is my project...
View Articlelooking for an element to be present loop
im trying to figure out how to make a loop that reloads a page until a element is present, when the element is found the script should go on to the lines behind the loop. the loop is for an autocop...
View ArticleIs there a way to assert on partial text matching?
I'm using Selenium OpenQA in C# and trying to write an assert that will compare two strings and assert True if some of the text in the first string matches the partial text in the second string.string...
View ArticleInstall dependencies in Azure Functions with apt-get WITHOUT Docker
I am trying to use Azure Functions with Python with a consumption plan to scrape a web page using Selenium with Firefox. For the way it is going to be used, it is much more practical (and cheaper) to...
View ArticleEventlistener for an alert of a webpage
I need to know if a specific alert comes up on a webpage. I use an infinite loop inside a swingworker, something like this: try{ WebElement container = driver.findElement(By.cssSelector("#alert >...
View ArticleSelenium WebDriver doesn't start on IIS 10, but works fine if app is hosted...
I have an ASP.NET MVC CORE 3.0 app, my requirement is to run Selenium on IIS 10. When I host my app InProcess it works, as soon as I switch to IIS it stops working (without any error message and...
View Article