Coder Social home page Coder Social logo

cadmium's People

Contributors

casparkielwein avatar clonejo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

clonejo

cadmium's Issues

File upload and download api

Offer a nice API for download of files and uploads.

download api includes

  • configuring the browser profile to always accept downloads.
  • possibly configuring the correct mime-type

WebElement.scrollIntoView()

Often it is required to scroll an element into view before interacting with it.

One way to do that in Selenium is
(driver as JavascriptExecutor).executeScript("arguments[0].scrollIntoView(true);", element)

But since Cadmium does not expose the raw Selenium element, this route is blocked.

Cadmium could either offer a method to do this, or could do it implicitly before any interaction. Devs coming from Selenium would probably prefer the former, since there is less hidden magic.

Better interaction hooks

Currently we provide our own class InteractionHooks instead of using the Selenium Evenlistener.
To allow more customization and better maintainability we should instead wrap selenium Eventlistener.

Window Api crashes on popup windows

The window Api creates a new page object for the new window.
Page expects to be given a valid URL as base url to allow usage of relative URLs.
Modal windows do not have valid URLs. This results in an InvalidUrl Exception.

Add Representation of Browser Window

Cadmium should offer functionality to handle multiple browser windows.

Selenium has a fairly bare-bones api using strings as window handles and the switchTo api.
We should wrap this api and offer a proper Window Handle type.
It would be nice to have a Window class similiar to Page with represents a given browser window.
The following should be available:

  • Function to switch to window with given Handle
  • function to check if window is currently active
  • close a window, even if it is not active
  • switch to last window (this is fairly useful, when a window is opened for a single dialog only)

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.