The DSL

Understanding The DSL

The DSL

 

Let’s start with the DSL. So, DSL stands for Digital Subscriber Line. Not to mention, users get a high-speed bandwidth connection from a phone wall jack on an existing telephone network. Moreover, this works within the frequencies. So, you can use the Internet while making phone calls.

In the same vein, consider DSL Internet as the big brother to dial-up. Likewise, many local phone services provide High-Speed Internet access delivered through existing telephone networks. Not to mention, telephone wires transfer hundreds of thousands of frequencies. However, only a few thousand are for telephone communications. This implies that the telephone and DSL modem can work at the same time.
In adition, there are two types of DSL technology.
Symmetrical DSL– Certainly, symmetrical connections give equal bandwidth for upload as well as download speeds.
Asymmetrical DSL– Most importantly, this is one of the most popular types of the DSL connection. Certainly, most people download more information than they are uploading. Therefore, an asymmetrical connection has more downstream bandwidth and less upstream bandwidth.

Above all, Capybara will only locate visible elements. Moreover, this is because a real user would not be able to interact with non-visible elements.

Not to mention, all searches in Capybara are case sensitive. Further, this is because Capybara heavily uses XPath, which doesn’t support case insensitivity.

Capybara::DSL

It is included in Capybara and defined in lib/capybara/dsl.rb

Class Method Summary

.extended(base) ⇒ Object

.included(base) ⇒ Object

 

Instance Method Summary

#page ⇒ Capybara::Session

Shortcut to accessing the current session.

 

#using_session(name, &block) ⇒ Object

Shortcut to working in a different session.

 

#using_wait_time(seconds, &block) ⇒ Object

Shortcut to using a different wait time.

 

Class Method Details

.extended(base) ⇒ Object

.included(base) ⇒ Object

 

Instance Method Details

#page ⇒ Capybara::Session

Shortcut to accessing the current session.

 

class MyClass

include Capybara::DSL

 

def has_header?

page.has_css?(‘h1’)

end

end

 

#using_session(name, &block) ⇒ Object

Shortcut to working in a different session.

 

#using_wait_time(seconds, &block) ⇒ Object

Shortcut to using a different wait time.

Make your resume stand out and become a Certified Capybara Testing Professional. So, Try free practice tests here!

A great career is just a certification away. So, practice and validate your skills to become Certified Capybara Testing Professional

Capybara Drivers
Matching

Get industry recognized certification – Contact us

keyboard_arrow_up
Open chat
Need help?
Hello 👋
Can we help you?