If Statment in Python while Scraping
I want to add if statement there:if website_link and phone is not found than write N,NThis Script is typing if website link is not found it type N and if phone is not found it type NI Want Also Add...
View ArticleSelenium has a problem finding element at lower window size (DOM doesn't change)
little introduction: I'm using Selenium webdriver for Java to run some Tests. I got a Monitor with FullHD resolution (1920x1080) and a UWQHD Monitor (3440x1440). Normally i run selenium via...
View Articlealphanumeric number displayed in console?
What is this alphanumeric number "9aea000394714d2fbb20850021f6204f2256b9cf" displayed in the console message after starting chrome driver.Below is the message:Starting ChromeDriver 2.24.417431...
View ArticleHow to fix Upload image to twitter with Selenium (Python)
Currently i am trying to upload a image to Twitter for my reply bot. The current code i have gives no errors but it also doesn't attach the image. I've tried many approaches but i can't get it. Here is...
View ArticleParse links if pagination exists, using Selenium
I have modified my script and now it is running smooth and fine.What I have done, thanks to SO support.Open URL as www.my.urlOpen all 20 links one by there and saving the NamesBut, what I noticed, that...
View ArticleUnable to access the print button through selenium webdriver as it is within...
enter image description hereThere is a scenario that I am trying to automate through selenium webdriver (Java) and facing trouble. Print preview is not accessible through selenium as it is within...
View ArticleHow we can handle windows authentication in desktop safari browser
Currently we are automating a website which is showing windows authentication popup before launching the home page by selenium scripts . We tried to add the credential details as part of the URL. but...
View ArticleUnable to upload file using selenium java
I try to upload a pic on this site but exception comes up. Here is my code.public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver",...
View ArticleIs there any way to get element info inside the shadow root with Selenium?
I am trying to scrape some info from a website with java and selenium. However, because of the shadow-root I cannot reach any web element. When i try to get html, it returns empty array. Is there any...
View ArticleHow to add additional variable to pytest html report
I am using pytest HTML report plugin for my selenium tests. It works great with just passing test.py --html==report.htmlin command line and generates a great report.I also need to implement additional...
View ArticleTrouble saving file uploaded using Python Selenium
I am working in Selenium using Python and am working with Chrome. When I get to a section for a picture upload, I do the following: pictureChange =...
View ArticleHow to handle authentication popup with Selenium WebDriver
I am trying to handle authentication popup through my selenium test by passing username and password in URL.I have tried following solutions:I have tried to send username and password in URL I have...
View ArticleHow to keep selenium webdriver running as part of before_tag hook using...
I am using behave framework for testing and some features files do not require a browser to run against. So I am trying to use fixtures with tags as described in...
View ArticleUsing R to download data automatically
I want to download all the data in either pdf or excel for each State X Crop Year X Standard Reports combination from this website.I followed this tutorial to do what I want. Download data from...
View ArticleUnable to switch from native to WEBVIEW_chrome showing exception :...
I am testing web app on real device and use Chrome browser, I try Set collection and i’m getting both NATIVE_APP and WEBVIEW_chrome but when i try to switch to WEBVIEW_chrome using driver.context()...
View ArticleSelenium halts after login popup dialog displayed
I am having trouble to login using selenium windows Internet Explorer. I am attaching the popup dialogI need to use IE. I have tried...
View ArticleHow to check password hide characters?
Hello i need help with checking password hide characters. I have to test a password field if length of a password is the same as the length of password hide characters. Is there any way to do it...
View ArticleWebdriver Screenshot
When taking a screenshot using Selenium Webdriver on windows with python, the screenshot is saved directly to the path of the program, is there a way to save the .png file to a specific directory?
View ArticleLogin with selenium: Message: element not interactable
I am trying to login in ecobolsa.com with Selenium in python3, but the send_keys functions gets me the message:selenium.common.exceptions.ElementNotInteractableException: Message: element not...
View ArticleError while using XPath in Selenium, python
I am trying to access the name and the link of restaurants on a website. Although i copied the xpath from the page source, i still get the error:NoSuchElementException: Message: no such element: Unable...
View Article