Jump to content

Search the Community

Showing results for tags 'beautifulsoup'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. I've been using AutoIt for years, I love it and it has helped me greatly. I recently started learning other languages to help expand my knowledge and found that other languages are much faster in some regards. I'm trying to automate a login to http://www.eedistribution.com/. I have tried this for IE with BeautifulSoup: driver = webdriver.Ie("D:\\Python\\IEDriverServer32.exe") driver.get("http://www.entertainmentearth.com/eedistribution.asp") inputName = driver.find_element_by_name("custnum").send_keys("user") passWord = driver.find_element_by_name("password").send_keys("password") submit = driver.find_element_by_xpath("//input[@type='image']").click()and this for firefox with BeautifulSoup: driver = webdriver.Firefox() driver.get("http://www.eedistribution.com/") inputName = driver.find_element_by_name("custnum").send_keys("user") passWord = driver.find_element_by_name("password").send_keys("password") submit = driver.find_element_by_xpath("//input[@type='image']").click()The website has two sides. Wholesale distribution and consumer. For some reason when I use the above scripts it takes me to the consumer side when I want to go to the wholesale side. If I manually enter user / password then I get into the wholesale side, and if use AutoIt it takes me to the wholesale side as well (this is where I want to go). I can't seem to figure out why? Here is the AutoItScript: oIE = _IEAttach("ee") $user = _IEGetObjByName($oIE, "custnum") $login = _IEGetObjByName($oIE, "password") $oInputs = _IETagNameGetCollection($oIE, "input") $user.value = "user" $login.value = "password" For $oInput in $oInputs If StringInStr($oInput.outerhtml, "signin_white.gif") > 0 Then $oInput.click() ExitLoop EndIf NextI apologize in advance for this not strictly being a AutoIt question, but am trying to learn more about how the web works in general and can't seem to understand this. As I am not a programmer and completely self taught I thought maybe someone with more experience might have an answer for this. Thanks, Mike
×
×
  • Create New...