selenium-webdriver

Selenium doesn't open the specified URL and shows data:,

馋奶兔 提交于 2020-01-28 10:24:36
问题 I am trying to open the URL using selenium in chrome. I have chromedriver available with me. following is the code I want to execute. from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--disable-infobars") driver = webdriver.Chrome(executable_path="./chromedriver", chrome_options=chrome_options) driver.get("https://google.com") The browser is opened successfully but it doesn't open the specified URL. The URL in the browser is data:, . Any

Selenium doesn't open the specified URL and shows data:,

隐身守侯 提交于 2020-01-28 10:22:30
问题 I am trying to open the URL using selenium in chrome. I have chromedriver available with me. following is the code I want to execute. from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--disable-infobars") driver = webdriver.Chrome(executable_path="./chromedriver", chrome_options=chrome_options) driver.get("https://google.com") The browser is opened successfully but it doesn't open the specified URL. The URL in the browser is data:, . Any

selenium chrome driver select certificate popup confirmation not working

不问归期 提交于 2020-01-28 05:49:26
问题 I am automating tests using selenium chromewebdriver 3.7. Whenever I lauch the site, I get a certificate selection popup like the one below However I am not able to click on the OK button. These are the options I have tried //I have tried getWindowHandle like this String handle= driver.getWindowHandle(); this.driver.switchTo().window(handle); //I have alos tried switching and accept driver.switchTo().alert().accept(); //I have also tried to force the enter key like this robot.keyPress

How to select an option from a dropdown of non select tag?

半腔热情 提交于 2020-01-26 04:33:17
问题 I am trying to select a value from a dropdown menu. I tried a lot of solutions found here but nothing work, sometimes I have the error can't scroll to view. Code trials: import time from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.select import Select from selenium.webdriver.common.action_chains import ActionChains

How to select an option from a dropdown of non select tag?

好久不见. 提交于 2020-01-26 04:33:04
问题 I am trying to select a value from a dropdown menu. I tried a lot of solutions found here but nothing work, sometimes I have the error can't scroll to view. Code trials: import time from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.select import Select from selenium.webdriver.common.action_chains import ActionChains

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: No matching capabilities error with ChromeDriver Chrome Selenium [duplicate]

我只是一个虾纸丫 提交于 2020-01-26 04:31:05
问题 This question already has answers here : Selenium “Unable to find a matching set of capabilities” despite driver being in /usr/local/bin (7 answers) Closed 6 months ago . First, machine and package specs: I am running: ChromeDriver version 75.0.3770.140 Selenium: version '3.141.0' WSL (linux subsystem) of windows 10 I am trying to run a chromebrowser through selenium. I found: these commands, to use selenium through google chrome. I have a test directory, with only the chromedriver binary

Not capturing screenshots with Selenium Grid

末鹿安然 提交于 2020-01-26 03:53:06
问题 When the assertion fails it doesn't capture the screenshots. I am running Selenium Grid with Windows as Hub, 1 Windows as Node, and 1 Mac as Node. 回答1: You don't need to use Augmenter anymore as RemoteWebDriver now implements TakesScreenshot interface , Have a look here for RemoteWebDriver 来源: https://stackoverflow.com/questions/38195311/not-capturing-screenshots-with-selenium-grid

How to get the project path in command line

我怕爱的太早我们不能终老 提交于 2020-01-25 21:13:51
问题 I create a TestNG project in Eclipse, and I use System.getProperty("user.dir") to get the base folder (like "D:\project\selenium") of the project, but when I run the TestNG in the command line, the base folder returns "C:\users\username\", is there any way to solve this question? 回答1: A similar issue was fixed in the latest version of the eclipse plugin: https://github.com/cbeust/testng/issues/903 You should try to upgrade the plugin. 回答2: Probably the issue is that when you run it via

Selenium Webdriver Python AttributeError type object has no attribute

喜夏-厌秋 提交于 2020-01-25 18:36:22
问题 I am getting the following error in my Python Selenium Webdriver script. Error Traceback (most recent call last): File "C:\Webdriver\ClearCore 501\TestCases\VariablesPage_TestCase.py", line 87, in test_add_variables variablesPage = projectnavigator.select_projectNavigator_item("Variables") # Select the Variables link from the left hand Project Navigator, it returns the Variables page object File "C:\Webdriver\ClearCore 501\Menus\project_navigator.py", line 24, in select_projectNavigator_item

Wait until specific value appears in selenium excel vba

血红的双手。 提交于 2020-01-25 10:56:06
问题 I have an element with this html <span id="ContentPlaceHolder1_Label2" designtimedragdrop="1319" style="display:inline-block;color:Firebrick;font-size:Medium;font-weight:bold;width:510px;"></span> and after clicking Save button on the page this part changes to that <span id="ContentPlaceHolder1_Label2" designtimedragdrop="1319" style="display:inline-block;color:Firebrick;font-size:Medium;font-weight:bold;width:510px;">تم حفظ التعديل بنجاح</span> You would notice this value تم حفظ التعديل