selenium

How to click the Continue button within https://in.indeed.com/ website using selenium in python?

故事扮演 提交于 2021-01-28 12:30:17
问题 I am trying to write a code that is able to auto apply on job openings on indeed.com. I have managed to reach the last stage, however, the final click on the application form is giving me a lot of trouble. Please refer the page as below Once logged in to my profile, I go to the relevant search page, click on the listing I am interested in and then on the final page (shown above) I am trying to click on the continue button using xpath. For the previous step (also a page on the same form), the

Start from the beginning using while loop on connection times out using Selenium and Python

独自空忆成欢 提交于 2021-01-28 12:24:29
问题 from selenium import webdriver import time browser = webdriver.Chrome('C:/Users/acer/Desktop/chromedriver') browser.get('website') def user(): while True: time.sleep(1) try: browser.find_element_by_id('q').send_keys('name') #Type in name browser.find_element_by_tag_name('button').click() #Click "verify" finally: browser.find_element_by_tag_name('button').click() #When connection times out, click "try again" user() #When connection times out again run "while loop" from the begining I want to

Start from the beginning using while loop on connection times out using Selenium and Python

扶醉桌前 提交于 2021-01-28 12:20:27
问题 from selenium import webdriver import time browser = webdriver.Chrome('C:/Users/acer/Desktop/chromedriver') browser.get('website') def user(): while True: time.sleep(1) try: browser.find_element_by_id('q').send_keys('name') #Type in name browser.find_element_by_tag_name('button').click() #Click "verify" finally: browser.find_element_by_tag_name('button').click() #When connection times out, click "try again" user() #When connection times out again run "while loop" from the begining I want to

How to click the Continue button within https://in.indeed.com/ website using selenium in python?

一世执手 提交于 2021-01-28 12:18:43
问题 I am trying to write a code that is able to auto apply on job openings on indeed.com. I have managed to reach the last stage, however, the final click on the application form is giving me a lot of trouble. Please refer the page as below Once logged in to my profile, I go to the relevant search page, click on the listing I am interested in and then on the final page (shown above) I am trying to click on the continue button using xpath. For the previous step (also a page on the same form), the

Selenium scraping JS loaded pages

荒凉一梦 提交于 2021-01-28 12:18:18
问题 I'm trying to scrape some of the loaded JS data from https://surviv.io/stats/player787, such as the number of total kills. Could someone tell me how I can scrape the js loaded data with selenium. Thanks. EDIT: Here is some of the code from selenium import webdriver browser = webdriver.Firefox() browser.get('https://surviv.io/stats/player787') b = browser.find_element_by_tag_name('tr') The 'tr' which contains the data that I want is not grabbed by selenium 回答1: To get the count of kills.Induce

Selenium's find_elements with two clauses for text?

本小妞迷上赌 提交于 2021-01-28 12:14:04
问题 How can I use selenium's find_elements_by_xpath() based on text, when it may or may not have a word? Example: it can be either #1 here or #1 is here . I want both to be part of the same list, since that func return a list. ATM I have driver.find_elements_by_xpath("//*[contains(text(), '#1 here')]") but that would only find the first case, not the ones with an is . Basically, something like driver.find_elements_by_xpath("//*[contains(text(), '#1 here' or '#1 is here')]") How could I do that? I

Selenium Not able to run Firefox browser from Jenkins

*爱你&永不变心* 提交于 2021-01-28 12:05:10
问题 I tried running Automated test using selenium on firefox through jenkins on Ubuntu Machine but not able to run it. But the same code is running without failure using Eclipse. I am running it as maven project. Getting following error- "[INFO] Running TestSuite 1524549883598 geckodriver INFO geckodriver 0.20.0 1524549883615 geckodriver INFO Listening on 127.0.0.1:14395 1524549883939 mozrunner::runner INFO Running command: "/usr/lib/firefox/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile

Selenium with Edge: A exception with a `null` response [duplicate]

我的未来我决定 提交于 2021-01-28 11:52:59
问题 This question already has answers here : Selenium with Microsoft Edge driver never finishes initialising (2 answers) Closed 1 year ago . I have a problem with using Selenium with Edge. I use .NET Core 3.0. This is my simple test: [Fact] public void EdgeDriverTest1() { using (IWebDriver driver = new EdgeDriver()) { driver.Navigate().GoToUrl("http://www.google.com"); IWebElement element = driver.FindElement(By.Name("q")); element.SendKeys("Hello, Selenium WebDriver!"); element.Submit(); } }

WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) with GeckoDriver Firefox and Selenium Java

旧时模样 提交于 2021-01-28 11:41:54
问题 Using Selenium 3.1.0, firefox latest version 72.0, default firefox driver 2.53.1 here is my code System.setProperty("webdriver.gecko.driver" ,"C:\\Users\\sindhusha.tummala\\Downloads\\geckodriver.exe"); driver = new FirefoxDriver(); Still i am getting the error org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port 7055; Could any one help with this 回答1: This error message... org.openqa.selenium

How can i auto login sahibinden.com

£可爱£侵袭症+ 提交于 2021-01-28 11:30:20
问题 if soyunmaDolabi < 3: from selenium import webdriver import time browser = webdriver.Chrome(r"C:\Users\Dell\Desktop\lol/chromedriver.exe") browser.get("https://sahibinden.com") popUp = browser.find_element_by_xpath("//*[@id='container']/div[3]/div/aside/div[1]/nav/ul[2]/li[1]") LogIn= browser.find_element_by_xpath("/html/body/div[3]/div[1]/ul/li[1]/a") time.sleep(2) popUp.click() time.sleep(2) LogIn.click() kadi = browser.find_element_by_xpath("//*[@id='username']") password = browser.find