Skip to content

Commit

Permalink
Fix data retrieval on expose page - refs #2
Browse files Browse the repository at this point in the history
  • Loading branch information
StegSchreck committed Aug 5, 2022
1 parent 2757e9a commit fdfb67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions page_objects/exposePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ function exposePageIsShown() {

function analyseExposePage() {
const exposeItemAttributes = document.getElementsByClassName('main-criteria-container')[0];
const itemPriceValueElement = exposeItemAttributes.querySelector('.is24qa-kaltmiete') || exposeItemAttributes.querySelector('.is24qa-kaufpreis');
const itemAreaValueElement = exposeItemAttributes.querySelector('.is24qa-flaeche') || exposeItemAttributes.querySelector('.is24qa-wohnflaeche-ca');
const itemPriceValueElement = exposeItemAttributes.querySelector('.is24qa-kaltmiete-main') || exposeItemAttributes.querySelector('.is24qa-kaufpreis-main');
const itemAreaValueElement = exposeItemAttributes.querySelector('.is24qa-flaeche-main') || exposeItemAttributes.querySelector('.is24qa-wohnflaeche-ca-main');
const price = extractValue(itemPriceValueElement);
const area = extractValue(itemAreaValueElement);
const pricePerArea = calculatePricePerArea(price, area);
Expand Down

0 comments on commit fdfb67e

Please sign in to comment.