Skip to main content
Code Review

Return to Question

Tweeted twitter.com/StackCodeReview/status/1402234001302208513
edited body
Source Link
Sati
  • 427
  • 2
  • 12
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from selenium import webdriver
class Input:
 """This class deals with fields on the website 
 in which queries areprovides bea made,wrapper andaround handlesactual userworking inputcode."""
 
 # CONSTANTS
 
 URL = None
 XPATH = {
 "titles": '',
 "authors": '',
 "dates": '',
 "journals": '',
 "year_issues": '',
 "urls": ''
 }
 
 def __init__(self):
 self.driver = webdriver.Chrome
 
 def webpage(self, url):
 driver = self.driver()
 driver.get(url)
 
 return driver
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from selenium import webdriver
class Input:
 """This class deals with fields on the website 
 in which queries are be made, and handles user input."""
 
 # CONSTANTS
 
 URL = None
 XPATH = {
 "titles": '',
 "authors": '',
 "dates": '',
 "journals": '',
 "year_issues": '',
 "urls": ''
 }
 
 def __init__(self):
 self.driver = webdriver.Chrome
 
 def webpage(self, url):
 driver = self.driver()
 driver.get(url)
 
 return driver
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from selenium import webdriver
class Input:
 """This class provides a wrapper around actual working code."""
 
 # CONSTANTS
 
 URL = None
 
 def __init__(self):
 self.driver = webdriver.Chrome
 
 def webpage(self, url):
 driver = self.driver()
 driver.get(url)
 
 return driver
edited body
Source Link
Sati
  • 427
  • 2
  • 12

-----


-----


added 160 characters in body
Source Link
Sati
  • 427
  • 2
  • 12

I've asked a related question over here that concerns the general approach to Page Objects design.

I've asked a related question over here that concerns the general approach to Page Objects design.

deleted 6854 characters in body
Source Link
Sati
  • 427
  • 2
  • 12
Loading
added 17561 characters in body
Source Link
Sati
  • 427
  • 2
  • 12
Loading
Source Link
Sati
  • 427
  • 2
  • 12
Loading
lang-py

AltStyle によって変換されたページ (->オリジナル) /