LOUNGE all new asksnapzu ideasforsnapzu newtribes interesting pics videos funny technology science technews gaming health history worldnews business web research entertainment food living internet socialmedia mobile space sports photography nature animals movies culture travel television finance music celebrities gadgets environment usa crime politics law money justice psychology security cars wtf art google books lifetips bigbrother women apple kids recipes whoa military privacy education facebook medicine computing wildlife design war drugs middleeast diet toplists economy fail violence humor africa microsoft parenting dogs canada neuroscience architecture religion advertising infographics sex journalism disaster software aviation relationships energy booze life japan ukraine newmovies nsa cannabis name Name of the tribe humanrights nasa cute weather gifs discoveries cops futurism football earth dataviz pets guns entrepreneurship fitness android extremeweather fashion insects india northamerica

Post Overview

Viewing 13 posts Sorting By Date ▼
  • Text Post
    3 years ago
    +2 2 0

    Selenium and a Time Clock Website

    EDIT: I figured this out by using a mix of Selenium and PYAutoGUI. Basically where Selenium fails, PYAutoGUI will sweep in and save the day. I now have a sweet setup where I swipe my phone over a NFC tag, it sends a message to EventGhost that then triggers this script. A lot easier than logging into a stupid website and clocking in/out!!!

    I posted this to Reddit but didn't get but one response. Hoping to find someone here who has a little experience with Selenium.

    I'm trying to automate my daily clock in/out via Python and Selenium. I currently have the web browser (IE) opening, all input going in just fine and even the log on process. When I get to the next screen, I'm having a hard time finding the "Clock In/Out" button element. This button is supposed to open a small pop up window with some clock in options, then I can click Submit when complete.

    Here is the HTML code of the button:

    <a href="/qqest/time/timecard.asp" onclick = "window.open('/qqest/Time/timePunch.asp?punchtype=clockinout&ActiveEmployeeID=149','popuptime','scrollbars=yes,screenX=0,screenY=0,left='+gfnGetWidth(410)+', top='+gfnGetHeight(435)+', width=410, height=435, resizable=yes');"><img src='/qqest/images/buttons/InOut.gif' border=0 hspace=3 onmouseover="this.src='/qqest/images/Buttons/InOut-H.gif';" onmouseout="this.src='/qqest/images/Buttons/InOut.gif';" alt="In/Out"></a>

    My Python Script:

    from selenium import webdriver
    import time
    #driver = webdriver.Chrome('C:\chromedriver.exe')
    driver = webdriver.Ie('C:\IEDriverServer.exe')
    driver.get('http://time.system-integrations.com/')
    
    try:
        username = driver.find_element_by_name('username')
        username.send_keys('USERNAME')
    
        password = driver.find_element_by_name('Password')
        password.send_keys('PASSWORD')
    
        code = driver.find_element_by_name('CompanyCode')
        code.send_keys('CODE')
    
        login = driver.find_element_by_name('Login')
        login.click()
    
        inoutButton = driver.find_element_by_xpath("//img[contains(@src, 'InOut.gif')]/parent::a")
        inoutButton.click()
    
    except:
        print('Nope')
    

    I've tried to find this element by HREF and IMG, but it's always a no go (hence I get the "nope" in the Python console). Is there a better way to do this? I've started to possibly add in PyAutoGUI to simulate mouse clicks but I'd rather do it the Selenium way if possible. Help!!!

    show moreshow less
  • Download
    3 years ago
    +8 8 0

    Kodi 15.0 Isengard – RC 2 | Kodi

    Here it is, the second Release Candidate (RC) built for Kodi 15.0; freshly baked and ready to be served! Although we said that Kodi 15.0 is a “clean-up” edition, we still managed to squeeze in a couple of really nice features. So far we had around 10 ...

  • Deal
    3 years ago
    Deal
    +1 1 0

    Google Store - Nexus, Chromecast and more

    Your Store

  • Text Post
    3 years ago
    +2 2 0

    Reminder: Amazon Prime Sale Next Wednesday!

    You must be a Prime member to participate but from Amazon, it's a sale "bigger than Black Friday". Make sure you guys post some sweet deals you find or things you buy!

  • Text Post
    3 years ago
    +7 7 0

    Getting Started - What is your inspiration?

    I've been a very distant viewer of world building via Reddit and now Snapzu, so I thought I'll be a noob to ask what you all do for inspiration, ideas, etc? I'm probably the world's worst when it comes to creating new ideas or something that works, but I would like to take a crack at it anyways. Any tips, tricks, etc, is greatly appreciated!

  • Text Post
    3 years ago
    +1 1 0

    30/M/US - Killing Floor 2, CS:GO, GTA 5, Terraria, Minecraft, etc

    I don't get to game on a specific schedule but I am on the CST zone, usually gaming late nights. I've got a mic too. Hit me up on Steam!

    Steam

  • Unspecified
    3 years ago
    Unspecified
    +2 2 0

    /t/htpc - Home

    Come show us how you enjoy your media at home!

  • Text Post
    3 years ago
    +3 3 0

    Post Your HTPC Specs/Uses Here

    In honor of getting this sub up and running, let's talk about the specs of your HTPC and how you use it. Here's mine:

    Intel Core 2 Quad Q6600 Gigabyte Motherboard (Forgot the model, sorry) 8GB OCZ DDR2 RAM Sapphire AMD Radeon 6850 GPU ASUS Blu-Ray Drive OS is on an older Western Digital 64GB SSD Roughly 5TB of Storage for Media Windows 7 Pro

    Services: Kodi 15 for Direct Access/Frontend Plex Media Server for Tablets/Phones/Chromecasts/DLNA Minecraft Server SSH Server File Server - Movies, TV Shows, Home Videos, Pictures, Music, ROMs, PC Game Disc/ISO Backups Torrent Server - Using Deluge and the Web Plugin for Monitoring Torrents Backup Server - PC games, Crashplan Destination for Laptops

    All Chromecasts, Laptops, Tablets and Phones can connect to my HTPC for media, usually via Plex or DLNA. I only use Kodi right now as a media front end, as my HTPC is connected directly to my TV.

    My wife and kid used to use the PseudoTV Plugin for Kodi, but now that use Plex a little more, I have just created playlists for them to use instead. PseudoTV is still a pretty cool plugin though. I also use the DI.FM plugin quite a bit when cleaning the house. Too bad the mobile app doesn't support Chromecast yet . . .

    Whenever we have company over, I will pull up Steam via Kodi or one of my many emulators for some 2 player split screen action. Lots of fun there!

    I would post pics but honestly, they are quite boring. My HTPC sits in my entertainment center via a SilverStone HTPC case. Nothing super fancy.

    Let me know if you have any questions about my setup.

    show moreshow less
  • Unspecified
    3 years ago
    +6 6 0

    Kodi 15.0 Isengard – RC 1 | Kodi

    Here it is, the first Release Candidate (RC) built for Kodi 15.0; freshly baked and ready to be served! Although we said that Kodi 15.0 is a “clean-up” edition, we still managed to squeeze in a couple of really nice features. So far we had around 105 ...

  • Text Post
    3 years ago
    +1 1 0

    Welcome to /t/htpc!

    Glad to see you here! Please help us grow by submitting awesome content related to HTPCs. As a HTPC owner, this is a hobby that I thoroughly enjoy and love to discuss with others. Please read the rules and let's have a good time. Feel free to ask anything relating to HTPCs!

  • Text Post
    3 years ago
    +3 3 0

    Introducing /t/htpc

    For the past several years, I have invested in our Home Theater PC. It's a hub of entertainment that my entire family loves to enjoy! It's not just about movies and music. We will discuss PC gaming, classic gaming, hardware, software, and much more. Please join our tribe, post your HTPC and grow with us.

    http://snapzu.com/t/htpc

  • Text Post
    3 years ago
    +7 7 0

    Are there any Snapzu Android apps in the works?

    Besides loading it via web browser, I'd like to see a mobile app. After searching around and seeing that there are none, are there any in the works that you know of?

  • Text Post
    3 years ago
    +9 9 0

    Yet another coming from Reddit . . .

    Liking the idea of Snapzu so far.

    Hello Snapzu community!