selenium

Select item inside a react-select dropdown list in Selenium with Python

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 08:26:08
问题 Link example website here In that website, I am looking how to select item (e.g "Green") in "Single" dropdown box and "Grouped" dropdown box. I tried to click to dropdown first and tried to find the element inside it to click but I can't Do you have any idea? and with Grouped dropdown I even couldn't find the xpath to click on it Thank in advance driver = webdriver.Chrome() driver.get("https://react-select.com/home") driver.maximize_window() driver.implicitly_wait(20) driver.find_element_by

Can't locate specific elements using Python Selenium and shadowRoot.querySelector()

点点圈 提交于 2021-01-29 08:08:07
问题 I'm trying to get all the content under Signers, Counter Signers and X509 Signers from https://www.virustotal.com/gui/file/03d1316407796b32c03f17f819cca5bede2b0504ecdb7ba3b845c1ed618ae934/details from selenium import webdriver op = webdriver.ChromeOptions() op.add_argument('headless') driver = webdriver.Chrome(executable_path="/Desktop/chromedriver", options=op) details_url = "https://www.virustotal.com/gui/file/03d1316407796b32c03f17f819cca5bede2b0504ecdb7ba3b845c1ed618ae934/details" driver

Selenium-Chromedriver test execution leaves scoped_dir* temp files which makes test execution on an internal website to return 500 error

天涯浪子 提交于 2021-01-29 08:07:16
问题 We have Selenium-C# automation tests running an internal web application that requires an Outh-2 Bearer token. When I run the tests, set of temp files named scope_dir are created. These files get deleted automatically for some tests. But at some time during the test execution, they just remain without being deleted. After, this point, I receive a 500 error response. I have tried the following: Chromedriver not deleting scoped* dir in temp folder after test is complete https://bugs.chromium

Python Selenium Loop click through links

谁说我不能喝 提交于 2021-01-29 08:07:09
问题 I am unable to loop click the links. When I try loop click the links it keeps clicking the first link only. From the html code, I need the element named "key" value as well. How to capture it. html file copy in dropbox. Please click https://www.dropbox.com/sh/85rx13m8iqwax4b/AACNDq_YyOukLh22JNv76vjua?dl=0 . html code https://pastebin.com/Cyg98W2C Python code I tried elem = WebDriverWait(browser, 200).until(EC.element_to_be_clickable((By.XPATH, "//DIV[@id='propertySummaryList']/DIV[@class=

Actions click script - Selenium

别说谁变了你拦得住时间么 提交于 2021-01-29 08:01:10
问题 The code below is a selenium script I created with the Selenium IDE, I'm trying to get it to click 250 pixels from the technology button which should click the 'education' tab. You can see by running the script that the 'education' tab is highlighted as if its moused over but the console gives the error: org.openqa.selenium.WebDriverException: Element is not clickable at point (753.5, 107.51666259765625). Other element would receive the click Using: FireFox 45.0.0.1 Selenium Webdriver 2.53.1

Unable to perform parallel execution on safari on mac using selenium

北战南征 提交于 2021-01-29 08:00:34
问题 I have around 1600 java TCs written using selenium. While executing test scripts in parallel (say thread count = 5), I am able to trigger 5 safari webdrivers and scripts are executing parallel. But, when the 6th (threadcount +1) script gets invoked, it is throwing below exception: Could not create a session: The Safari instance is already paired with another WebDriver session. I am quitting and closing the webdriver session after each test case. The same piece of code is working fine for

Having issues with click when using new version of chromedriver, chrome and selenium in c#

筅森魡賤 提交于 2021-01-29 07:53:54
问题 I am using latest chrome 77.0.3865.90 I have tried chromedriver versions - 77.0.3865.4000, 76.0.3809.* The code is in C# I am finding an element on the page and doing click on it. This used to work fine and I think after new chrome browser update (to 77.0.3865.90) i am getting this error for clicks : unknown error: failed to parse value of getElementRegion\n (Session info: chrome=77.0.3865.90)"} I tried using multiple chromedriver versions as above nothing seems to work. WebDriverWait wait =

java.net.UnknownHostException Can't Solve in selenium

寵の児 提交于 2021-01-29 07:48:29
问题 Till Yesterday i was using Webdriver Manager it was working sucessfully. but today it is Throwing some UnknownHostException My Dependinces : <dependency> <groupId>io.github.bonigarcia</groupId> <artifactId>webdrivermanager</artifactId> <version>3.0.0</version> <scope>test</scope> </dependency> This is the way i used to open the browser : WebDriverManager.chromedriver().setup(); driver = new ChromeDriver(); I can't find a Perfect Solution but am getting some solution which is not clear can you

Package doesn't work if run from cmd or from the .py file… PYTHON

杀马特。学长 韩版系。学妹 提交于 2021-01-29 07:47:45
问题 I noticed a problem with python (windows). If I create a program (even simple) and I import a package, it works if I run it from the python shell but if I run it from the .py file or with the cmd (C:\Python34\program.py) it doesn't. Make it clear: Program 1 from selenium import webdriver print("have a good day") Program2 import pyautogui print("be happy") pyautogui.moveT(300,300) Error program 1 Traceback (most recent calls) File"C:\Python34\program.py" line 1, in <module> from selenium

function driver.delete_all_cookies() in selenium python doesn't delete all cookies

青春壹個敷衍的年華 提交于 2021-01-29 07:26:01
问题 I'm trying to delete all cookies from browser and then checking that no cookies remained. after that I ran my code I saw that still, some cookies remained... what's the problem? thanks from selenium import webdriver driver = webdriver.Chrome(executable_path= "C:\\Chrome\\chromedriver.exe") driver.get("http://www.walla.co.il") driver.delete_all_cookies() lst = driver.get_cookies() for cookie in lst: print(cookie) 回答1: I think this problem is more related to the load time from the website. I