MCPcopy Index your code
hub / github.com/plotly/dash / exists

Method exists

components/dash-table/tests/selenium/conftest.py:158–179  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

156 return ac.perform()
157
158 def exists(self):
159 self.mixin._wait_for_table(self.id, self.state)
160
161 return (
162 len(
163 self.mixin.find_elements(
164 '#{} {} tbody td.dash-cell.column-{}[data-dash-row="{}"]:not(.phantom-cell)'.format(
165 self.id, self.state, self.col, self.row
166 )
167 )
168 )
169 == 1
170 if isinstance(self.col, int)
171 else len(
172 self.mixin.find_elements(
173 '#{} {} tbody td.dash-cell[data-dash-column="{}"][data-dash-row="{}"]:not(.phantom-cell)'.format(
174 self.id, self.state, self.col, self.row
175 )
176 )
177 )
178 == 1
179 )
180
181 def get(self):
182 self.mixin._wait_for_table(self.id, self.state)

Calls 3

_wait_for_tableMethod · 0.80
find_elementsMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected