Category : selenium-chromedriver

Google Chrome selenium code is not running through ssh / cloud machine- python , but is running in the particular machine i runned through no machine software. Below is the error i am getting through ssh terminal File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__ desired_capabilities=desired_capabilities) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__ self.start_session(capabilities, browser_profile) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line ..

Read more

I am writing a script to scrape product details from Puma’s official website- https://in.puma.com/in/en/home The script runs without any errors as such. However, it just does not scrape details and returns empty values. I was previously working with xpaths but I made changes to my code and have taken class names for scraping data like ..

Read more

I have a html code which shows time. <span class="inner-2pZN4z">09:37:24 (UTC-4)</span> Now this will change every second to show the correct time (I think it uses javascript to update the time, because I don’t see any class change.). Now I want to take the time in my python code. So, I executed: driver.find_elements_by_xpath("//span[@class=’2pZN4z’]").text This throws ..

Read more

I have a html code which shows time. <span class="inner-2pZN4z">09:37:24 (UTC-4)</span> Now this will change every second to show the correct time (I think it uses javascript to update the time, because I don’t see any class change.). Now I want to take the time in my python code. So, I executed: driver.find_elements_by_xpath("//span[@class=’inner-2pZN4z’]").text This throws ..

Read more

from selenium import webdriver # pip install selenium from selenium.webdriver.common.keys import Keys import time import random import sys #op = webdriver.ChromeOptions() #op.add_argument(‘headless’) def print_same_line(text): sys.stdout.write(‘r’) sys.stdout.flush() sys.stdout.write(text) sys.stdout.flush() class Join: def join_link(): driver = webdriver.Chrome() driver.get("https://meetingsapac29.webex.com/meet/pr1566903906") driver.maximize_window() time.sleep(4) click = driver.find_element_by_xpath(‘//*[@id="push_download_join_by_browser"]’) click.click() time.sleep(10) input_name = lambda: driver.find_element_by_xpath(‘//*[@id="meetingSimpleContainer"]/div[2]/div[2]/input’) input_name.clear() input_name.send_keys(Name) input_email = lambda: driver.find_element_by_xpath(‘//*[@id="meetingSimpleContainer"]/div[2]/div[3]/input’) input_email.clear() input_email.send_keys(Email) ..

Read more

I have a website (private, sorry) that I’m trying to log into automatically but the login page has no source code available so am unable to assign/find specific elements. The cursor is blinking on the Username input field, so trying somehow to start typing then tab to password field and then enter. I’ve tried the ..

Read more

I have a website (private, sorry) that I’m trying to log into automatically but the login page has no source code available so am unable to assign/find specific elements. The cursor is blinking on the Username input field, so trying somehow to start typing then tab to password field and then enter. I’ve tried the ..

Read more