Coder Social home page Coder Social logo

eyes.selenium.python's Introduction

DEPRECATED

This repository is deprecated. Check out our updated repo: https://github.com/applitools/eyes.sdk.python .

Build Status

eyes.selenium

Applitools Eyes SDK For Selenium Python WebDriver

Installation

Install the eyes-selenium SDK.

pip install eyes-selenium

Usage

Please check the applitools website for usage instructions:

eyes.selenium.python's People

Contributors

addihorowitz avatar bitrono avatar danielputerman avatar eirenik0 avatar tamzinselvi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

eyes.selenium.python's Issues

Test is rerun multiple times when stitch mode is CSS

When I run below script, a lot of threads are created continuously and rerun the script.

from applitools.selenium import Eyes, StitchMode
from selenium.webdriver import Chrome
from selenium.webdriver.chrome.options import Options

eyes = Eyes()
eyes.api_key = '<my_api_key_here>'
eyes.force_full_page_screenshot = True
eyes.stitch_mode = StitchMode.CSS

try:
    driver = Chrome()
    eyes.open(driver, "My Project", "Test")
    driver.get('http://www.google.com')
    eyes.check_window("Home page")
finally:
    driver.close()
    eyes.abort_if_not_closed()

Currently I am using Python 3.7.3, eyes-selenium==3.16.2.

User can't use ActionChains with EyesWebDriver

Module versions:
selenium 3.3.3
eyes-selenium 3.7.1

When I initialize selenium ActionChains object with EyesWebDriver instance it fails with following error:

Eyes driver instance check
Traceback (most recent call last):
  File "w3c_attribute_missing.py", line 15, in <module>
    eyes_action = ActionChains(eyes_driver)
  File "C:\Python34\lib\site-packages\selenium\webdriver\common\action_chains.py", line 69, in __init__
    if self._driver.w3c:
AttributeError: 'EyesWebDriver' object has no attribute 'w3c'

Seems like new version of selenium is checking whether web driver is w3c compliant or not.
Please fix it.

Full example to reproduce the issue:

from applitools.eyes import EyesWebDriver, Eyes
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains

selenium_driver = webdriver.Chrome()
eyes_driver = EyesWebDriver(selenium_driver, Eyes())

#This passes
selenium_action = ActionChains(selenium_driver)

#This fails due to missing w3c attribute on driver instance
eyes_action = ActionChains(eyes_driver)

Compare against mockup image

Currently, there's not a direct way to upload a mockup image (from your local files) as a baseline image, which I find it would be a useful feature. Could it be a feature to take into consideration?

Add 'anonymous_children' to _READONLY_PROPERTIES

While attempting to finally get Firefox working with geckodriver, I ran into the issue where I got the message 'Strategy not supported: anon'.

I dived deeper into the source code and apparently the WebElement passed to EyesWebElement has the attribute 'anonymous_children', now I don't know if this is perhaps version incompatibility between my browser (50.0.2), selenium (3.0.2) and applitools (3.5), but if I add it to the read only properties list then this resolves my issue entirely.

I may be definitely not aware of the fact that perhaps this attribute is needed somehow, or shouldn't be there in the first place at all, but it seems to have resolved the issue. Would you know more about this, or if adding this doesn't have any negative consequences?

Stitch Mode - Only before Open Session

Currently, we can set force_full_page_screenshot whenever we want, either before or after opening the session. However, we can only set stitch_mode before opening session, otherwise it won't be taken into consideration when taking the screenshot.
Given that we can set force_full_page_screenshot freely, wouldn't it make sense to also allow to set stitch_mode after opening the session?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.