selenium-chromedriver

Ignore or resolve certificate warnings for test automation in robot framework

微笑、不失礼 提交于 2021-01-05 13:08:58
问题 While browsing URL using the robot automation framework, I am always getting a message "Your connection is not private". Then we need to click on Advanced and Proceed to URL. Manually proceeding to URL is not possible. So is there any solution to skip such certificate checking for test automation in the robot framework. I had read the answer for the question: How to resolve ssl certificate errors for test automation in robot framework . I tried following but it didn't work. Open Browser $

Ignore or resolve certificate warnings for test automation in robot framework

非 Y 不嫁゛ 提交于 2021-01-05 13:06:32
问题 While browsing URL using the robot automation framework, I am always getting a message "Your connection is not private". Then we need to click on Advanced and Proceed to URL. Manually proceeding to URL is not possible. So is there any solution to skip such certificate checking for test automation in the robot framework. I had read the answer for the question: How to resolve ssl certificate errors for test automation in robot framework . I tried following but it didn't work. Open Browser $

Ignore or resolve certificate warnings for test automation in robot framework

瘦欲@ 提交于 2021-01-05 13:05:51
问题 While browsing URL using the robot automation framework, I am always getting a message "Your connection is not private". Then we need to click on Advanced and Proceed to URL. Manually proceeding to URL is not possible. So is there any solution to skip such certificate checking for test automation in the robot framework. I had read the answer for the question: How to resolve ssl certificate errors for test automation in robot framework . I tried following but it didn't work. Open Browser $

Opening ChromeDriver in fullscreen, selenium and python

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-04 14:56:11
问题 I'm attempting to open my ChromeDriver in full screen. I've tried everything possible and can't seem to find a solution for it. After searching throughout google and stackoverflow it seems many people have had the same issue, this is for mac os x. I thought that doing the (command, shift, f) would work but it doesn't. Does anyone have a solution? from selenium import webdriver from selenium.webdriver.common.keys import Keys import time urls = [x,y,z] driver = webdriver.Chrome() #Would like

Hover over menu and select sub menu in java Selenium

混江龙づ霸主 提交于 2020-12-31 14:02:29
问题 I am trying to hover over a main menu and select a submenu using java selenium, i got it to hover over the menu but cant select the sub menu, if i try to find by linktext i always get the error "does not exist " if i use xpath the says build successful but does not open up the new page. Here is my code for it so far System.setProperty("webdriver.chrome.driver","C:/Driver/chromedriver.exe"); WebDriver webDriver = new ChromeDriver(); webDriver.manage().window().maximize(); webDriver.navigate()

Hover over menu and select sub menu in java Selenium

六月ゝ 毕业季﹏ 提交于 2020-12-31 14:01:30
问题 I am trying to hover over a main menu and select a submenu using java selenium, i got it to hover over the menu but cant select the sub menu, if i try to find by linktext i always get the error "does not exist " if i use xpath the says build successful but does not open up the new page. Here is my code for it so far System.setProperty("webdriver.chrome.driver","C:/Driver/chromedriver.exe"); WebDriver webDriver = new ChromeDriver(); webDriver.manage().window().maximize(); webDriver.navigate()

Handling “Accept Cookies” popup with Selenium in Python

早过忘川 提交于 2020-12-29 12:28:28
问题 I've been trying to scrape some information of this real estate website with selenium. However when I access the website I need to accept cookies to continue. This only happens when the bot accesses the website, not when I do it manually. When I try to find the corresponding element either by xpath or id, as I find it when I inspect the page manually I get following error. selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath",

How to set selenium webdriver from headless mode to normal mode within the same session?

大城市里の小女人 提交于 2020-12-26 11:16:55
问题 Is it possible after setting selenium webdriver to a headless mode set it back to a normal mode? from selenium import webdriver from selenium.webdriver.firefox.options import Options options = Options() options.headless = True driver = webdriver.Firefox(options=options) driver.get(http://stackoverflow.com) # set driver back to normal mode 回答1: No , it won't be possible to make Chrome operate initially in headless mode and then switch back to normal mode within the same session. When you

Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Chrome through Selenium

倾然丶 夕夏残阳落幕 提交于 2020-12-21 05:10:13
问题 from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait import time import pyautogui import requests import nltk import urllib.request import random driver=webdriver.Chrome() driver.get('https://www.karsanj.net/login.php') userm=driver.find_element_by_id('username') userm.send_keys('gdbcfss') time.sleep(2) passwoord=driver.find_element_by_id('password') passwoord.send_keys('fbxeedf') time.sleep(2) sal =driver.find_element_by_id("salTahsili") sal.click() time

Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Chrome through Selenium

。_饼干妹妹 提交于 2020-12-21 05:08:35
问题 from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait import time import pyautogui import requests import nltk import urllib.request import random driver=webdriver.Chrome() driver.get('https://www.karsanj.net/login.php') userm=driver.find_element_by_id('username') userm.send_keys('gdbcfss') time.sleep(2) passwoord=driver.find_element_by_id('password') passwoord.send_keys('fbxeedf') time.sleep(2) sal =driver.find_element_by_id("salTahsili") sal.click() time