Skip to content

Commit 1787d08

Browse files
author
ravishankar
committed
updated new Features into list
1 parent 813b3a2 commit 1787d08

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

README.md

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,18 @@
2222
- WebDriver
2323
- Manage multiple web drivers such as chrome,chromium,firefox.
2424
- Different Utilities
25-
- Retrieve element with 5 different attribute.
26-
- Perform clicks on element
27-
- Take full page and element screenshot.
25+
- Retrieve elements with 5 different attributes.
26+
- Perform clicks on element,
27+
- Take a full page and element screenshot.
2828
- Hide and show elements.
2929
- Information filling on different form elements such as text,radio,checkbox.
30-
- Retrieves current cookies from browser.
31-
- Retrieve url and web page source
30+
- Retrieves current cookies from the browser.
31+
- Retrieve url and web page source.
32+
- Add or modify existing cookies.
33+
- Check Existence of an element on the page.
3234
- Element Parser
33-
- table Information
34-
- Retrieve dropdown options in dictionary
35+
- table Information.
36+
- Retrieve dropdown options in the dictionary.
3537

3638
## How To Use
3739

@@ -74,19 +76,19 @@ from s_tool.driver import SeleniumDriver
7476

7577

7678
class SBot(SeleniumDriver):
77-
"""Example Bot using s-tool"""
79+
"""Example Bot using s-tool"""
7880

79-
def __init__(self, *args, **kwargs):
80-
super().__init__(*args, **kwargs)
81+
def __init__(self, *args, **kwargs):
82+
super().__init__(*args, **kwargs)
8183

82-
def run(self):
83-
self.get("https://google.com")
84-
sessionid = self.session()
85-
url = self.url()
86-
cookies = self.cookies()
84+
def run(self):
85+
self.get("https://google.com")
86+
sessionid = self.session()
87+
url = self.url()
88+
cookies = self.cookies()
8789

88-
# print sessionid,url,cookies
89-
print(f"\nurl : {url} \nsession : {sessionid}\ncookies : {cookies}\n")
90+
# print sessionid,url,cookies
91+
print(f"\n url : {url} \n session : {sessionid}\n cookies : {cookies}\n")
9092

9193

9294
bot = SBot("firefox", headless=True) # change headless=False to run with gui mode
@@ -103,13 +105,13 @@ bot.close()
103105
from s_tool.driver import SeleniumDriver as SBot
104106

105107
with SBot("firefox", headless=True) as obj:
106-
obj.get("https://google.com")
107-
sessionid = obj.session()
108-
url = obj.url()
109-
cookies = obj.cookies()
108+
obj.get("https://google.com")
109+
sessionid = obj.session()
110+
url = obj.url()
111+
cookies = obj.cookies()
110112

111-
# print sessionid,url,cookies
112-
print(f"\nurl : {url} \nsession : {sessionid}\ncookies : {cookies}\n")
113+
# print sessionid,url,cookies
114+
print(f"\n url : {url} \n session : {sessionid}\n cookies : {cookies}\n")
113115

114116
```
115117

@@ -118,7 +120,7 @@ with SBot("firefox", headless=True) as obj:
118120
- Web driver utilities
119121
- Scrolling element and page.
120122
- Handling popup and alert boxes.
121-
- Switching windows,frame,tabs,iframes.
123+
- Switching windows,frames,tabs,iframes.
122124
- logger.
123125
- Element Parser
124126
- list

0 commit comments

Comments
 (0)